Microsoft Azure integration

The integration is used for Azure CLI, Azure storage and Azure AKS.

Pipeline examplePipeline example

Create 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.

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:

Service principal detailsService principal details

Copy the details of the new app - appId, password, and tenant. You need them to configure the integration in Buddy.

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 workspace 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.

Azure integration configurationAzure integration configuration

  1. Click Add a new integration.

Last modified on April 26, 2022

Get Started

Sign up for free and deploy your project in less than 10 minutes.