Is your feature request related to a problem? Please describe.
I would like to query our azure costs via the az cli, to bring them in our own on-premise monitoring system. To do this I need to group and filter them, which is not immediately possible with the az consumption command.
Describe the solution you'd like
The Azure API .../Microsoft.CostManagement/query (https://docs.microsoft.com/en-us/rest/api/cost-management/query/usage) allows to send a json object with filters, groups etc. and returns the costs based on this. It would be great if the az cli would wrap this endpoint.
Describe alternatives you've considered
az rest as a wrapperBoth alternatives would mean that I would have to take care of the API Definition (mainly the url/path) and the authentication (just on the first point), which is not so nice.
add to S171
Hi, https://github.com/Azure/azure-cli-extensions/pull/1729, https://github.com/Azure/azure-cli/issues/12912 we are going to onboard it on CLI extensions.
It will be release before June.
The CLI plan is going to lose weight, which is going to make most of commands an extension.
So, we are not going to put it on the Azure CLI.
But still thanks for your suggestion!
@haroldrandom Thanks a lot! Then this issue can be closed, right?
@florianrusch costmanagement commands is released. You could install it and have a try via az extension add -n costmanagement