Connecting to Azure
Connecting an Azure Account to a Bluebricks Environment takes up to 5 minutes.
Prerequisites
Ensure you have a valid subscription id in Azure.
Step 1: Create an environment with an Azure cloud
Go to the Collections page
Click "Create collection" and give it a name
Select Azure as the Cloud Provider
Choose "New subscription ID" or an existing subscription ID.

If creating a New Subscription, keep the page open and go to Azure Portal.
Step 2: Create an Azure Service Principal with OIDC
Navigate to "App Registration" and select "New Registration"
Give a Name
Choose "Accounts in this organizational directory only (Single Tenant)"
Select "Web" as the Redirect URI Platform and leave the value blank
Register the app

Click the app you just create and go to to "Certificates & Secrets" under "Manage"

Go to the "Federated Credentials" tab select "Add credential"
Select "Other Issuer" as the Federated credential scenario
Copy the "Issuer" URL from the open environment page in Step 1 as the "Issuer"
Choose "Explicit subject identifier"
Copy the "Value" from the open environment page in Step 1 as the "Value"
Give the Credential a name
Copy the "Audience" from the open environment page in Step 1 as the "Audience"
Add the Credential

Bluebricks Environment Page 
Azure Federated Credential page Go to the "Overview" section of the App and copy following into environment page on Bluebricks:
Application (client) ID
Directory (tenant) ID

Azure Application Overview 
Bluebricks Environment Page
Step 3: Create role assignment to the newly provisioned application
Navigate to "Subscriptions" and choose the subscription you want to connect to Bluebricks\

Choose "Access Control (IAM)"
Choose "Add" and then "Add Role Assignment"

Choose the appropriate Role to allow Bluebricks to create Resources in Azure (We recommend
contributorunder "Privileged administrator roles")
Go to Members and search and select the Name of the service principal created in Step 2.

Press Review and Assign

Step 4: Save the Cloud Connection on Bluebricks
Navigate to the "Overview" page of the subscription and copy the "Subscription ID"

Go back to the Environment page on Bluebricks and copy the subscription ID
Press Save

You Finished connecting your Azure subscription to Bluebricks and you now can create resources on Azure suing Bluebricks.
Last updated

