summary import { TagsObject , NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function vpnSiteUpdate ( ) { const subscriptionId = "subid" ; const resourceGroupName = "rg1" ; const vpnSiteName = "vpnSite1" ; const vpnSiteParameters = { tags : { key1 : "value1" , key2 : "value2" } } ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . vpnSites . updateTags ( resourceGroupName , vpnSiteName , vpnSiteParameters ) ; console . log ( result ) ; } vpnSiteUpdate ( ) . catch ( console . error ) ;