summary import { TagsObject , NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function updateVirtualNetworkTapTags ( ) { const subscriptionId = "subid" ; const resourceGroupName = "rg1" ; const tapName = "test-vtap" ; const tapParameters = { tags : { tag1 : "value1" , tag2 : "value2" } } ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . virtualNetworkTaps . updateTags ( resourceGroupName , tapName , tapParameters ) ; console . log ( result ) ; } updateVirtualNetworkTapTags ( ) . catch ( console . error ) ;