Function: AzureTagSearch()
Description
This function returns all resources based on the SearchTag variable that has been used as input. Note that only the resources that your account has access to are returned.
Query · kql
let AzureTagSearch = (SearchTag: string) {
arg("").Resources
| extend StringTags = tolower(tostring(tags))
| extend SearchTagToLower = SearchTag
| where StringTags has SearchTagToLower
| project tags, type, name, kind, resourceGroup
};
AzureTagSearch("Test")