summary import { NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function getPeeringWithRemoteVirtualNetworkEncryption ( ) { const subscriptionId = "subid" ; const resourceGroupName = "peerTest" ; const virtualNetworkName = "vnet1" ; const virtualNetworkPeeringName = "peer" ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . virtualNetworkPeerings . get ( resourceGroupName , virtualNetworkName , virtualNetworkPeeringName ) ; console . log ( result ) ; } getPeeringWithRemoteVirtualNetworkEncryption ( ) . catch ( console . error ) ;