---
title: Connect to Azure for Recommendations
slug: connect-to-azure-for-recommendations
createdAt: 2025-06-12T22:04:40.093Z
---

Here are the steps to manually set up your Azure integration with Amberflo.

## Prerequisites

1. **Azure Portal Access**: Ensure you have sufficient permissions in the Azure portal to create exports and access billing scopes.
2. **Global Admin Access**: If you do not see specific billing scopes or subscriptions, you may need Global Administrator privileges.

During the setup process, you will define the following values. **Be sure to record them**, as you will need to share these with Amberflo to complete the integration:

Credentials:

- **Application (client) ID**
- **Directory (tenant) ID**
- **Client secret**

Amberflo can integrate with Microsoft Azure to surface actionable cost optimization recommendations based on your usage. This guide walks you through the steps required to securely create the integration with Azure.

## Step 1: Create Credentials for Amberflo

1. [Log in to the Azure Portal](https://portal.azure.com/#home)**.**
2. Search for and open **Microsoft Entra ID**.
3. In the left-hand menu, select **Manage** > **App registrations**, then click **+ New registration**.
4. Name the application (for example, Amberflo) and leave the remaining fields at their default values.
5. Click **Register**.
6. On the **Overview** page of your new application:

- **Copy and save the following values** for later use:
  - **Application (client) ID**
  - **Directory (tenant) ID**

Next, create a client secret:

1. In the left-hand menu, select **Certificates & secrets**.
2. Click **+ New client secret** to generate a secret.
3. Copy the Value field of the new client secret and store it securely. **This is only shown once.**

**Note:** If your client secret is set to expire, you must renew it before expiration and provide Amberflo with the updated value.

## Step 2: Create a Custom Role for Azure Advisor Access

1. In the **Azure Portal**, search for and navigate to **Subscriptions**.
2. Select one of your active subscriptions.
3. In the left-hand panel, select **Access Control (IAM)**.
4. Click **+ Add**, then choose **Add custom role**.
5. Choose **Start from JSON** and paste in the following role definition:
   1.

      ```javascript
      {
        "properties": {
          "roleName": "Amberflo Recommendations Reader",
          "description": "Create, list and read Advisor recommendations",
          "assignableScopes": [
          ],
          "permissions": [
            {
              "actions": [
                "Microsoft.Advisor/generateRecommendations/action",
                "Microsoft.Advisor/generateRecommendations/read",
                "Microsoft.Advisor/metadata/read",
                "Microsoft.Advisor/recommendations/read"
              ],
              "notActions": [],
              "dataActions": [],
              "notDataActions": []
            }
          ]
        }
      }
      ```
6. Under **Assignable scopes**, click **Add assignable scopes**.
7. Select **Subscriptions**, then choose all subscriptions you want to include.
8. Click **Select**, then **Review + create**, and finally click **Create**.

## Step 3: Assign the Custom Role to Amberflo

You now need to assign the custom role to the app you created:

In **Subscriptions**, select each subscription you included in the previous step. For each one the subscriptions we will do the following:

1. Go to **Access Control (IAM)** and click **+ Add** > **Add role assignment**.
2. Under the **Roles** tab, search for and select the custom role you created (e.g., Amberflo Recommendations Reader).
3. Click **Next**, then **Select members**.
4. In the search box, enter the name of the Service Principal you registered earlier (e.g., Amberflo) and select it.
   - **Note:** The list may initially display only user accounts. To locate your registered application, begin typing the name of the Service Principal (e.g., “Amberflo”) in the search box. The application should appear once you begin entering its name.
5. Click **Select**, then **Review + assign**.

Repeat these steps for each subscription where you want to enable recommendations.

## Step 4: Provide Credentials to Amberflo

Once everything is configured, collect the following values from Step 1:

- **Application (client) ID**
- **Directory (tenant) ID**
- **Client secret**

