Skip to main content

Connect Azure

The procedures on this page describe how to connect your Microsoft Azure subscription to Spot. The procedure assumes that you are following the instructions in the onboarding wizard, have already created your Spot organization or new account, and selected Azure as your cloud provider.

Step 1: Log in to your Azure Account

Click Log in to Azure Account and continue to the next step.

Step 2: Create New Registration

  1. In the Azure console, type App Registration in the search bar and click the App Registrations result that appears.

  2. Click the + New registration tab.

  3. In the Register Application window that opens, enter a name for the application.

  4. In the Support account types section, select Accounts in this organizational directory only (Spotinst only - Single tenant).

  5. In the Redirect URI dropdown menu, select Web and specify: https://spot.io.

  6. In the Register an application window, enter the application you have just registered and copy the Application (client) ID and Directory (tenant) ID to provide in the next step. Click Register.

  7. Paste the Application (client) ID and Directory (tenant) ID:

  8. Click Next.

Step 3: Create Certificates and Secrets

In the previous app registration that was created, create a client secret:

  1. In the left menu, click Certificates & secrets.

  2. Click the Create secrets tab and then + New client secret.

  3. Copy the secret value and the expiration date.

  4. In the wizard in the Spot console, paste the secret value and expiration date, then click Next.

  5. Enter the Subscription ID you want to associate with spot.io, and then continue to the next step in the Azure connection wizard.

Step 4: Create a Custom Role

  1. In the Azure console, type Subscriptions in the search bar and click the Subscriptions result that appears.

  2. In the menu on the left side of the Subscriptions platform, click Access Control (IAM).

  3. Click + Add and then Add custom role.

    connect-azure-sub-10

  4. Select Start from JSON and upload the next JSON policy.

    connect-azure-sub-11

  5. Click Assignable scope and select the relevant subscription.

    connect-azure-sub-12

  6. In the Create a custom role window, click Review + create and complete the custom role information.

Step 5: Assign a Role

  1. In the Access control (IAM) platform, click + Add and then click Add role assignment.

    connect-azure-sub-13

  2. Click the Role tab and select the custom role you created in the previous steps.

    connect-azure-sub-14

  3. Click the Members tab and click Select members.

  4. Select the app registration that was created in the previous steps and click Next.

  5. In the Spot console, click Connect Account.

When the validation is complete, your Azure subscription will be connected and ready for optimization.