Integrate your Microsoft Azure account without data filtering
You must create a Microsoft Azure integration for cost management from the Integrations page and configure your Microsoft Azure account to allow cost management access.
- If you want to create a filtered Azure integration, do not complete the following steps. Instead, go to Creating a filtered Microsoft Azure integration.
To create an Azure integration, complete the following tasks:
- Create a storage account and resource group.
- Choose the appropriate scope for your cost export.
- Configure Storage Blob Data Reader and Cost Management Reader roles for access.
- Schedule daily cost exports.
Azure is a third-party product and its UI and documentation can change. The instructions for configuring third-party integrations are correct at the time of publishing. For the most up-to-date information, see the Microsoft Azure documentation.
Select a data collection scope and configure role-based access Copy linkLink copied!
In the Add a cloud integration wizard, you must select a scope to determine the level at which your cost data is collected and exported. If your scope requires the Billing account reader role, you must manually configure it in the Azure portal.
The scope that you select determines where role-based access control permissions are applied. The most common Scope selection in the wizard is Subscription.
The following list maps which role you need for each Scope selection:
Cost Management Reader Azure RBAC role:
- Subscription
- Resource group
- Management group
Billing account reader Azure RBAC role:
- Billing account
- Billing profile
- Invoice section
- Enrollment account
If your scope requires the Cost Management reader role, you can run the commands as they appear in the documentation. If your scope requires the Billing account reader role, see Assign Azure roles in the Azure portal to learn how to manually configure the role in the Azure portal.
Add your Microsoft Azure account as an integration Copy linkLink copied!
Add your Microsoft Azure account as an integration so cost management can process the cost and usage data.
Before you begin Copy linkLink copied!
You must have a Red Hat user account with Cloud Administrator entitlements.
Procedure Copy linkLink copied!
-
In cost management, navigate to Settings Menu
> Integrations > Cloud tab and click Add integration.
- In the Add a cloud integration wizard, select Microsoft Azure and click Next.
- Enter a name for your integration and click Next.
- In the Select application step, select Cost management and click Next.
- In the Specify cost export scope step, select I am OK with sending the default data to Cost Management. If you are registering RHEL usage billing, select Include RHEL usage.
- Select the scope of your cost data export from the menu and copy the generated command.
- In your Microsoft Azure account, open Cloud Shell, run the command, and copy the returned value.
- In cost management, return to the Specify cost export scope step, paste the value into Cost export scope, and click Next.
What to do next Copy linkLink copied!
In the Add a cloud integration wizard, verify that the cost export scope value appears in the Cost export scope field.
You will continue using the wizard in the following sections.
Store cost data with a Microsoft Azure Resource Group and storage account Copy linkLink copied!
Create a storage account in Microsoft Azure to house your cost data and metrics. In the Add a cloud integration wizard in cost management, enter the storage account name in the corresponding fields.
Before you begin Copy linkLink copied!
You must have a Red Hat user account with Cloud Administrator entitlements.
Procedure Copy linkLink copied!
-
In your Microsoft Azure account, search for
storage, click Storage accounts, and click Create. -
On the Create a storage account page, in the Resource Group field, click Create new, enter a name (for example,
cost-data-group), and click OK. -
In Instance details, enter a name in the Storage account name field (for example,
costdata). - Copy the resource group and storage account names for later use.
- Click Review, review the storage account details, and click Create.
- In cost management, navigate to the Add a cloud integration wizard, paste the resource group and storage account names into Resource group name and Storage account name, and click Next.
What to do next Copy linkLink copied!
In your Microsoft Azure account, verify that the new storage account appears in the Storage accounts list with a status of Available.
Configure a daily Microsoft Azure data export schedule Copy linkLink copied!
Next, set up an automatic export of your cost data to your Microsoft Azure storage account so that cost management can retrieve your data daily.
Procedure Copy linkLink copied!
What to do next Copy linkLink copied!
In your Microsoft Azure account, verify that the export appears in the Cost exports list with a status of Active.
You will continue using the wizard in the following sections.
Add your Microsoft Azure subscription ID to the cost management integration wizard Copy linkLink copied!
Find your subscription_id in the Microsoft Azure Cloud Shell and add it to the Add a cloud integration wizard in cost management.
Procedure Copy linkLink copied!
What to do next Copy linkLink copied!
In the Add a cloud integration wizard, verify that the subscription ID appears in the Subscription ID field.
Create Microsoft Azure roles for Red Hat access Copy linkLink copied!
To grant Red Hat access to your data, you must configure dedicated roles in Microsoft Azure. If you have an additional resource under the same Azure subscription, you might not need to create a new service account.
Procedure Copy linkLink copied!
What to do next Copy linkLink copied!
In cost management, navigate to Settings Menu
You have now successfully created an unfiltered integration. Do not follow the instructions in Creating a filtered Microsoft Azure integration.