SOLVED

How to automate creation of custom, view under Azure Cost Analysis

Copper Contributor

Hi,

Under 'Cost management' section, we can create a custom view under 'Cost Analysis'. Through portal, this can be done easily.

I want to automate this functionality of creating a view under Cost analysis to show previous month cost.

Since I want to automate this process for different subscription so requesting to advice if we have any solution for this.

1 Reply
best response confirmed by nipanesanjay (Copper Contributor)
Solution
Michiel van Oudheusden offers an Azure cost .NET tool that you can tie into GitHub Actions which may be able to provide this level of automation. As long as you have the subscription ID and a Service Principal for authentication, you may be able to automate these tasks.

https://github.com/mivano/azure-cost-cli
1 best response

Accepted Solutions
best response confirmed by nipanesanjay (Copper Contributor)
Solution
Michiel van Oudheusden offers an Azure cost .NET tool that you can tie into GitHub Actions which may be able to provide this level of automation. As long as you have the subscription ID and a Service Principal for authentication, you may be able to automate these tasks.

https://github.com/mivano/azure-cost-cli

View solution in original post