Welcome, let’s Get Started!

This tutorial covers authenticating your Spotinst account with Azure, which gives Spotinst the necessary permissions to launch and manage Azure resources on your behalf. This will take less than 5 minutes so let’s get going!

  • An activated Azure subscription.
  • A registered Spotinst account.
Step 1: Create an Active Directory Application (Service Principal)

Log in to your Azure console and go to Azure’s Active Directory service.
In Azure’s Active Directory service click on App registrations.
Click New Registration:

give the application a name and add https://spot.io as the redirect URI.

Once your application is ready, copy the Application ID and set it aside.

Step 2: Create a Key for the Application

Inside the created app registration click on Certificates & secrets.
Create a new client secret:

Set description and expiration of never expired:

Make sure to copy the Key Secret and set it aside, it won’t appear again once you leave the Key settings.

Step 3: Retrieve Your Directory ID

Under your Active Directory’s main menu go to Properties, copy the Directory ID (a.k.a Tenant ID) and set it aside.

Step 4: Provide Permissions to the Active Directory Application

Now that you’ve created an Active Directory Application you’ll provide it with Contributor permissions.
Under All Services select Subscriptions. Choose the subscription you’d like to provide Spotinst with a role in.
In the Subscription menu select Access Control (IAM). Click Add and under Role choose Contributor.
Search for the name of the Active Directory Application you created in Step 1 and click Save.

Note: If your application doesn’t appear in the Select autocomplete list enter the application name there anyway.

In the Role Assignment menu click on your application and copy the Object ID (aka subscription ID) and set it aside.

Step 5: Open The Elastigroup Console

Go to console.spotinst.com, select Azure as your cloud provider and paste your Application ID, Application Key, Directory ID (a.k.a Tenant ID), and your Subscription ID into their respective fields. Validate your connection and then Save it.

What’s Next

Awesome, you’re all set! Your Spotinst account is now connected to Azure, let’s move on to creating your first Elastigroup and start reducing your compute costs!