In order to get the billing data for Azure in OpsRamp portal, you need to enable the Rate Card API to calculate an estimate for your Azure spend. This will help you to monitor the spending over a period of time from the OpsRamp portal.

Step 1: Enable API

To enable the Rate Card API:

  1. Log in to the Azure portal.
  2. From the left-hand side navigation menu, click Subscriptions.
  3. Select the subscription that you want to enable the RateCard API.
  4. From the left-hand side navigation menu, click Resource providers.
  5. Search for Microsoft.CostManagement in the list of resource providers. If the status of the provider is Not Registered, you need to register the provider.
  6. Select the provider and click the Register button to register.
  7. Once the provider is registered, click Access control (IAM) from the left-hand side navigation menu.
  8. Click Add button to add a new role assignment.
  9. Select Reader as the role and Azure AD user, group, or service principal as the assignee.
  10. Enter the details of the user or service principal to grant access.
  11. Click Save. The role assignment is saved successfully.

Step 2: Get Offer ID

Once the Rate Card API is enabled, you need to find the Azure billing Offer ID in the Azure portal so that the Offer ID can be used to configure in the OpsRamp portal.

To find the Azure billing Offer ID:

  1. Log in to the Azure portal.
  2. Navigate to the Subscriptions page.
  3. Click Overview from the left-hand side menu.
  4. On the Overview page, you can find the offer name under Plan as shown below:

Note: You can find the offer ID based on the offer name in this below link: - Microsoft Azure Offer Details.

For example, the Offer ID for Azure Plan is MS-AZR-0017G. The MS-AZR indicates the name which is common for all Offer IDs. The ID 0017G varies based on your requirements.

OpsRamp Configuration

After you get the Offer ID from Azure portal, you need to set the offer ID in OpsRamp.

To set the Offer ID:

  1. Log in to the OpsRamp portal.
  2. Click All Clients. From the drop-down list, select a client.
  3. Go to Setup > Integrations and Apps > Integrations.
  4. Click on Azure integration and go to the discovery profile.
  5. Select the Collect Cost Analytics checkbox under Perform Actions.
  1. Enter the Azure billing Offer ID generated in the Azure portal.
  2. Click Update.
    The configuration is successfully created.