Reputation: 1913
I have a question about the Resource Group Tags in Azure, is it possible to fetch the tag name/values and use them in an logic app workflow? As in for example use the tag names/values in the body of a mail-action to send to a recipient?
Is it possible to use the Graph API for example to get these tags into the logic app workflow?
UPDATE:
This is how i tried to call the endpoint to get the tags.
This doesn't work because after a while the token will expire.
then i tried doing it this way:
This doesn't work either because for some reason when i register the LA in my AD i and later on input the relevant information it just denies my access.
BTW the information displayed in those pictures is only for demonstration purposes.
Upvotes: 0
Views: 1998
Reputation: 27538
Azure AD Graph API doesn't provide the feature to return Resource Groups Tags information .
You can use the Resource Management API :
GET https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups?api-version=2017-05-10
It will return tags attached to the resource group. Please refer to this document .
Upvotes: 1