Azure
Overview
This guide will help you set up Azure integration with Waldur by creating a service principal and collecting the necessary credentials. You can use either the Azure CLI (recommended) or the Azure Portal.
Prerequisites
- An Azure account with an active subscription
- One of the following:
- Azure CLI installed (for CLI method) - Install Azure CLI
- Sufficient Azure permissions (for either method):
- To create service principals: Cloud Application Administrator role or higher in Microsoft Entra ID
- To assign roles: Owner or User Access Administrator role on the subscription
Login to Azure CLI
1 | |
This will open a browser window for authentication. Complete the login process.
Get Your Subscription ID
1 | |
Save this value - you'll need it for Waldur configuration.
Register Resource Providers
To avoid errors when creating Virtual Machines and related resources, register the necessary resource providers:
1 2 3 4 5 6 7 8 | |
Verify registration:
1 2 | |
Create Service Principal with Role Assignment
Run the following command to create a service principal with Contributor access to your subscription:
1 2 3 4 | |
Replace <YOUR_SUBSCRIPTION_ID> with the subscription ID from Step 2.
Tip
You can use a different role if needed. See Azure built-in roles for other options.
Save the Output
The command will output JSON containing all the credentials you need:
1 2 3 4 5 6 | |
Map these values for Waldur:
appId→ Client IDpassword→ Client Secrettenant→ Tenant ID- Subscription ID from Step 2 → Subscription ID
Warning
The password (Client Secret) is only shown once. Save it immediately in a secure location.