Connect Your Azure Subscription to Cost Intelligence
The procedures on this page describe how to connect your Microsoft Azure subscription to Cost Intelligence.
Prerequisites
Permissions to create app registrations and assign subscription reader role in Azure.
Step 1: Connect to your Spot Account
-
Enter an account name and click Create Account.
View image
-
Select Microsoft Azure as your cloud provider.
-
Select FinOps Products and click Next.
-
Select Cost Intelligence and follow the steps to log in to Azure.
View image
Step 2: Log in to your Azure Account
Click Log in to Azure Account and continue to the next step.
View image
Step 3: Create New Registration
-
In the Azure console, type App Registration in the search bar and click App Registrations.
View image
-
Click the + New registration tab.
View image
-
In the Register Application window that opens, enter a name for the application.
-
In the Support account types section, select Accounts in this organizational directory only (Spotinst only - Single tenant).
-
In the Redirect URI dropdown menu, select Web and enter: https://spot.io.
View image
-
In the Register an application window, enter the application you registered in the previous steps and copy the Application (client) ID and Directory (tenant) ID for the next step. Click Register.
View image
-
Paste the Application (client) ID and Directory (tenant) ID.
View image
Step 4: Create Certificates and Secrets
In the previous app registration that was created, complete the following steps to create a client secret:
-
In the left menu, click Certificates & secrets.
-
Click the Create secrets tab and then + New client secret.
-
Copy the secret value.
View image
-
In the Cost Intelligence Wizard, paste the application secret.
-
Enter the Subscription ID you want to associate with Cost Intelligence.
Step 5: Assign a Role
To assign a role:
-
In the Azure console, type Subscriptions in the search bar and click the subscription you want to connect to Cost Intelligence.
-
In the menu on the left side of the Subscriptions platform, click Access Control (IAM).
-
Click Add/ Add role assignment.
-
Select the Reader role and click Next.
noteIf you're adding Security Essentials, you also need to add the Azure Blob Data Reader role.
-
Click + Select Members.
-
In the right panel, search for and select the registered application created earlier.
-
Click Review + Assign.
-
In the Cost Intelligence wizard, click Connect Account.
Step 6
When the validation is complete, your Azure subscription will be connected to Cost Intelligence.
View image
Connect an Existing Spot Account
You can connect an existing Spot Account (that is already connected to Azure for other Spot products) to Cost Intelligence for an Azure subscription by completing the following steps:
-
In the left main menu, click Cost Intelligence and then Administration. A list of previously registered accounts for both the Cost Intelligence and Billing Engine products opens.
-
Click + Cloud Account.
-
Click the Azure cloud provider you want to connect to your Spot account.
View image
-
Click the Existing Spot Account drop-down menu and select the Spot account you want to connect Cost Intelligence and click Next.
note -
Add the Azure Reader Role to the connected app registration and click, Connect Account.
View image
When the validation is complete, your Azure subscription will be connected to Cost Intelligence.