Integrate your Azure Account with CloudSpend
CloudSpend allows you to integrate your Azure account and manage your cloud bills. You can connect your Azure account with CloudSpend by following the steps below:
- Register an application in Microsoft Entra ID
- Provide programmatic access to CloudSpend
- Connect your Azure account
Register an application in Microsoft Entra ID
Register an application in Microsoft Entra ID to provide CloudSpend programmatic access to your Azure account.
Follow the steps below to complete the application registration process.
- Log in to the Microsoft Azure portal and navigate to the Microsoft Entra ID section.
- Click New registration in the App Registrations tab.
-
In the Register an application window, enter the following details:
Field Description Name The unique name of the application.
Example: CloudSpend Azure AppSupported account types The account types supported by the application. Select Accounts in any organizational directory or Accounts in this
organizational directory only.Redirect URI A valid web URI. This is an optional field.
Example: https://localhost:8080 - Click Register.
- After registering the application in the Azure portal, you will be redirected to the Essentials section with the application details. Copy the Application (client) ID and Directory (tenant) ID to save them for later use.
- Navigate to Manage > Certificates & secrets.
- Click +New client secret in the Client secrets section.
-
In the Add a client secret window, enter the following details:
Field Description Description The client secret description. Expires The expiry date. Select Custom from the drop-down list. Start The start date. End The end date. Select the maximum end date. - Click Add.
- Copy the Value that appears under the New client secret section and save it for later use. Note that this value will disappear after a while, so copy and paste the value as soon as you save it.
Provide programmatic access to CloudSpend
After successfully registering an application in Microsoft Entra ID, you have to add the required roles to the registered application. You can add the following roles to a registered application either through Subscriptions or Management groups based on the Azure account type.
Azure account type | Required role |
---|---|
Pay As You Go (PAYG) | Reader |
Microsoft Customer Agreement (MCA) | Billing account reader |
Enterprise Agreement (EA) | Enrollment reader |
Obtaining the required permissions through Subscriptions
To obtain the required permissions through Subscriptions, follow the steps below:
- Go to Subscriptions.
- Select the subscription for which you want to track costs.
- Select the Access Control (IAM) tab.
- Click Add role assignment.
- On the Add role assignment page, select the required role based on the account type from the Roles section.
- Click Next.
- Select the custom application that you created from the Members > Select members drop-down list.
- Click Select.
- Click Review + assign. The required permissions will be added to the registered application.
Obtaining the required permissions through Management groups
To obtain the required permissions through Management groups, follow the steps below:
- Go to Management groups.
- Select the management group that has all the required subscriptions you want to track costs for. If you do not have a management group, follow the steps in the Creating a new Management group section below to create a new management group.
- Select Access Control (IAM) tab.
- Click Add role assignment.
- On the Add role assignment page, select the required role based on the account type from the Roles section.
- Click Next.
- Select the custom application that you created from the Members > Select members drop-down list.
- Click Select.
- Click Review+assign. The required permissions will be added to the registered application.
Creating a new Management group
To create a new Management group, follow the steps below:
- In the Microsoft Azure portal, navigate to the Management groups section.
- Click Create to create a new management group.
- In the Create management group window, enter the Management group ID and Management group display name.
- Click Submit.
- Click the management group that you created on the Management groups page.
- Click + Add subscription and add all required subscriptions to the management group to analyze the cost data.
- Click Save.
Connect your Azure account with CloudSpend
After registering an application in Microsoft Entra ID and adding the required roles to the registered application, you can connect your Azure account with CloudSpend.
To connect your Azure account with CloudSpend:
- Provide a DisplayName.
- Set the Public Cloud Provider as Azure.
- Set the Azure Account Type as Pay As You Go,EA, MCA, or your Site24x7 Account.
- Set Choose your Access Type as Subscriptions or Management Group.
- Enter the Tenant ID, Application ID, Application Secret Key, and Application Secret Key Expiration Date, which you created in the above steps.
- The Starting date for bill processing determines the date from which your bills get processed.
- Click Save to connect your Azure account with CloudSpend.