summary import { TagsObject , NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function vpnGatewayUpdate ( ) { const subscriptionId = "subid" ; const resourceGroupName = "rg1" ; const gatewayName = "gateway1" ; const vpnGatewayParameters = { tags : { tag1 : "value1" , tag2 : "value2" } } ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . vpnGateways . beginUpdateTagsAndWait ( resourceGroupName , gatewayName , vpnGatewayParameters ) ; console . log ( result ) ; } vpnGatewayUpdate ( ) . catch ( console . error ) ;