summary import { TagsObject , NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function updateConnectionMonitorTags ( ) { const subscriptionId = "subid" ; const resourceGroupName = "rg1" ; const networkWatcherName = "nw1" ; const connectionMonitorName = "cm1" ; const parameters = { tags : { tag1 : "value1" , tag2 : "value2" } } ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . connectionMonitors . updateTags ( resourceGroupName , networkWatcherName , connectionMonitorName , parameters ) ; console . log ( result ) ; } updateConnectionMonitorTags ( ) . catch ( console . error ) ;