summary import { VnetParameters , WebSiteManagementClient } from "@msinternal/web-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function verifyHostingEnvironmentVnet ( ) { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" ; const parameters = { vnetName : "vNet123" , vnetResourceGroup : "vNet123rg" , vnetSubnetName : "vNet123SubNet" } ; const credential = new DefaultAzureCredential ( ) ; const client = new WebSiteManagementClient ( credential , subscriptionId ) ; const result = await client . verifyHostingEnvironmentVnet ( parameters ) ; console . log ( result ) ; } verifyHostingEnvironmentVnet ( ) . catch ( console . error ) ;