Required provider_config¶
Azure requires six fields, the largest set of the three clouds.
| Field | Flag | Example |
|---|---|---|
subscription_id |
--subscription-id |
<subscription-id> |
tenant_id |
--tenant-id |
<tenant-id> |
location |
--location |
<location> |
resource_group |
--resource-group |
<resource-group> |
aks_oidc_issuer |
--aks-oidc-issuer |
https://<location>.oic.prod-aks.azure.com/<aks-oidc-path>/ |
artifact_registry_scope |
--artifact-registry-scope |
/subscriptions/.../registries/<acr-name> |
As flags¶
xratu dataplane install prepare acme edge-eu dp-eu-west1 \
--provider azure \
--dp-count 2 \
--artifact-registry <acr-name>.azurecr.io/<repository> \
--artifact-bucket azblob://<storage-account>/<container>/<prefix> \
--subscription-id <subscription-id> \
--tenant-id <tenant-id> \
--location <location> \
--resource-group <resource-group> \
--aks-oidc-issuer https://<location>.oic.prod-aks.azure.com/<aks-oidc-path>/ \
--artifact-registry-scope /subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.ContainerRegistry/registries/<acr-name>
As a spec¶
provider: azure
provider_config:
subscription_id: <subscription-id>
tenant_id: <tenant-id>
location: <location>
resource_group: <resource-group>
aks_oidc_issuer: https://<location>.oic.prod-aks.azure.com/<aks-oidc-path>/
artifact_registry_scope: /subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.ContainerRegistry/registries/<acr-name>
azure_authority_host: ''
The registry scope is long enough that the spec form is easier to get right than the flag form.
What each is used for¶
| Field | Where it lands |
|---|---|
subscription_id, tenant_id |
The Terraform azurerm provider block |
location, resource_group |
Where the managed identities are created |
aks_oidc_issuer |
The issuer on each federated identity credential |
artifact_registry_scope |
The scope on each AcrPush role assignment |
artifact_registry_scope is the registry's full Azure resource ID, distinct
from artifact_registry.path, which is its login server and repository. Azure
needs both: the resource ID to assign a role on, and the login server to push
to.
Missing fields fail at prepare¶
provider_config.aks_oidc_issuer is required for azure
provider_config.artifact_registry_scope is required for azure
Finding the values¶
The AKS cluster needs the OIDC issuer and workload identity features enabled for the issuer URL to exist.
Related¶
- Azure paths for the registry, the scope, and the
azblob://form. - Azure workload identity.