Forum Discussion

nipanesanjay's avatar
nipanesanjay
Copper Contributor
Jul 11, 2023

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

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.

  • 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
  • kjones10's avatar
    kjones10
    Brass Contributor
    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

Resources