If you open up that SQL DB in the portal, you should be able to see the tag name and value given
----------
Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello There,
I have a situation where I created 'Tag' with value and forgot its value after Azure SQL database is created.
Could anyone please help if there is a way to retrieve forgotten tag's value.
If you open up that SQL DB in the portal, you should be able to see the tag name and value given
----------
Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav
Hi @ArunRaaman , welcome to Microsoft Q&A forum.
Adding on top of anonymous userChaudhari response, you can also get the value of tags using CLI or PowerShell. Below is the command of PowerShell. Just replace the value in placeholders with correct values:
Get-AzTag -ResourceId /subscriptions/<your subscription id>/resourcegroups/<your resource group>/providers/Microsoft.Sql/servers/<your sql server name>/databases/<your db name>
Output:
Azure CLI Command:
az tag list --resource-id /subscriptions/<your subscription id>/resourcegroups/<your resource group>/providers/Microsoft.Sql/servers/<your sql server name>/databases/<your db name>
Output: