Microsoft Azure

Integrating with Microsoft Azure allows you to push code to Azure and authenticate in your AKS cluster.

Create an Azure service principal for Buddy

Azure requires automated tools, such as Buddy, to be represented by a service principal to access resources secured by an Azure AD tenant.

To create a service principal in Azure, use the Azure CLI on your local machine.

Tip
Alternatively, you can create a service principal using the Cloud Shell, which you can access directly from the Azure Portal.

Follow these steps:

  1. Install Azure CLI.
  2. Run az login to sign in to your Azure account.
  3. Run az ad sp create-for-rbac --name {SP_NAME} to create a new app and service principal with the set display name.

This creates a new app that supports a single tenant with the default Contributor role assignment. The details of the app and the service principal are displayed after the command runs successfully:

Copy the details of the new app - appId, password, and tenant. You will need them later on.

Danger
Make sure to copy the service principal password as you won't be able to retrieve it after you close the terminal window. If you need to access it at a later date, you must reset the service principal credentials and get a new password.

Add the integration in Buddy

  1. Sign in to your Buddy self-hosted workspace as admin and open the Integrations tab.
  2. Click Add a new integration and select Azure Cloud.
  3. Click Set up a new Azure integration.
  4. Fill in the integration data: define the integration name and paste the App ID, Tenant ID and Service principal password that you created earlier.

  1. Click Add a new integration and restart Buddy to apply the changes.
Last update:
Sep 24, 2024