summary import { CheckPrivateLinkServiceVisibilityRequest , NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function checkPrivateLinkServiceVisibility ( ) { const subscriptionId = "subid" ; const location = "westus" ; const resourceGroupName = "rg1" ; const parameters = { privateLinkServiceAlias : "mypls.00000000-0000-0000-0000-000000000000.azure.privatelinkservice" } ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . privateLinkServices . beginCheckPrivateLinkServiceVisibilityByResourceGroupAndWait ( location , resourceGroupName , parameters ) ; console . log ( result ) ; } checkPrivateLinkServiceVisibility ( ) . catch ( console . error ) ;