summary import { GetVpnSitesConfigurationRequest , NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function vpnSitesConfigurationDownload ( ) { const subscriptionId = "subid" ; const resourceGroupName = "rg1" ; const virtualWANName = "wan1" ; const request = { outputBlobSasUrl : "https://blobcortextesturl.blob.core.windows.net/folderforconfig/vpnFile?sp=rw&se=2018-01-10T03%3A42%3A04Z&sv=2017-04-17&sig=WvXrT5bDmDFfgHs%2Brz%2BjAu123eRCNE9BO0eQYcPDT7pY%3D&sr=b" , vpnSites : [ "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/abc" ] } ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . vpnSitesConfiguration . beginDownloadAndWait ( resourceGroupName , virtualWANName , request ) ; console . log ( result ) ; } vpnSitesConfigurationDownload ( ) . catch ( console . error ) ;