Skip to content

Azure-specific edits before apply

Azure needs no edit to complete an installation. The client IDs its annotations require are allocated by Terraform and substituted by apply before the cluster layer, so the flags carry the whole installation and up runs it end to end. See Azure workload identity.

What follows is for the cases where your subscription requires something the install flags do not express.

Use a custom role instead of AcrPush

AcrPush covers push and pull. Where your subscription requires custom roles, replace role_definition_name with role_definition_id pointing at yours:

resource "azurerm_role_assignment" "runtime_acr_push" {
  scope              = "/subscriptions/.../registries/<acr-name>"
  role_definition_id = "/subscriptions/.../roleDefinitions/<custom-role>"
  principal_id       = azurerm_user_assigned_identity.runtime.principal_id
}

Add tags

resource "azurerm_user_assigned_identity" "runtime" {
  name                = "dp-eu-west1-runtime"
  location            = "<location>"
  resource_group_name = "<resource-group>"
  tags = {
    owner       = "platform"
    environment = "prod"
  }
}

Set a sovereign or private authority host

provider_config:
  azure_authority_host: https://login.microsoftonline.us/

In the spec rather than the rendered file, so it survives a re-prepare.

Where to make each change

Change Put it in
Endpoints, namespaces, images, node count, approved namespaces install.input.yaml
Custom roles, tags terraform/main.tf
The registry, storage account and container Your own infrastructure, outside the bundle

Before you apply

cd install/dp-eu-west1/terraform
terraform init
terraform plan

Check the subject on each federated identity credential in the plan. It must name the namespace and service account the manifests use, and a mismatch fails silently after apply rather than during it.