summary import { P2SVpnConnectionHealthRequest , NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function p2SVpnGatewayGetConnectionHealthDetailed ( ) { const subscriptionId = "subid" ; const resourceGroupName = "p2s-vpn-gateway-test" ; const gatewayName = "p2svpngateway" ; const request = { outputBlobSasUrl : "https://blobcortextesturl.blob.core.windows.net/folderforconfig/p2sconnectionhealths?sp=rw&se=2018-01-10T03%3A42%3A04Z&sv=2017-04-17&sig=WvXrT5bDmDFfgHs%2Brz%2BjAu123eRCNE9BO0eQYcPDT7pY%3D&sr=b" , vpnUserNamesFilter : [ "vpnUser1" , "vpnUser2" ] } ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . p2SVpnGateways . beginGetP2SVpnConnectionHealthDetailedAndWait ( resourceGroupName , gatewayName , request ) ; console . log ( result ) ; } p2SVpnGatewayGetConnectionHealthDetailed ( ) . catch ( console . error ) ;