Connect to Azure Cost Management data in Power BI Desktop - Power BI (2024)

  • Article
  • 9 minutes to read

You can use the Azure Cost Management connector for Power BI Desktop to make powerful, customized visualizations and reports that help you better understand your Azure spend. The Azure Cost Management connector currently supports customers with a direct Microsoft Customer Agreement or an Enterprise Agreement (EA).

The Azure Cost Management connector doesn’t support pay-as-you-go Microsoft Customer Agreements or indirect Microsoft Customer Agreements. Microsoft Partner Agreements are also not supported. If you have an unsupported agreement, you can use Exports to save the cost data to a share and then connect to it using Power BI. For more information, see Tutorial - Create and manage exported data from Azure Cost Management.

The Azure Cost Management connector uses OAuth 2.0 for authentication with Azure and identifies users who are going to use the connector. Tokens generated in this process are valid for a specific period. Power BI preserves the token for the next login. OAuth 2.0, is a standard for the process that goes on behind the scenes to ensure the secure handling of these permissions. To connect, you must use an Enterprise Administrator account for Enterprise Agreements, or have appropriate permissions at the billing account or billing profile levels for Microsoft Customer Agreements.

Note

This connector replaces the previously available Azure Consumption Insights and Azure Cost Management (Beta) connectors. Any reports created with the previous connector must be recreated using this connector.

Connect using Azure Cost Management

To use the Azure Cost Management connector in Power BI Desktop, take the following steps:

  1. In the Home ribbon, select Get Data.

  2. Select Azure from the list of data categories.

  3. Select Azure Cost Management.

    Connect to Azure Cost Management data in Power BI Desktop - Power BI (1)

  4. In the dialog that appears, for the Choose Scope drop down, use Manually Input Scope for Microsoft Customer Agreements, or use Enrollment Number for Enterprise Agreements (EA).

Connect to a Microsoft Customer Agreement account

This section describes the steps necessary to connect to a Microsoft Customer Agreement account.

Connect to a billing account

To connect to a billing account, you need to retrieve your Billing account ID from the Azure portal:

  1. In the Azure portal, navigate to Cost Management + Billing.

  2. Select your Billing profile.

  3. Under Settings in the menu, select Properties in the sidebar.

  4. Under Billing profile, copy the ID.Connect to Azure Cost Management data in Power BI Desktop - Power BI (2)

  5. For Choose Scope, select Manually Input Scope and input the connection string as shown in the example below, replacing {billingAccountId} with the data copied from the previous steps./providers/Microsoft.Billing/billingAccounts/{billingAccountId}

    Alternatively, for Choose Scope, select Enrollment Number and input the Billing Account ID string as copied from the previous steps.

  6. Enter the number of months and select OK.

    Connect to Azure Cost Management data in Power BI Desktop - Power BI (3)

    Alternatively, if you want to download less than a month's worth of data you can set Number of months to zero, then specify a date range using Start Date and End Date values that equate to less than 31 days.

  7. When prompted, sign in with your Azure user account and password. You must have access to the Billing account scope to successfully access the billing data.

Connect to a billing profile

To connect to a billing profile, you must retrieve your Billing profile ID and Billing account ID from the Azure portal:

  1. In the Azure portal, navigate to Cost Management + Billing.

  2. Select your Billing profile.

  3. Under Settings in the menu, select Properties in the sidebar.

  4. Under Billing profile, copy the ID.

  5. Under Billing account, copy the ID.

    Connect to Azure Cost Management data in Power BI Desktop - Power BI (4)

  6. For Choose Scope, select Manually Input Scope and input the connection string as shown in the example below, replacing {billingAccountId} and {billingProfileId} with the data copied from the previous steps.

    /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}

  7. Enter the number of months and select OK.

  8. When prompted, sign in with your Azure user account and password. You must have access to the Billing profile to successfully access the billing profile data.

Connect to an Enterprise Agreement account

To connect with an Enterprise Agreement (EA) account, you can get your enrollment ID from the Azure portal:

  1. In the Azure portal, navigate to Cost Management + Billing.

  2. Select your billing account.

  3. On the Overview menu, copy the Billing account ID.

  4. For Choose Scope, select Enrollment Number and paste the billing account ID from the previous step.

  5. Enter the number of months and then select OK.

    Connect to Azure Cost Management data in Power BI Desktop - Power BI (5)

  6. When prompted, sign in with your Azure user account and password. You must use an Enterprise Administrator account for Enterprise Agreements.

Data available through the connector

Once you successfully authenticate, a Navigator window appears with the following available data tables:

TableAccount TypeSupported ScopesDescription
Balance summaryEA onlyEA EnrollmentSummary of the balance for the current billing month for Enterprise Agreements (EA).
Billing eventsMCA onlyBilling ProfileEvent log of new invoices, credit purchases, etc. Microsoft Customer Agreement only.
BudgetsEA, MCAEA Enrollment,MCA Billing Account,MCA Billing ProfileBudget details to view actual costs or usage against existing budget targets.
ChargesMCA onlyMCA Billing ProfileA month-level summary of Azure usage, Marketplace charges, and charges billed separately. Microsoft Customer Agreement only.
Credit lotsMCA onlyMCA Billing ProfileAzure credit lot purchase details for the provided billing profile. Microsoft Customer Agreement only.
PricesheetsEA, MCAEA Enrollment,MCA Billing ProfileApplicable meter rates for the provided billing profile or EA enrollment.
RI chargesEA, MCAEA Enrollment,MCA Billing ProfileCharges associated to your Reserved Instances over the last 24 months. This table is in the process of being deprecated, please use RI transactions
RI recommendations (shared)EA, MCAEA Enrollment,MCA Billing ProfileReserved Instance purchase recommendations based on all your subscription usage trends for the last 30 days.
RI recommendations (single)EA, MCAEA Enrollment,MCA Billing ProfileReserved Instance purchase recommendations based on your single subscription usage trends for the last 30 days.
RI transactionsEA, MCAEA Enrollment,MCA Billing ProfileList of transactions for reserved instances on billing account scope.
RI usage detailsEA, MCAEA Enrollment,MCA Billing ProfileConsumption details for your existing Reserved Instances over the last month.
RI usage summaryEA, MCAEA Enrollment,MCA Billing ProfileDaily Azure reservation usage percentage.
Usage detailsEA, MCAEA Enrollment,MCA Billing Account,MCA Billing ProfileA breakdown of consumed quantities and estimated charges for the given billing profile on EA enrollment.
Usage details amortizedEA, MCAEA Enrollment,MCA Billing Account,MCA Billing ProfileA breakdown of consumed quantities and estimated amortized charges for the given billing profile on EA enrollment.

You can select a table to see a preview dialog. You can select one or more tables by selecting the boxes beside their name and then select Load.

Connect to Azure Cost Management data in Power BI Desktop - Power BI (6)

When you select Load, the data is loaded into Power BI Desktop.

When the data you selected is loaded, the data tables and fields are shown in the Fields pane.

Considerations and limitations

The following considerations and limitations apply to the Azure Cost Management data connector:

  • Data row requests exceeding one million rows isn't supported by Power BI. Instead, you can try using the export feature described in create and manage exported data in Azure Cost Management.

  • The Azure Cost Management data connector doesn't work with Office 365 GCC customer accounts.

  • Data refresh: The cost and usage data is typically updated and available in the Azure portal and supporting APIs within 8 to 24 hours, so we suggest you constrain Power BI scheduled refreshes to once or twice a day.

  • Data source reuse: If you have multiple reports that are pulling the same data, and don't need additional report-specific data transformations, you should reuse the same data source, which would reduce the amount of time required to pull the Usage Details data.

    For more information on reusing data sources, see the following:

    • Introduction to datasets across workspaces
    • Create reports based on datasets from different workspaces

You might receive a 400 bad request from the RI usage details when you try to refresh the data if you've chosen date parameter greater than three months. To mitigate the error, take the following steps:

  1. In Power BI Desktop, select Home > Transform data.

  2. In Power Query Editor, select the RI usage details dataset and select Advanced Editor.

  3. Update the Power Query code as shown in the following paragraph(s), which will split the calls into three-month chunks. Make sure you note and retain your enrollment number, or billing account/billing profile ID.

    For EA use the following code update:

    let enrollmentNumber = "<<Enrollment Number>>", optionalParameters1 = [startBillingDataWindow = "-9", endBillingDataWindow = "-6"], source1 = AzureCostManagement.Tables("Enrollment Number", enrollmentNumber, 5, optionalParameters1), riusagedetails1 = source1{[Key="riusagedetails"]}[Data], optionalParameters2 = [startBillingDataWindow = "-6", endBillingDataWindow = "-3"], source2 = AzureCostManagement.Tables("Enrollment Number", enrollmentNumber, 5, optionalParameters2), riusagedetails2 = source2{[Key="riusagedetails"]}[Data], riusagedetails = Table.Combine({riusagedetails1, riusagedetails2})in riusagedetails

    For Microsoft Customer Agreements use the following update:

    let billingProfileId = "<<Billing Profile Id>>", optionalParameters1 = [startBillingDataWindow = "-9", endBillingDataWindow = "-6"], source1 = AzureCostManagement.Tables("Billing Profile Id", billingProfileId, 5, optionalParameters1), riusagedetails1 = source1{[Key="riusagedetails"]}[Data], optionalParameters2 = [startBillingDataWindow = "-6", endBillingDataWindow = "-3"], source2 = AzureCostManagement.Tables("Billing Profile Id", billingProfileId, 5, optionalParameters2), riusagedetails2 = source2{[Key="riusagedetails"]}[Data], riusagedetails = Table.Combine({riusagedetails1, riusagedetails2})in riusagedetails
  4. Once you've updated the code with the appropriate update from the previous step, select Done and then select Close & Apply.

You might run into a situation where tags aren't working in the usage details or the tags column can't be transformed to json. This issue stems from the current UCDD api returning the tags column by trimming the start and end brackets, which results in Power BI being unable to transform the column because it returns it as a string. To mitigate this situation, take the following steps.

  1. Navigate to Query Editor.
  2. Select the Usage Details table.
  3. In the right pane, the Properties pane shows the Applied Steps. You need to add a custom column to the steps, after the Navigation step.
  4. From the menu, select Add column > Add custom column
  5. Name the column, for example you could name the column TagsInJson or whatever you prefer, and then enter the following text in the query:
    ```= "{"& [Tags] & "}"
  6. Completing the previous steps creates a new column of tags in the json format
  7. You can now transfer and expand the column as you need to.

Authentication issues encountered with Azure Active Directory guest accounts: You may have the appropriate permissions to access the enrollment or billing account, but receive an authentication error similar to one of the following:

  • Access to the resource is forbidden
  • We couldn’t authenticate with the credentials provided. Please try again.

These errors could be the result of having a user account in a different Azure Active Directory domain that has been added as a guest user.

For guest accounts: Use the following settings or options as you are prompted with the authentication dialog when connecting with the Cost Management Power BI connector:

  1. Select Sign-in
  2. Select the Use another account (bottom of the dialog)
  3. Select Sign-in options (bottom of the dialog box)
  4. Select Sign into an organization
  5. For Domain name, provide the Fully Qualified Domain Name (FQDN) of the Azure Active Directory domain into which you've been added as a guest.
  6. Then, for Pick an account select the user account that you’ve previously authenticated.

Next steps

You can connect to many different data sources using Power BI Desktop. For more information, see the following articles:

  • What is Power BI Desktop?
  • Data Sources in Power BI Desktop
  • Shape and Combine Data with Power BI Desktop
  • Connect to Excel workbooks in Power BI Desktop
  • Enter data directly into Power BI Desktop
Connect to Azure Cost Management data in Power BI Desktop - Power BI (2024)

FAQs

How do I connect Power BI to Azure cost Management? ›

In the Home ribbon, select Get Data. Select Azure from the list of data categories. Select Azure Cost Management. In the dialog that appears, for the Choose Scope drop down, use Manually Input Scope for Microsoft Customer Agreements, or use Enrollment Number for Enterprise Agreements (EA).

How do I connect my Azure data to Power BI? ›

Connect in Power BI Desktop
  1. In Power BI Desktop, click Get Data > Azure > Azure Analysis Services database.
  2. In Database, if you know the name of the tabular model database or perspective you want to connect to, paste it here. ...
  3. Select a connection option and then press Connect.
5 days ago

How do I access Azure cost management? ›

Sign in to the Azure portal at https://portal.azure.com with an enterprise administrator account. Select the Cost Management + Billing menu item. Select Billing scopes to view a list of available billing scopes and billing accounts.

Can we connect Azure to Power BI? ›

Power BI has a multitude of Azure connections available, and the business intelligence solutions you can create with those services are as unique as your business. You can connect as few as one Azure data source, or a handful, then shape and refine your data to build customized reports.

How do I connect to an Azure managed database? ›

To connect to Azure SQL Database:
  1. On the File menu, select Connect to SQL Azure (this option is enabled after the creation of a project). ...
  2. In the connection dialog box, enter or select the server name of Azure SQL Database.
  3. Enter, select, or Browse the Database name.
  4. Enter or select Username.
  5. Enter the Password.
Nov 18, 2022

Who has access to Azure cost management Tool? ›

Microsoft Cost Management for Azure is provided for free to Azure customers. This service shows all of your subscriptions on one screen, enabling you to zoom in on one particular service to gain detailed information.

Where do customers access the Azure cost management tools? ›

Billing provides all the tools you need to manage your billing account and pay invoices. Cost Management is available from within the Billing experience. It's also available from every subscription, resource group, and management group in the Azure portal.

How do I track the cost of Azure resources? ›

To get started analyzing your Azure Monitor charges, open Cost Management + Billing in the Azure portal. Select Cost Management > Cost analysis. Select your subscription or another scope. You might need additional access to cost management data.

What are the ways we can connect to Azure? ›

Connect to the virtual machine
  • Go to the Azure portal to connect to a VM. ...
  • Select the virtual machine from the list.
  • At the beginning of the virtual machine page, select Connect.
  • On the Connect to virtual machine page, select RDP, and then select the appropriate IP address and Port number.
Jul 7, 2022

Which tools can be used to connect to Azure SQL Database? ›

  • SQL Server.
  • Analysis Services (SSAS)
  • Integration Services (SSIS)
  • Reporting Services (SSRS)
  • SQL Server Management Studio (SSMS)
  • SQL Server Data Tools (SSDT)
  • Azure Data Studio.
Nov 18, 2022

How does Azure connect to local database? ›

  1. Provide Database name and select Subscription name. ...
  2. Create Azure SQL Server. ...
  3. Step 1 Local machine IP Address. ...
  4. Step 2 Configure SQL Azure Firewall. ...
  5. Step 1 Get Connection Details. ...
  6. Step 2 Connect Database. ...
  7. Step 3 SQL Server Management Studio. ...
  8. Step 4 Open Query Window (Ctrl +N)
Jan 9, 2017

Can we use Azure cost management to view cost? ›

To view cost data, you need at least read access for your Azure account. If you have a new subscription, you can't immediately use Cost Management features. It might take up to 48 hours before you can use all Cost Management features.

Can you use Azure cost management to view costs associated to management? ›

Users can view costs by navigating to Cost Management + Billing in the Azure portal list of services. Then, they can filter costs to the specific subscriptions and resource groups they need to report on.

Is Azure cost management free? ›

Microsoft Cost Management is available to Azure customers and managed service providers at no additional cost.

Which Azure tools can monitor connectivity between Azure and on premises resources? ›

Connection Monitor relies on lightweight executable files to run connectivity checks. It supports connectivity checks from both Azure environments and on-premises environments.

How do I automate a cost report in Azure? ›

Login to Azure Portal and create a general purpose V2 storage account to export the reports in CSV format.
  1. Storage Account.
  2. Select Scope.
  3. Create Daily Report.
  4. Export Schedules.
  5. Storage Account Reports Folder.
  6. Daily Report Output.
Oct 27, 2020

Which Azure tool has a set of tools for monitoring allocating and optimizing Azure costs? ›

Azure Advisor is a tool that analyzes Azure configurations and uses telemetry to provide practical, tailored recommendations on how to better optimize resources and maximize value for money.

How do I monitor Azure resources? ›

You can access Azure Monitor features from the Monitor menu in the Azure portal. You can also access Azure Monitor features directly from the menu for different Azure services.

What should a desktop application use to interact with Azure and manage resources? ›

Use Infrastructure as Code (IaC) tools to declaratively deploy and manage Azure resources.

How do I monitor Azure analysis services? ›

Use Azure diagnostic logs to monitor and log Azure Analysis Services server performance. You can send logs to Azure Storage, stream them to Azure Event Hubs, and export them to Azure Monitor logs. Tracks engine process events.

What is Azure cost management in Azure? ›

What is Azure Cost Management? Azure Cost Management is a free solution offered to Azure cloud customers via the Azure portal. It provides information about your overall costs and utilization across all Azure services and Azure Marketplace products.

How do I access Azure AIP? ›

From a PowerShell session, run Connect-AipService, and when prompted, provide the Global Administrator account details for your Azure Information Protection tenant. Run Get-AipService to confirm whether the protection service is activated.

Where can you view a costs analysis for Azure charges? ›

To review your costs in cost analysis, open the scope in the Azure portal and select Cost analysis in the menu. For example, go to Subscriptions, select a subscription from the list, and then select Cost analysis in the menu.

What does the Azure cost management tool do? ›

Azure Cost Analysis

Azure Cost Management's Cost Analysis tool helps you break down the details of your Azure spend—with this tool you can take a more in-depth look into exactly what everything costs, and do all kinds of grouping and filtering across your resources.

Can I use Azure for free forever? ›

You can try that with Azure Web Apps. This has a free tier that you can use forever. The only catch is that the free tier isn't as powerful and doesn't have as many capabilities as paid tiers.

Is Azure better than AWS in cost? ›

AWS is up to 5 times more expensive than Azure for Windows Server and SQL Server.

What are the 3 pricing models of Azure? ›

Azure Pricing Models

Microsoft offers three main ways to pay for Azure VMs and other cloud resources: pay as you go, reserved instances, and spot instances.

What are the ways to access resources in Azure? ›

To open a resource by the service type:
  1. Sign in to the Azure portal.
  2. In the left pane, select the Azure service. In this case, Storage accounts. If you don't see the service listed, select All services, and then select the service type.
  3. Select the resource you want to open. A storage account looks like:
Jun 10, 2021

How do I connect to AIP service? ›

This is the simplest way to connect to the service, by running the cmdlet with no parameters. You are prompted for your user name and password. If your account is configured to use multi-factor authentication, you are then prompted for your alternative method of authentication, and then connected to the service.

How do I allow access to Azure services? ›

Sign in to the Azure portal. Search for and select SQL servers, and then select your server. Under Security, select Networking. Under the Public access tab, ensure Public network access is set to Select networks, otherwise the Virtual networks settings are hidden.

How do I add Cost analysis to Azure dashboard? ›

Select "Group by" as "Resource group name" and then select the pin icon in the upper-right corner or just after the "<Subscription Name> | Cost analysis" and then pin to dashboard. Attachments: Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

How do I pull an Azure consumption report? ›

Download usage for EA customers
  1. Sign in to the Azure portal.
  2. Search for Cost Management + Billing.
  3. If you have access to multiple billing accounts, select the billing scope for your EA billing account.
  4. Select Usage + charges.
  5. For the month you want to download, select Download.
Jan 13, 2023

How do I access Azure Analysis Services? ›

In Azure portal > server > Overview > Server name, copy the server name. In SSMS > Object Explorer, click Connect > Analysis Services. Authentication type, Active Directory - Universal with MFA support, is recommended. If you sign in with a Microsoft Account, Live ID, Yahoo, Gmail, etc., leave the password field blank.

Top Articles
Latest Posts
Article information

Author: Virgilio Hermann JD

Last Updated:

Views: 6468

Rating: 4 / 5 (61 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Virgilio Hermann JD

Birthday: 1997-12-21

Address: 6946 Schoen Cove, Sipesshire, MO 55944

Phone: +3763365785260

Job: Accounting Engineer

Hobby: Web surfing, Rafting, Dowsing, Stand-up comedy, Ghost hunting, Swimming, Amateur radio

Introduction: My name is Virgilio Hermann JD, I am a fine, gifted, beautiful, encouraging, kind, talented, zealous person who loves writing and wants to share my knowledge and understanding with you.