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:
- Install Azure CLI.
- Run
az login
to sign in to your Azure account. - 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:
Image loading...
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
- Sign in to your Buddy self-hosted workspace as admin and open the Integrations tab.
- Click Add a new integration and select Azure Cloud.
- Click Set up a new Azure integration.
- Fill in the integration data: define the integration name and paste the App ID, Tenant ID and Service principal password that you created earlier.
Image loading...
- Click Add a new integration and restart Buddy to apply the changes.
Last modified on Sep 24, 2024