Closed o-l-a-v closed 4 years ago
@o-l-a-v In what way can these not be tagged - what occurs when you try to tage a resource of each type - is it the same, or different for each resource.
These simply return error that they can't be tagged
'Microsoft.Compute/virtualMachines/extensions',
'microsoft.insights/activityLogAlerts',
'microsoft.insights/metricalerts'
'microsoft.insights/scheduledqueryrules',
'Microsoft.OperationsManagement/solutions',
This can't be tagged while running 'Microsoft.StreamAnalytics/streamingjobs',
The rest I have not tried to tag personally, but found them as untaggable in some code I found while google'ing.
@o-l-a-v This is supposed to be documented here: https://docs.microsoft.com/en-us/azure/azure-resource-manager/tag-support
Though it looks like many of the resources you mention above show up as taggable. Can you ask about these resource settings on this page?
@Tiano2017 Hey Tian, I sent you an email about if it's possible to query the taggable resources in ARM. Let me know if you have any update.
Hi, try this API: https://docs.microsoft.com/en-us/rest/api/resources/providers/list (use the Try It button to see sample)
It will give you a list of resource types under all namespaces available to your subscription. In some of the resource types, you will see 'capabilities', such as:
"capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"
When it says SupportsTags, well, then it supports tags.
(There is a known issue with Resource Groups though, and the capability might not show correctly for it. Resource Groups do support tags.)
I found the following ones:
Hope this helps.
Hi, try this API: https://docs.microsoft.com/en-us/rest/api/resources/providers/list (use the Try It button to see sample)
It will give you a list of resource types under all namespaces available to your subscription. In some of the resource types, you will see 'capabilities', such as:
"capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"
When it says SupportsTags, well, then it supports tags.
(There is a known issue with Resource Groups though, and the capability might not show correctly for it. Resource Groups do support tags.)
I never got to test this before now.
Given following PowerShell
I found that following resources supports tags:
And following doesn't.
Edit: Comment got too long if including this list.
I find no documentation on what resource types in Azure can be tagged with AzureRm / Az.
So far I've found out that these can not be tagged (under), but I'd very much like to not manually maintain a list based on when my runbook fails.