CmdID / az / az graph / az graph shared-query
az graph shared-query create
Create a shared query. Azure CLI extensions reference
1 example Its page in the Azure CLI extensions reference
Examples
Create a shared query requesting a subset of resource fields.
az graph shared-query create -g MyResourceGroup -n MySharedQuery -q "project id, name, type, location, tags" -d "requesting a subset of resource fields." --tags key=valueIdentify-gName of resource group.-nName of the graph shared query.-qResource Graph query to execute.-dDescription of the graph shared query.--tagsspace-separated tags: key[=value] [key[=value] ...].