HowTo-Tag existing DocumentDB accounts

Govind Kanshi
1 min readNov 8, 2016

Why would you want to do this ? Because you want to tag your DocumentDB assets.

Get-AzureRmResource -Verbose | Where-Object {$_.ResourceType -like “*DocumentDB*”}*** replace with your resourcegroupname and name$tags = (Get-AzureRMResource -ResourceGroupName <rgname> -Name <resname>).Tags*** make up your tags$tags += @{Name=”sku”;Value=”mixed”}Set-AzureRmResource -ResourceGroupName <rg-name> -Name <resname> -ResourceType “Microsoft.DocumentDB/databaseAccounts” -Tag $tags

--

--

Govind Kanshi

I help create reliable, pragmatic software solutions using the dainty words like Cloud and Data. I work at Azure Cosmos DB team.