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 portal.azure.com → Azure Active Directory → App registrations → New application registration.
Enter the following details:
- Name: anything, e.g.
- Application type:
Web App / API
- Sign-on URL: the URL to which the user will be redirected after logging in to Azure, for example
127.0.0.1/azurefor 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.
2. Create a new key
With the application created, go to Settings → Keys 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.
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.
3. Assign permissions
Next step is to give the app proper scopes. Go to the app’s Settings → Required permissions and click +Add.
- Click Select an API and choose
Windows Azure Service Management API
- Under Select permissions, check
Access Azure Service Management as organization users(preview)
The last thing to do is going to Settings → Properties and switching the Multi-tenanted button to Yes, so that the app can authorize to other Azure organizations (tenants):
4. Add integration in Buddy
- Log into your Buddy Enterprise workspace as admin and go to the workspace Preferences:
- Open the Applications tab and click Configure below the Azure icon:
- Paste the Application ID and Client Secret that you created earlier: