Support filtering Azure ML assets and resources with tags through cli/sdk
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
**Related command**
az ml online-deployment list --endpoint-name v2-project --query "[?tags.tagname == 'tagvalue']".name -o tsv
**Is your feature request related to a problem? Please describe.**
There is no other way of querying the ml assets other than the name. Tags can help in many use cases as bulk delete, dynamic loading of models, etc. Example use-case is to mark deployments as Live/Previous/ToDelete and always keep the previous to versions of deployment to have the one-click rollback possibility and not waste other resources.
**Describe the solution you'd like**
The solution will be to have tags as metadata when listing resources in Azure so that we can execute a JMESPath query on the results of list commands.
{
"endpoint_name": "_endpointname_",
"instance_type": "defaultinstancetype",
"model": "_modelpath_",
"name": "_name_",
"provisioning_state": "Succeeded",
"type": "kubernetes",
**_"tags": {"tagname": "tagvalue"}_**
}
**Describe alternatives you've considered**
There are no alternatives for this case
Contributor guide
Assessment
This issue has not been assessed yet.