We need to obtain the subscription ID, tenant ID, client ID, and secrets in order for the Open Service Broker to launch Azure services on our behalf:
- Run the following command to obtain the required lists:
az account list -o table
- Copy your subscription ID and save it in an environment variable:
export AZURE_SUBSCRIPTION_ID="<SubscriptionId>"
- Create a service principal with RBAC enabled so that it can launch Azure services:
az ad sp create-for-rbac --name osba-quickstart -o table
- Save the values from the command output in the environment variable:
export AZURE_TENANT_ID=<Tenant>
export AZURE_CLIENT_ID=<AppId>
export AZURE_CLIENT_SECRET=<Password>
- Now we can deploy the Open Service Broker, as follows:
helm repo add azure https://kubernetescharts.blob.core.windows.net/azure
helm install azure/open-service-broker-azure --name osba --namespace osba
--set azure.subscriptionId=$AZURE_SUBSCRIPTION_ID
--set azure.tenantId=$AZURE_TENANT_ID
--set azure.clientId=$AZURE_CLIENT_ID
--set azure.clientSecret=$AZURE_CLIENT_SECRETD