Search code examples
azureazure-cliazure-resource-group

How do I specify a specific resource group I want to update in azure CLI?


I am following the CLI from the official azure doc. Specifically, I am looking for a way to add a tag to a storage account in Azure through CLI. It looks like az storage account update allows me to do that.

But how do I specify the name of the storage group? Can anyone provide me with an example?


Solution

  • After some trial and error, I have found that below line worked for me:

    az storage account update --name storage_account_name --tags 'tag_name=tag_value'