Provisioning on Azure

Guide for deploying Jobs or Services to Mizrosoft Azure.

This guide will walk you through the process of creating a service principal in Azure that you can use with Outpost.

This feature is only available on Outpost Enterprise.

PREREQUISITES

Azure Account
Make sure you have an Azure account. If you don't, you can easily sign up for a free account at Azure.
Azure Subscription
You need an active Azure Subscription to perform the tasks in this guide. If you don't have one yet, follow the steps to create a subscription here.
Azure Cloud Shell Enabled (optional)
This guide assumes you're running commands in Azure Cloud Shell, but you can also use your local machine. Learn how to enable Azure Cloud Shell here.

Creating a Service Principal

  1. Log in to the Azure Portal and open Cloud Shell from the top menu.
Console tab on the Azure Portal

Console tab on the Azure Portal

  1. Run the following script to create a Service Principal:
bash
1export SUBSCRIPTION_ID=$(az account show | jq -r ".id")
2az ad sp create-for-rbac --name outpost-sp \
3  --role owner \
4  --scopes /subscriptions/$SUBSCRIPTION_ID
If you see the error Failed to connect to MSI. Please make sure MSI is configured correctly. after running the command, try logging in again by running az login and follow the instructions.

After running the command, the Service Principal will be created, and you'll see credentials like these:

json
1{
2  "appId": "aaaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
3  "displayName": "outpost-sp",
4  "password": "aaaa~~bbbbbbbbbbbbbbbbbbbbbbbbb_ccccccc",
5  "tenant": "aaaaaaaa-bbbb-cccc-dddd-eeeeffff"
6}
  1. Save these credentials in a JSON file.

Copy the output from Step 2 and store it in a JSON file on your local machine.

Upload the created Service Principal to Outpost

  1. Go to the Settings page in the Outpost dashboard.
  2. Click New secret, choose Azure, and then upload or add the Service Principal JSON file.

That's it! You're now ready to deploy your workloads on Azure through Outpost. To get started, check out the guides for Jobs or Services.

FAQ