taggig for particular region from different resource groups
I have VM in east region in the respective resource group
I have another VM in same east region in another resource group
I want to get the list of VMs in the east region from those 2 resource groups
How do I make tag for this?
@sns Thanks for posting your query on Microsoft Q&A.
Can you please elaborate on what do you mean by making tags?
My understanding is that you have 1 VM in RG1 and 1 VM in RG2. Both are in East US region. You would like to get a list of VMs in East US region across resource groups but in the same Subscription.
Following resources should help you with getting the list of VMs:
If you are looking for how to apply tags to resources, these documents have detailed explanation on it: https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/tag-resources?tabs=json
You can also apply tags to the VM while deploying it: https://learn.microsoft.com/en-us/samples/azure/azure-quickstart-templates/vm-tags/
Please help clarify on your ask/query and I can further investigate on it. Thanks.
Sign in to comment