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.
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.
Hi @ArunRaaman-6281,
Welcome to Q&A forum.
Your question is related to SQL Azure DB, I only have local environment, do not have Azure environment. So I add the azure-sql-database tag, people there will give you a better help.
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
Thanks Vaibhav. I found this later in day yesterday after I posted the question.
Hi @ArunRaaman-6281, welcome to Microsoft Q&A forum.
Adding on top of @VaibhavChaudhari 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:
15 people are following this question.