![]() Now that we have this setup, we need a JSON body to POST to the API to tell Cost Management what information we want back. You'll also need to declare the api version you are using, in this case is what we're using. The HTTP Method is POST, and finally the path is /subscriptions/ is from our subscription parameter. ![]() In this screen grab I've already setup a Subscription parameter, we'll want to do a new query, then select Azure Resource Manager as our data source. To query Cost Management in Workbooks we'll need the URL example from the docs, and a subscription id. Naturally, Cost Management has an API that we can query. Like pretty much everything now, it all comes back to an API. ![]() But we can also use tags as I describe in the dynamic monitoring post linked to above, we can show costs for infrastructure based on tag, or resource type right along side with operational monitoring data. Why might you want to query Cost Management from Workbooks? Well first because we can do parameters we can set a top level Subscription parameter and quickly get costs for all subscriptions. Then we will make our query to ARM dynamic, because that is what sets Workbooks apart from a regular old dashboard. This post will show you how to query Cost Management by using the ARM data source. There are many things you can query from logs and metrics to Azure Resource Graph to Azure Resource Manager(ARM). Workbooks are incredibly dynamic, allowing you to create parameters that can be used throughout the workbook to both control what is seen by a user as well as inside queries. After starting in Azure Monitor, they now are also in Azure Sentinel, and Azure Security Center. Azure Workbooks have become a standard data visualization tool inside Azure.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |