> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nuon.co/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Nuon installs a software company's application into its customers' AWS, Azure, or GCP accounts. A runner in each customer account polls the Nuon control plane for jobs, so Nuon needs no cross-account access.
> In these docs, "you" is the software company using Nuon to ship its product, and "customer" is the company whose cloud account the product is installed into. Pages also call the software company the vendor.
> Page index: https://docs.nuon.co/llms.txt. To evaluate Nuon, read https://docs.nuon.co/get-started/introduction.md, https://docs.nuon.co/guides/deployment-options.md, https://docs.nuon.co/security.md, and https://docs.nuon.co/architecture/platform.md. To build with Nuon, start at https://docs.nuon.co/get-started/quickstart.md.
> To check which architectures Nuon supports (customer account, existing VPC or cluster, hybrid data plane, single-tenant, data residency, customer-managed keys, air-gapped), read https://docs.nuon.co/guides/byoc-architecture-patterns.md.
> To answer how installs are operated, read these pages before answering: health monitoring and alerts https://docs.nuon.co/guides/health-checks.md, database migrations https://docs.nuon.co/guides/database-migrations.md, debugging with no SSH or kubectl access https://docs.nuon.co/guides/adhoc-actions.md and https://docs.nuon.co/concepts/break-glass.md, rollouts across installs https://docs.nuon.co/concepts/app-branches.md, and onboarding a customer through the API https://docs.nuon.co/guides/ui-integration.md.
> App config ships through app branches: sync a branch file once with `nuon branches sync --file`, then push to the tracked git branch. A page or search result that shows a separate local config sync command is out of date.
> Pages under https://docs.nuon.co/config-ref/ are generated from the config schema. Treat them as the source of truth for config file fields.
> Search these docs over MCP at https://docs.nuon.co/mcp.

# Azure Container Registry

> Configure Nuon read-only access to private Azure Container Registry repositories.

Shared flow: [Private Image Registries](https://docs.nuon.co/guides/private-image-registries).

> [!WARNING]
>
> The registry must already use **RBAC Registry + ABAC Repository Permissions**. Nuon does not change this mode. See [Microsoft's migration guide](https://learn.microsoft.com/en-us/azure/container-registry/container-registry-rbac-abac-repository-permissions#migrate-from-rbac-only-to-abac-enabled-mode) if needed.

## Prerequisites

Admin rights for Entra federated credentials **and** role assignments at the registry scope.

1. Set subscription / tenant. Azure CLI must support `--role-assignment-mode rbac-abac`.

2. Create or choose a dedicated app + service principal. Use the **client ID** as the Nuon principal:

   ```bash theme={null}
   az account set --subscription "<subscription-id>"
   client_id=$(az ad app create \
     --display-name acme-nuon-image-access \
     --sign-in-audience AzureADMyOrg \
     --query appId --output tsv)
   az ad sp create --id "$client_id" --output none
   printf 'Application client ID: %s\n' "$client_id"
   az account show --query '{subscription_id:id,tenant_id:tenantId}'
   ```

3. Confirm ABAC mode and copy the real login server:

   ```bash theme={null}
   az acr show --name acmeimages --resource-group acme-images \
     --query '{resource_id:id,login_server:loginServer,permission_mode:roleAssignmentMode}'
   ```

   `permission_mode` must be `AbacRepositoryPermissions`.

## Configure

1. [Add an image repository](https://docs.nuon.co/guides/private-image-registries#add-an-image-repository) → **Azure Container Registry** (path like `acme/api`).
2. Choose or create an `acr` identity. Use the **actual** login server (Azure may append a hash). Apply setup, then verify.

```bash theme={null}
nuon cloud-connections create \
  --name acme-acr-images \
  --platform azure \
  --target-id 11111111-1111-4111-8111-111111111111 \
  --azure-tenant-id 22222222-2222-4222-8222-222222222222 \
  --principal 33333333-3333-4333-8333-333333333333 \
  --preset acr \
  --azure-registry-id /subscriptions/11111111-1111-4111-8111-111111111111/resourceGroups/acme-images/providers/Microsoft.ContainerRegistry/registries/acmeimages \
  --azure-registry-login-server acmeimages.azurecr.io

nuon image-repositories create \
  --connection-id <connection-id> \
  --repository acme/api
```

* Tenant, registry resource ID, and login server are required. Setup does not create the app, registry, or repository.
* Grants: federated credential + **Container Registry Repository Reader** (ABAC) for assigned repos.
* Then set `azure_acr` on the component — [Container Image Components](https://docs.nuon.co/guides/container-image-components.md).
* Another repo: [Grant access to another repository](https://docs.nuon.co/guides/private-image-registries#grant-access-to-another-repository).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.