Skip to content

Azure

Self-Hosted Only

NetBlueprint Forge on Microsoft Azure

Copyright (c) 1998-2026 DigitalPrez, LLC. All rights reserved.

How to run NetBlueprint Forge’s containers in an Azure subscription: on Azure Kubernetes Service with the Helm chart, the main route, or on Azure Container Apps, the lighter one. The same steps serve a customer in its own subscription and DigitalPrez, LLC in its own (../README.md, “The three modes”). Read ../README.md first: it holds what the application needs from any cloud, the defaults chosen, the settings and the placeholders. Written 2026-11-22.

Status

The images this guide uses run in production on DigitalPrez’s own Kubernetes cluster since 2026-11-27 (../digitalprez/RELEASES.md), and under Docker Compose (../compose/README.md, Status). The modules in kubernetes/ and serverless/ pass tofu validate with OpenTofu 1.13.9, which checks every argument against the provider’s schema; the chart was rendered with Helm 4.3.2 (../README.md, Status). Services and versions were checked against Microsoft’s documentation on 2026-11-22 (Sources). Steps that could not be checked carry Verify and a row in Open items.

The first real runs are walked step by step in VALIDATE.md, beside this guide: each step proves one thing this guide could only describe, and names the open item below that a pass closes.

Read This Before Choosing the Serverless Route

Azure Container Apps is the lighter route, and it gives up more than the other two clouds’ serverless services do:

  • A container app has no security settings at all: no read-only file system, no dropped capabilities, no user to run as beyond the image’s own (the 2026-07-01 schema of Microsoft.App/containerApps, read). The images still run as non-root users, because they are built that way.
  • The worker cannot be cut off from the network on its own: egress rules apply to the environment’s subnet, which the API shares.
  • Sticky sessions work only in single-revision mode (read).
  • Container Apps is not on Azure Government’s list of authorized services (read).

For a customer that needs the design’s hardening, or for Azure Government, use the cluster route.

What Runs Where

Part Cluster Route (kubernetes/) Serverless Route (serverless/)
API and worker Azure Kubernetes Service 1.37, Azure CNI powered by Cilium, node images upgraded automatically, the chart in ../helm/netblueprint-forge Azure Container Apps, a workload profiles environment in the instance’s virtual network
Load balancer and TLS Application Gateway for Containers from the chart’s Gateway API route; the certificate from a Kubernetes secret Container Apps’ own ingress, with a free managed certificate for the domain
How the API finds the worker The Kubernetes service forge-worker The worker app’s internal ingress, http://<name>-<instance>-worker inside the environment
PostgreSQL Azure Database for PostgreSQL flexible server, PostgreSQL 18, private access in a delegated subnet, one server per instance The same
Cache Azure Managed Redis, Enterprise clustering policy (one endpoint), TLS on port 10000, access keys, a private endpoint The same
Folder of keys An Azure Files SMB share per instance, mounted with user and group 1654 and mode 700, through the Azure Files CSI driver The same share, as a Container Apps storage mount
Key-encryption key Azure Key Vault, an AES key per instance in a Premium vault, used through workload identity (“The key service”) The same key, used by the API app’s identity
Secrets Azure Key Vault, one secret per instance, copied into a Kubernetes secret at install Key Vault, referenced by the container apps through a user-assigned managed identity
Registry Azure Container Registry, scanned by Microsoft Defender for Containers when it is on The same
Logs Container insights to a Log Analytics workspace Container Apps logs to the same workspace
Network A virtual network: a subnet for the cluster, one delegated to Application Gateway for Containers, one delegated to PostgreSQL, one for private endpoints, and a NAT gateway for the API’s way out The same, with the environment’s subnet in place of the cluster’s

How It Fits Together

Browser ──HTTPS──► Application Gateway for Containers, or Container Apps ingress
sticky cookie, long idle timeout, /api/health
│
▼
API ── NAT gateway ──► AI vendor, identity providers
│ │ │ │
│ │ │ └──► Azure Files share: the folder of keys
│ │ └──────────► Azure Managed Redis (private endpoint)
│ └──────────────────► PostgreSQL flexible server (delegated subnet)
▼
Worker, port 5081: reached by the API only

Azure Front Door is not in front of either route: it “doesn’t support Server-Sent Events” (read), which would cut every assistant answer.

Before You Start

# What Why
P1 An Azure subscription, and Contributor and User Access Administrator on it The modules create their own resource group (<name>-aks-<location> or <name>-apps-<location>) and grant the managed identities their roles
P1a The subscription’s resource providers registered once, by its owner: Microsoft.ContainerService, .Network, .NetworkFunction, .ServiceNetworking, .DBforPostgreSQL, .Cache, .Storage, .KeyVault, .ContainerRegistry, .OperationalInsights, .Insights, .ManagedIdentity, .RecoveryServices, and .App for the serverless route (az provider register --namespace ...) Version 5 of the azurerm provider registers none by itself
P2 OpenTofu 1.10 or later (or Terraform 1.10 or later), the Azure CLI, jq, Docker with buildx, and for the cluster route kubectl and Helm 3.19 or later The steps below use them
P3 Two DNS names for each instance, the workspace’s and the console’s (ops.<domain> unless console_host says otherwise), and the right to add records to their zone The certificates and the names (../README.md, “The platform console”)
P4 A place to keep the modules’ state: an Azure Storage container with versioning, or OpenTofu’s state encryption with a Key Vault key The state holds every generated password. The roots name no backend, so until you add one the state is a file in the route’s folder (deploy/.gitignore keeps it out of the repository). To add one, put a backend block in a file of your own named backend_override.tf, which is ignored too
P5 The engine archive named in worker/engine.lock.json, in .local/ The worker image will not build without it
P6 For the cluster route, a TLS certificate and key for each instance that names both its host names, as PEM, or cert-manager in the cluster Application Gateway for Containers takes certificates from Kubernetes secrets only; Key Vault through the CSI driver is not supported (Microsoft, “SSL offloading”, read)

Build and Push the Images

Copy example.tfvars to my.tfvars in deploy/azure/kubernetes or deploy/azure/serverless and set location. The first apply makes the platform with no instance yet: the resource group, the network, the registry, Key Vault and the Log Analytics workspace, and on the cluster route the AKS cluster too. From that folder:

Terminal window
export ARM_SUBSCRIPTION_ID=$(az account show --query id -o tsv)
tofu init
tofu apply -var-file=my.tfvars -var 'instances={}'
az acr login --name "$(tofu output -raw registry_name)"
REGISTRY=$(tofu output -raw registry)

Then from the repository root:

Terminal window
TAG=0.1.0
docker buildx build --platform linux/amd64 -f deploy/compose/Dockerfile.api -t "$REGISTRY/forge/api:$TAG" --push .
docker buildx build --platform linux/amd64 -f deploy/compose/Dockerfile.worker -t "$REGISTRY/forge/worker:$TAG" --push .

Write each image’s digest into the tfvars file (api_image, worker_image). Defender for Containers scans images within hours of a push when it is on for the subscription (read); the modules do not switch it on, because it is a subscription-wide plan with its own cost (Open item 9). Signing with Notation and Key Vault is described in Microsoft’s documentation and is not set up here.

The Cluster Route: Azure Kubernetes Service

1. Apply the Platform and the Instances

Copy kubernetes/example.tfvars, set location and the instances, then:

Terminal window
cd deploy/azure/kubernetes
tofu apply -var-file=my.tfvars

It makes the AKS cluster with Container insights (with the data collection rule it needs), the Azure Files CSI driver (built in), one Application Gateway for Containers in a subnet of its own with the identity its controller uses, and per instance: a PostgreSQL flexible server, an Azure Managed Redis cache, an Azure Files share backed up daily to a Recovery Services vault, the Key Vault secrets forge-<instance>-settings and forge-<instance>-files (the share’s account name and key, for the CSI driver), and a frontend on the gateway. One gateway takes at most five frontends (Azure’s limits page, read), so a cluster holds at most five instances; the module refuses a sixth.

2. Connect to the Cluster, and Install the Gateway’s Controller Once

Terminal window
az aks get-credentials --resource-group "$(tofu output -raw resource_group)" --name "$(tofu output -raw cluster_name)"
helm install alb-controller oci://mcr.microsoft.com/application-lb/charts/alb-controller --version 1.13.0 \
--namespace azure-alb-system --create-namespace \
--set albController.namespace=azure-alb-system \
--set albController.podIdentity.clientID="$(tofu output -raw alb_controller_client_id)"
kubectl get nodes

Verify: that this chart installs the Gateway API’s own resource definitions as well (Open item 4).

3. Install an Instance With the Chart

For an instance called acme:

Terminal window
I=acme
kubectl create namespace "forge-$I"
KV=$(tofu output -raw key_vault_name)
for S in settings files; do
az keyvault secret show --vault-name "$KV" --name "forge-$I-$S" --query value -o tsv \
| jq --arg n "forge-$S" '{apiVersion:"v1", kind:"Secret", metadata:{name:$n}, stringData:.}' \
| kubectl -n "forge-$I" create -f -
done
# The domain's certificate and key, from PEM files of your own; delete the key file afterwards.
kubectl -n "forge-$I" create secret tls forge-tls --cert tls.crt --key tls.key
tofu output -json helm_values | jq -r --arg i "$I" '.[$i]' > "$I.values.yaml"
helm upgrade --install forge ../../helm/netblueprint-forge -n "forge-$I" -f ../../helm/netblueprint-forge/values-azure.yaml -f "$I.values.yaml"

The flexible server’s certificate is signed by public authorities (DigiCert Global Root G2 and Microsoft RSA Root Certificate Authority 2017), which the image’s own store trusts, so no bundle is mounted (Verify, Open item 5).

The chart starts one API replica. When it is ready, raise api.replicas to 2 and upgrade again.

4. Point the Name At the Gateway

Terminal window
kubectl -n "forge-$I" get gateway forge -o jsonpath='{.status.addresses[0].value}'

Add a CNAME from the instance’s domain to that name, and another from its console host (ops.<domain> unless console_host says otherwise).

5. Check It

# Check Passes When
V1 curl -s https://<domain>/api/health "status":"ok" with the pinned engine release
V2 curl -sI https://<domain>/ content-security-policy and x-frame-options are present, and a session affinity cookie is set
V3 kubectl -n forge-$I exec deploy/forge-worker -- node -e "fetch('https://example.com').then(()=>process.exit(1),()=>process.exit(0))" It exits 0: the worker cannot reach out
V4 Two people on one model, two API replicas A change by one appears for the other
V5 An assistant draft that runs for more than four minutes The answer streams to the end
V6 Delete one API pod The page reconnects and nobody is signed out

The Serverless Route: Azure Container Apps

1. Apply the Platform and the Instances

Terminal window
cd deploy/azure/serverless
tofu apply -var-file=my.tfvars

Per instance it makes the same database server, cache and file share as the cluster route, and: a Container Apps environment (workload profiles, Consumption profile) in a subnet of its own, x.x.(16+n).0/24 where n is the instance’s subnet_number (give each instance its own, and never renumber one: that rebuilds its environment); the file share as a storage mount; the worker app <name>-<instance>-worker with internal ingress only, on port 5081; and the API app with external ingress on port 8080, sticky sessions, single-revision mode and the file share at /var/lib/forge/keys. Container Apps cannot pick one key out of a JSON secret, so each secret setting is also a Key Vault secret of its own (forge-<instance>-connection-string, -signing-key, -worker-key, -cache-redis). Two user-assigned identities per instance read them, each holding Key Vault Secrets User on its own secrets only (read): the worker’s reads the worker key, the API’s its four, and the secrets of the instance’s sign-in registrations where it has any (Placeholders, K2). Worker__BaseUrl is http://<name>-<instance>-worker.

The API app starts with one replica (api_min_replicas = 1). Once /api/health answers, set it to 2 and apply again.

2. The Domains and Their Certificates

Add the records tofu output custom_domain_records names: for the workspace’s host and, when the instance has a console, the console’s, a CNAME to the app’s own name and a TXT record (asuid.<name>) for verification. Then apply once more with bind_certificates = true, which binds both names and asks for a free managed certificate for each. Each is validated by its CNAME, so each name must be a subdomain whose CNAME points straight at the app, any CAA record must allow digicert.com, and the app must be reachable from the internet while they are issued (read).

3. Check It

V1, V2, V4, V5 and V6 above apply. Before the domain is bound, the API answers at its own address, tofu output app_urls. V3 does not apply: on this route the worker shares the environment’s way out (Read this before choosing).

What Container Apps Cannot Do, and What It Does Instead

Need What Happens
Read-only file system, capabilities dropped Not available. The images run as their own non-root users
Worker with no way out Not on its own. Optional: a second environment for the worker, in a subnet with no route out, reached by the API over the virtual network (not built by the module; Open item 7)
A 15-minute stream Ingress ends a request after 240 seconds (read). The assistant’s stream sends a keep-alive every 15 seconds, so this holds only if the limit is an idle one, as the premium ingress settings suggest (Verify, Open item 6). If it is not, premium ingress lifts it to 30 minutes on a dedicated D4 workload profile with two nodes or more (read)
The layout check Not available (default F)

How the Application’s Needs Are Met Here

Need (../README.md) On Azure
1. PostgreSQL 18 and a login with CREATEROLE PostgreSQL 18 is generally available on flexible server, now 18.6 (read). The administrator login is NOSUPERUSER, INHERIT, CREATEDB, CREATEROLE, a member of azure_pg_admin, and BYPASSRLS is not among its attributes (read); for PostgreSQL 16 and later Microsoft follows PostgreSQL’s own rules (read). Verify at the first install: select rolbypassrls from pg_roles where rolname = current_user answers f
2. Releases at start The chart’s start-up probe waits up to ten minutes; the API app’s start-up probe the same
3. Shared folder of keys Azure Files over SMB, mounted with uid=1654,gid=1654,dir_mode=0700,file_mode=0600, the storage account reached over a private endpoint. SMB, not NFS: NFS shares have no vaulted backup (read)
4. Sticky sessions, WebSockets, long requests Cluster route: Application Gateway for Containers supports WebSockets and server-sent events (read); session affinity and timeouts are set in the chart’s values-azure.yaml (Verify, Open item 4). Serverless route: sticky sessions in single-revision mode; WebSockets (read); the 240-second limit above
5. Cache over TLS with a password Azure Managed Redis on port 10000 with TLS (read). Access keys stay on: Microsoft Entra sign-in to the cache needs a library the API does not use (read). The Enterprise policy gives one endpoint behind a proxy, and the commands the API uses work on one key at a time (read). It cannot be changed after creation (read)
6. Worker with no way out Cluster route: a NetworkPolicy, enforced by Cilium. Serverless route: see above
7. Forwarded headers Cluster route: Application Gateway for Containers connects from its delegated subnet, Proxy__KnownNetworks__0; serverless route: the environment’s own subnet. Proxy__ForwardLimit is 1 on both (Verify what each adds to X-Forwarded-For, Open item 8)
8. Health route Application Gateway for Containers and Container Apps check /api/health; liveness only checks the port

The Three Modes on Azure

  • Self-hosted: the customer applies either route in its own subscription with one instance.
  • Managed, shared: DigitalPrez applies the cluster route with one instance, shared.
  • Managed, dedicated: one instance per customer on the same cluster, each with its own namespace, database server, cache, file share and secrets, up to five a cluster (one gateway’s frontends); a sixth customer means a second cluster, a second apply of the same module.
  • Removing an instance takes steps by hand before the apply: Azure Backup locks the storage account it protects, and soft-deleted backups keep the Recovery Services vault from being deleted for 14 days.

Backups, Logs and Patching

  • Database: automated backups kept 35 days (the most; read), point-in-time restore to a new server. Geo-redundant backup can be chosen only when the server is created (read); the modules take geo_redundant_backup per instance.
  • Folder of keys: Azure Backup for the file share, daily at 02:00 UTC, kept backup_retention_days, in the vault-standard tier so the copies outlive the storage account. It needs the account’s key access left on (read), and it is why the account’s public endpoint stays open with every network denied but Azure’s trusted services (“Disabled” would shut Azure Backup out too; Verify, Open item 14). Kept apart from the database’s backups.
  • Logs: Log Analytics, 90 days. Both vaults send their audit log there too: every read of a secret and every use of a key, with who asked.
  • Network: the NAT gateway’s idle timeout is 30 minutes, so a long call to the AI vendor is not cut. Key Vault and the registry keep their public endpoints, for the apply’s writes and the build machine’s pushes.
  • Patching: the images on the patch clock; PostgreSQL minor versions in the server’s maintenance window; the cache by Microsoft; AKS node images weekly and Kubernetes patch versions automatically, minor versions by an apply of the module.

Azure Government

Service In Azure Government Use Instead
Azure Kubernetes Service, PostgreSQL flexible server, Key Vault, Container Registry Authorized (read)
PostgreSQL 18 Not stated (Open item 10)
Azure Container Apps Not on the authorized list (read) The cluster route
Application Gateway for Containers No Government regions listed (read) Application Gateway with its ingress controller
Azure Managed Redis Not on the authorized list (read) Azure Cache for Redis Premium, which retires on 2028-09-30 (read), or Valkey run in the cluster

The Platform Console

What is the same on every cloud is in ../README.md, “The platform console and the first operator”. On Azure:

  • Mode. Set platform_mode = "managed" on DigitalPrez’s own subscriptions; it is self-hosted by default, for a customer’s.

  • The console’s host. Each instance’s console is at ops.<domain> unless its console_host names another ("" for none). Cluster route: a CNAME from that name to the gateway’s address, the same as the workspace’s (step 4), and forge-tls must name both hosts. Serverless route: the second custom domain of step 2.

  • The first operator’s password, on the cluster route. Switch on the chart’s keys reader for a few minutes. It is a pod that only sleeps, with the share mounted, as the one user that may read the file. Read the file through kubectl exec, whose output does not reach the container logs Container insights collects; kubectl run ... cat would put it there.

    Terminal window
    helm upgrade forge ../../helm/netblueprint-forge -n "forge-$I" --reuse-values --set keysReader.enabled=true
    kubectl -n "forge-$I" wait --for=condition=Ready pod/forge-keys-reader --timeout=5m
    kubectl -n "forge-$I" exec forge-keys-reader -- cat /keys/first-operator-password.txt
    # Sign in at https://ops.<domain>: the console asks for a password of your own and an authenticator app. Then:
    kubectl -n "forge-$I" exec forge-keys-reader -- rm /keys/first-operator-password.txt
    helm upgrade forge ../../helm/netblueprint-forge -n "forge-$I" --reuse-values --set keysReader.enabled=false
  • The first operator’s password, on the serverless route. The API’s image has no shell. Container Apps’ debug console (preview) adds one beside it, from which the API’s files are reached through its first process:

    Terminal window
    az containerapp debug --name "<name>-$I-api" --resource-group "$(tofu output -raw resource_group)"
    # In the debug console:
    switch-user
    cat /proc/1/root/var/lib/forge/keys/first-operator-password.txt
    # After signing in at https://ops.<domain>:
    rm /proc/1/root/var/lib/forge/keys/first-operator-password.txt

    Verify (Open item R17): that /proc/1/root reaches the share (Microsoft names only /proc/1/cwd), and that a debug session’s output is not logged.

  • The way back in. When every operator is locked out, run operator reset, then read the new first password as above. Cluster route: kubectl -n "forge-$I" exec deploy/forge-api -c api -- dotnet NetBlueprint.Registry.Api.dll operator reset <username>, which needs no shell. Serverless route: az containerapp exec --name "<name>-$I-api" --resource-group <group> --command "dotnet NetBlueprint.Registry.Api.dll operator reset <username>". Microsoft documents --command as the shell to start and says a custom executable must exist in the container, but not whether arguments are passed (Verify, R17). If they are not, the way is a Container Apps job on the same image, settings, secrets and share, with the command overridden, which the modules do not make.

  • Host header. The API tells the console’s requests from the workspace’s by the request’s host name. Verify that Container Apps’ ingress passes it on unchanged (R17; its ingress page lists the headers it adds and says nothing of Host).

The Key Service

The key that wraps every organization’s data key (the KEK) is in Azure Key Vault (docs/architecture/key-management.md, “Azure Key Vault”; DECISIONS.md O-25).

  • One AES key per instance, forge-<instance>-kek, oct-HSM, 256 bits, for encrypt and decrypt only, in a Premium vault of its own, <name>-keys-<suffix>. An AES key needs a Premium vault or a Managed HSM (read), and the platform’s secrets vault is Standard. The keys vault has soft delete for 90 days and purge protection on, which cannot be switched off; it stays apart so that the secrets vault keeps none. The key’s URL, without a version, is tofu output key_vault_keys.
  • How the key is made. azurerm 5.14.0 cannot make an oct key: its source allows EC and RSA only. So the modules make it through Resource Manager with the azapi provider (2.14.0), Microsoft.KeyVault/vaults/keys at API version 2026-05-15, the first stable one that lists oct-HSM. Resource Manager only ever creates keys: a later change to the key’s settings has no effect, and taking an instance out leaves its key in the vault. The apply refuses a key of the same name and another type. Verify (Open item R13) that the key comes out oct-HSM, 256 bits, encrypt and decrypt: Microsoft’s template pages still list only EC and RSA.
  • The API may use it and nothing more: Key Vault Crypto User on that one key; AES-GCM is encrypt and decrypt, which Key Vault Crypto Service Encryption User does not allow. Making the key needs only Contributor, so whoever applies gets no role that can use it.
  • Cluster route: a user-assigned identity per instance, trusted for the service account forge-api in forge-<instance> through the cluster’s OIDC issuer. helm_values adds the pod label azure.workload.identity/use: "true", the service account’s azure.workload.identity/client-id and the settings. Verify (R13) that workload identity still gives the pod its token when the service account and the pod set automountServiceAccountToken: false, as the chart does.
  • Serverless route: the API app’s own identity gets the role.
  • Settings: Encryption__Kek=azure-key-vault, Encryption__KmsKey=<the key's URL> and Encryption__AzureClientId=<the identity's client id>.
  • Never set key_service = false once an instance has used its key. It deletes the keys vault, which can be recovered for 90 days, and the API can no longer open what the key wrapped.
  • An instance that used the key file before. Move it with one API replica (api_min_replicas = 1, or api.replicas: 1 on the cluster route): during a rollout, a replica still on the file cannot open a data key a new one wrapped under Key Vault. Apply, then helm upgrade on the cluster route; the container app rolls out by itself. The API keeps forge-kek.key as an earlier KEK until the background re-encryption has rewrapped every data key (its log says how many). Only then move the file off the share; Azure Backup’s copies still hold it until they expire.
  • The live test, once, with an identity that has the role: set FORGE_LIVE_AZURE_KEY_URL and FORGE_LIVE_AZURE_CLIENT_ID, then run dotnet test --filter CloudKeyManagementTests in api/.
  • A customer’s own key for one organization (O-26) is a setting an operator adds afterwards, with DigitalPrez’s multitenant app (docs/architecture/key-management.md, Azure step 7). The modules do not make it.

Placeholders

  • K1, the key-encryption key in Azure Key Vault. Written: “The key service” above.
  • K2, sign-in methods. Passwords, passkeys, the authenticator app and each organization’s own single sign-on (OpenID Connect or SAML 2.0) need no setting.
    • Passkeys are bound to the instance’s host name: moving an instance to another host name leaves its people’s passkeys behind.

    • Microsoft, Google and Apple accounts, self sign-up, and the operators’ single sign-on and breach check are optional, and are variables of the modules on both routes: sign_in, operator_sign_on and breach_check on the instance, and the secrets in instance_secrets, from a secrets.tfvars of your own, copied from secrets.tfvars.example. ../README.md, “Sign-in registrations and the operators’ single sign-on”, describes them; tofu output registration_addresses gives the addresses to register with each provider. A plan refuses half a registration, self sign-up on a self-hosted platform, and an entry of instance_secrets that names no instance.

    • Where the secrets are. In the keys vault, each there only when it is set. On both routes they are keys of the one JSON secret forge-<instance>-settings, beside the four it always has; the cluster route reads that one. Key Vault takes a secret of up to 25 KB (read), which covers the whole JSON. On Container Apps each is also a secret of its own, which the API’s identity alone may read: forge-<instance>-microsoft-secret, -google-secret, -apple-private-key and -operator-sso-secret. The names are short because the Azure CLI allows a Container Apps secret’s name 20 characters (read).

    • After a change, on the cluster route. A pod reads its settings when it starts, so the secret goes into the cluster again and the release is upgraded with the new values:

      Terminal window
      tofu apply -var-file=my.tfvars -var-file=secrets.tfvars
      az keyvault secret show --vault-name "$KV" --name "forge-$I-settings" --query value -o tsv \
      | jq --arg n "forge-settings" '{apiVersion:"v1", kind:"Secret", metadata:{name:$n}, stringData:.}' \
      | kubectl -n "forge-$I" replace -f -
      tofu output -json helm_values | jq -r --arg i "$I" '.[$i]' > "$I.values.yaml"
      # Add --set api.replicas=2 if you had raised it by hand: the file is written afresh.
      helm upgrade forge ../../helm/netblueprint-forge -n "forge-$I" -f ../../helm/netblueprint-forge/values-azure.yaml -f "$I.values.yaml"
      # When only a secret changed, nothing in the release did, and the pods must be told:
      kubectl -n "forge-$I" rollout restart deploy/forge-api

      The JSON is one line, with the line breaks of Apple’s key written as \n inside it, so step 3’s pipe carries it as it is.

    • After a change, on Container Apps. The apply does it: a new id, or a secret set for the first time, changes the API app, which makes a new revision. A new value of a secret already there, such as a renewed client secret, changes nothing in the app: the app names each secret without a version, and Container Apps fetches the new value within 30 minutes and restarts the revision to read it (Microsoft, “Manage secrets in Azure Container Apps”, read). A command run with az containerapp exec sees the same settings, since they are the container’s own.

    • Two things Microsoft’s pages do not say (Verify, Open item R18), both on Container Apps only. That a Key Vault secret of several lines, Apple’s key, reaches an environment variable with its line breaks: if it does not, give the key in secrets.tfvars on one line with each line break written as \\n, which the API reads too. And that an environment variable with an empty value is kept: mfa_amr = "", which says that only the mfa_acr values prove a second factor, is passed that way.

  • K3, platform operators. Written: “The platform console” above. The operators’ single sign-on and breach check are settings of K2.
  • K4, AI vendors. Placeholder. Expected: the settings of the instance’s own AI account, including Azure OpenAI, and the addresses the API must reach.

Open Items and Risks

# Item Status Where
R1 Nothing has been applied or run Open Everything
R2 The first administrator when sample data is off: the API’s set-up command makes the organization and prints the administrator’s invitation link (help, Deploying, Settings). It ran in a container under Compose on 2026-11-23 (../compose/README.md), not yet on this route Verify After step 3 of either route
R3 Container Apps has no container security settings Accepted: the lighter route, by the owner’s decision 1 Read this before choosing
R4 Application Gateway for Containers: the session affinity and timeout settings in values-azure.yaml, that its controller’s chart brings the Gateway API’s definitions, and that it reaches pods on the Cilium data plane Verify Cluster route
R5 That the image’s certificate store trusts the flexible server’s authorities Verify Step 3
R6 Whether Container Apps’ 240-second limit is an idle one Verify Serverless route
R7 The worker shares the environment’s way out on Container Apps Open Serverless route
R8 What each ingress adds to X-Forwarded-For Verify Need 7
R9 Defender for Containers is a subscription-wide choice, left to the subscription’s owner Open Build and push
R10 PostgreSQL 18 in Azure Government Verify Azure Government
R11 Azure Cache for Redis retires on 2028-09-30, so the Government route has a date on it Open Azure Government
R12 The application’s script was not compressed on the first load (default A) Closed 2026-11-22: the API sends the Brotli or gzip copy the build writes; the workspace’s first load is about 187 KB and the console’s 153 KB, against 219 KB and 178 KB behind nginx ../README.md, default A
R13 The key service: that Resource Manager makes the key oct-HSM, 256 bits, encrypt and decrypt, and that workload identity gives the pod its token with automountServiceAccountToken: false Verify modules/instance/key.tf, kubernetes/outputs.tf
R14 Vaulted backup of the share with the storage account closed but to trusted services Verify modules/instance/file-share.tf
R15 Container Apps: that the storage mount goes through the private endpoint, that uid and gid apply on the SMB mount, that the managed certificate is bound without a further step, and that the TXT record takes the environment’s verification id (Microsoft’s steps read the app’s, which the provider keeps secret) Verify serverless/apps.tf, serverless/outputs.tf
R17 Container Apps and the console: that az containerapp exec --command passes arguments, that the debug console reaches the share through /proc/1/root and is not logged, and that ingress passes the Host header on Verify The platform console
R18 Container Apps and the sign-in settings: that a Key Vault secret of several lines reaches an environment variable with its line breaks, as Apple’s key has, and that an environment variable with an empty value is kept (mfa_amr = ""). Microsoft’s pages on secrets and environment variables say neither (read). VALIDATE.md, S2, S4 and S6 on Container Apps Verify Placeholders, K2; serverless/apps.tf, serverless/sign-in.tf
R16 The domain’s certificate is a PEM file the operator holds and deletes after step 3, or cert-manager, which the modules do not install Open Cluster route, step 3

Sources

Read on 2026-11-22. “Read” means the page itself was fetched and read; “search” means seen only in search results.

Source What It Gives How It Was Read
learn.microsoft.com/azure/postgresql/configure-maintain/concepts-supported-versions PostgreSQL 18 generally available, 18.6 Read
learn.microsoft.com/azure/postgresql/security/security-manage-database-users and security-access-control The administrator’s attributes; PostgreSQL 16 rules Read
techcommunity.microsoft.com, “PostgreSQL 18 now GA on Azure Postgres flexible server” When 18 became generally available Search
learn.microsoft.com/azure/azure-cache-for-redis/retirement-faq Retirement dates of Azure Cache for Redis Read
learn.microsoft.com/azure/redis/overview, tls-configuration, choose-clustering-policy, architecture, entra-for-authentication, private-link Azure Managed Redis: version, port, policies, sign-in, private endpoints Read
redis.io/docs/latest/operate/rs/references/compatibility/commands/pub-sub/ and …/scripting/ Publish and subscribe, and scripts, on Redis Software Read
learn.microsoft.com/aspnet/core/signalr/redis-backplane The backplane on a Redis cluster Read
learn.microsoft.com/azure/container-apps/ingress-overview, sticky-sessions, premium-ingress, ingress-environment-configuration, networking, storage-mounts, manage-secrets, containers, custom-domains-managed-certificates, log-options Container Apps: WebSockets, affinity, timeouts, storage, secrets, certificates, logs Read
learn.microsoft.com/azure/templates/microsoft.app/containerapps No security settings in the container schema Read
learn.microsoft.com/azure/aks/supported-kubernetes-versions AKS 1.34 to 1.37 Read
learn.microsoft.com/azure/application-gateway/for-containers/overview Gateway API, WebSockets, server-sent events; no Government regions Read
learn.microsoft.com/azure/frontdoor/standard-premium/websocket Front Door does not support server-sent events Read
learn.microsoft.com/azure/key-vault/keys/about-keys-details, general/rbac-guide Key types, oct-HSM in Premium vaults, roles Read
The azurerm provider’s source at v5.14.0, Azure’s REST specification for Microsoft.KeyVault/vaults/keys, and Microsoft’s Resource Manager quickstart for keys azurerm makes no oct key; API version 2026-05-15 takes oct-HSM Read by the module writer on 2026-11-22
learn.microsoft.com/azure/postgresql/backup-restore/concepts-backup-restore Backups 7 to 35 days, restore to a new server Read
learn.microsoft.com/azure/backup/azure-file-share-support-matrix Backup of SMB and NFS shares Read
learn.microsoft.com/azure/azure-government/documentation-government-product-roadmap and compare-azure-government-global-azure What is authorized in Azure Government Read
learn.microsoft.com/azure/defender-for-cloud/agentless-vulnerability-assessment-azure Registry scanning Read
Microsoft, “About Azure Key Vault secrets” and “Store a multiline secret in Azure Key Vault”; “Manage secrets in Azure Container Apps”; the CLI reference for az containerapp secret set A secret of up to 25 KB, of several lines if need be. A Container Apps secret that names a Key Vault secret without a version takes a new value within 30 minutes and restarts the revision. A Container Apps secret’s name is at most 20 characters. Nothing on line breaks or on an empty value in an environment variable (Open item R18) Read by the module writer on 2026-11-22, as the fetch tool extracted the page; the addresses were not recorded