Microsoft Azure

Integrating Buddy Enterprise with Microsoft Azure will let you push your code to Azure and authenticate in your AKS cluster.

1. Create a new app in Azure

In order to access the Azure’s API, you need to create an OAuth app, just like in other integrations. To do that, go to Active DirectoryApp registrationsNew application registration.

Registering an APP in AzureRegistering an APP in Azure

Enter the following details:

  • Name: anything, e.g. Buddy App
  • Application type: Web App / API
  • Sign-on URL: the URL to which the user will be redirected after logging in to Azure, for example or for local access

Each environment requires a separate app.

When done, copy the Application ID in the app details (see below). We’ll need it later on.

Getting the application IDGetting the application ID

2. Create a new key

With the application created, go to SettingsKeys and generate a new key. Enter the description (anything) and set the expiration date to Never expires. Notice that the key value will not be available until saved.

Creating a new keyCreating a new key

Once you click the Save button at the top, Azure will generate the key value.

Make sure to copy the key value as you won’t be able to retrieve it after you leave the blade.

Getting the key in AzureGetting the key in Azure

3. Assign permissions

Next step is to give the app proper scopes. Go to the app’s SettingsRequired permissions and click +Add.

  1. Click Select an API and choose Windows Azure Service Management API
  2. Under Select permissions, check Access Azure Service Management as organization users (preview)

Adding Azure API accessAdding Azure API access

The last thing to do is going to SettingsProperties and switching the Multi-tenanted button to Yes, so that the app can authorize to other Azure organizations (tenants):

Editing API settingsEditing API settings

4. Add integration in Buddy

  1. Log into your Buddy Enterprise workspace as admin and go to the workspace Preferences: Workspace preferencesWorkspace preferences
  2. Open the Applications tab and click Configure below the Azure icon: Add Azure integrationAdd Azure integration
  3. Paste the Application ID and Client Secret that you created earlier: Edit Azure integrationEdit Azure integration
Sign up for Buddy Digest

Best practices on CI/CD and fresh changelogs delivered weekly to your inbox.