summary import { NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function getPrivateDnsZoneGroup ( ) { const subscriptionId = "subId" ; const resourceGroupName = "rg1" ; const privateEndpointName = "testPe" ; const privateDnsZoneGroupName = "testPdnsgroup" ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . privateDnsZoneGroups . get ( resourceGroupName , privateEndpointName , privateDnsZoneGroupName ) ; console . log ( result ) ; } getPrivateDnsZoneGroup ( ) . catch ( console . error ) ;