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.
Click New Application Registration, give the application a name and add https://spotinst.com as the sign-on url.
Once your application is ready, copy the Application ID and set it aside.
Step 2: Create a Key for the Application
Under Settings select Keys. Add a new Key with any name and an expiration of never expires. Click Save and 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 and under Select enter the name of the Active Directory Application you created in Step 1 and click Save.
In the Subscription menu head back to the Overview. Copy your 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.
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!