Skip to main content
Boost your DevOps efficiency! Dive into our latest white paper.Read Now

Azure Connection

This guide will help you set up your Azure connection.

info

Pre-requisite:

  • Ensure you are logged in to the Azure cloud portal and Kapstan application.
  • Before you proceed, please ensure that you have an active Azure subscription.

Steps to set up Azure connection

  1. Visit your Azure Console and head to the Subscriptions dashboard
  2. Copy the ID for the subscription you wish to connect with Kapstan.
Demo architecture diagram
info

A subscription in Azure is a management container that organizes and tracks your usage, resources, and costs. It lets you create, manage, and pay for the Azure services and resources you use, all under one account.

Learn more here.

  1. Open 'Cloud Shell' from the top navigation bar.
Demo architecture diagram
info
  • If this is your first time opening the cloud shell, you might be prompted to select between Bash and Powershell. Make sure to choose 'Bash'.
Demo architecture diagram
  • If you're using Powershell, you can click on 'Switch to Bash' to switch between the two.
Demo architecture diagram
  1. Paste and run the following to generate an 'App Registration' for Kapstan in your account:
curl https://scripts.kapstan.io/kapstan_onboard_azure.sh | \\bash -s -- <subscription-id>

    Make sure to replace <subscription-id> with the ID that you copied in step 2.

info

App registrations in Azure are a way to securely connect external applications to your Azure environment. Running the onboarding script registers an application and generates credentials that Kapstan can use to access specific Azure resources securely on your behalf.

Learn more here.

  1. Once the script has finished executing, you'll get a prompt to download key.json.
  2. Navigate to connections page.
  3. Click the "+" icon in the top-right corner and then click on "Cloud".
  4. Select 'Azure' from the presented cloud providers.
  5. Complete the creation process by providing the required values in the form.
  • Connection name: Enter an identifiable name for your connection.
  • Key: Upload the keys downloaded earlier in step 5.
  1. Click the "Connect" button to create the connection.
info

Make sure you have the permission to add a role assignment for Owner under the scope of your specified subscription to any service principal. You can check your level of access to the subscription by visiting Subscription > Access control (IAM) on the Azure portal.

Verify Connection

Once you establish the connection with Kapstan, you will be directed to the Connections page. You can check the status of the connection by looking at the status column.

Can't find what you need?