Blog Post

Azure Architecture Blog
14 MIN READ

Validating private edge IoT and local AI on Azure Local before hardware arrives

quintindekok's avatar
quintindekok
Icon for Microsoft rankMicrosoft
Nov 30, 2026

Hardware lead times don't have to stall edge validation. Here is how I used a governed nested Azure LocalBox lab in a platform-owned spoke to test AKS enabled by Azure Arc, Foundry Local inference, private IoT Hub, and zero-drift teardown before physical racks arrived.

Hardware procurement lead times do not need to block platform and network teams from validating enterprise firewalls, private DNS and identity policies. A public-IP development VM makes for a quick application demo, not a test of corporate governance.

Before the site hardware arrived, I built a governed nested Azure Local lab from Azure Arc Jumpstart LocalBox inside a platform-owned Azure spoke. I provisioned Azure Kubernetes Service (AKS) enabled by Azure Arc, served a Foundry Local model over internal HTTPS, verified private paths to Azure Monitor and Azure IoT Hub, and then tore down the workload to prove that shared platform services still worked.

Lab run summary (23 to 26 November 2026, UTC)

ItemRecorded lab run
Outcome8 Pass / 0 Failed / 2 Not run across LAB-01 to LAB-10
Tested stackAzure Local 12.2610.1004.55, Kubernetes 1.34.4, Istio 1.31.4, Microsoft.Foundry 2.261102.2
Deferred scopeAzure IoT Operations and warmed-cache site isolation (LAB-07), plus private Managed Prometheus (LAB-08)
Evidence recordGoverned LocalBox validation record (separates acceptance passes from narrower observations, including failed sub-checks inside passing scenarios. Offline repository checks test compilation and contracts separately from these live results.)

Scope: This is an example architecture built in a nested Azure Local lab. It shows how to configure and check controls such as private connectivity, access to the model, and which data is sent to Azure. It does not establish that a deployment meets regulatory, privacy, security, or industry-specific requirements. Assess those requirements for your own deployment.

Figure 1. The host and its disks stay in the compute region. Callout 4 traces the Azure registration path. The site options panel shows components that the lab did not deploy. Numbered topology walkthrough.

Split-region placement: keeping compute local when registration lives elsewhere

Cloud regional availability rarely aligns across every service in an edge stack. The Azure Local release used in the lab did not list South Africa North as a supported registration region, even though the lab's landing zone and compute lived there.

Rather than relocating the entire lab, I split compute placement from control-plane registration. The outer host VM, its disks, the secured hub firewall, private Azure IoT Hub and the health Log Analytics workspace stayed in South Africa North. West Europe held the Azure Local, Azure Arc resource bridge and AKS registrations, the custom location and the Container Insights workspace. The resource bridge appliance and AKS VMs still ran locally on the nested cluster in South Africa North.

The governed LocalBox Bicep template encodes that split explicitly. computeLocation places the outer VM, while azureLocalInstanceLocation and azureLocalResourceGroup target the registration region. Verify supported regions for your chosen release and every dependent service before bootstrapping nodes. Once registration succeeds, pass the custom location and logical network into AKS enabled by Azure Arc.

Keep control-plane registration separate from application traffic in every design review. Callout 4 traces the Azure Arc resource bridge registration path, not workload payloads. In this reference design, raw readings, prompts and model responses stay at the edge, while selected health and device twin fields go to Azure when connected. Registration, ongoing management, image pulls and model downloads each have their own endpoints. Check what each enabled service sends and where it retains data before signing off a production region pair.

Choosing the right proving ground before ordering hardware

Consider a cold-store temperature alert. The site processes the reading locally, while central support needs service availability and software version. A laptop or single-VM prototype can validate application code, but it reveals nothing about whether pods resolve private endpoints through enterprise DNS, authenticate with the intended identity or schedule onto the right worker pool. Physical commissioning answers a third set of questions altogether.

Test setupUse it to testWhat to keep in mind
Azure Arc Jumpstart LocalBoxExplore nested Azure Local in a standalone lab.The standalone setup does not exercise a platform-owned spoke's routing, DNS or access policies.
Single-VM K3s demoPrototype an MQTT message flow or a local inference call.The demo does not exercise the Azure Arc resource bridge, AKS provisioning or placement on the target worker pool.
Governed nested LocalBoxTest private connectivity, identity, placement and resource ownership before hardware arrives.CPU-based functional tests do not establish production load, GPU throughput or physical fault tolerance.
Physical Azure Local deploymentValidate site hardware, storage, switches and the WAN.Results depend on the actual deployment and its operating conditions.

Match test spend to the architectural question. A secured Virtual WAN hub and nested cluster add no value to a prompt experiment, whereas shared routing, DNS and private endpoints are the exact subject of a private-ingestion test. Inventory what the platform team already operates before deploying new hubs. Azure Firewall, Bastion, retained disks and private endpoints accrue charges while inference sits idle. The fidelity and sizing guide separates those platform meters from workload costs such as Azure IoT Operations node hours.

Testing the platform and workload boundary inside the spoke

In this Azure landing zone design, ownership splits cleanly at the subnet boundary. The platform team owns the secured Virtual WAN hub, Azure Firewall, central Private DNS and operator access. The workload team receives an existing subnet resource ID and deploys only the outer VM, NIC, disks and optional bootstrap extension. Operators connect via point-to-site VPN and private-only Premium Bastion in the management spoke, leaving the workload spoke with zero public IP addresses.

Verify routing, egress and name resolution from the actual nested networks rather than from an operator workstation:

  • Effective routing. Both edge subnets had defaultOutboundAccess disabled, and the host NIC's effective 0.0.0.0/0 route pointed to Azure Firewall. Because more-specific routes can carry private endpoint traffic directly, inspect the effective routes alongside the Virtual WAN routing policy to confirm which flows traverse inspection.
  • Nested egress. From a nested guest, the allowed probe completed certificate-validated TLS 1.3. The denied hostname resolved and completed TCP, then closed during the TLS handshake. Those allow and deny probes passed (LAB-01).
  • Private DNS. Workload pods resolved the health ingestion endpoint, IoT Hub and ACR to private addresses across the full chain: CoreDNS, AD DNS and Azure DNS Private Resolver. I verified TLS against the real service hostnames directly from those pods (LAB-02). A lookup from a VPN client alone never exercises nested cluster DNS.

Build the egress allowlist from the Azure Local firewall requirements plus the exact extension images, charts and model sources you deploy. In connected mode, Foundry catalogue sync required ai.azure.com:443, and StoreModel called eastus.api.azureml.ms:443 to resolve the exact Microsoft-managed public Blob host for model weights rather than opening *.blob.core.windows.net. Check time synchronisation separately: the lab verified outbound NTP on UDP/123, which sits outside the web allowlist. Decide which internal or approved time sources the physical site should allow before cutover.

Unverified checks (LAB-01 and Key Vault audit): The audit container was visible, but blob delivery was not verified.

Sizing the first model request: why a 32 GiB node still stalls

To separate general workload traffic from model serving, I configured dedicated workload and inference node pools and selected a compact CPU ONNX model for functional validation. A Standard_A4_v2 control-plane VM carries 8 GiB of memory, well short of the Foundry Local CPU inference requirement of 14 GiB allocatable per node. The Standard_D8s_v3 inference worker provides 8 vCPUs and 32 GiB of VM memory.

Kubernetes schedules against node allocatable memory minus existing pod requests, not the headline VM size. On a worker with 27 GiB allocatable and 12 GiB already requested, a Job requesting 16 GiB stays Pending even when live memory utilisation looks low.

Measuring cache fill separately from serving

The Foundry Local StoreModel controller caches model artefacts in a local OCI model registry backed by a bound 100 GiB block ReadWriteOnce persistent volume claim (PVC). The documented cache Job defaults request 16 GiB of memory with a 32 GiB limit. For the approximately 862 MB qwen2.5-0.5b-instruct-generic-cpu v4 ONNX model, I configured a 4 GiB request and an 8 GiB limit. Budget the cache Job and the serving pod independently whenever you change models, and repeat the cold-cache test. The request determines whether the pod schedules. The limit still bounds peak memory while the Job downloads and unpacks weights.

The connected cold-cache fill took about 3.5 minutes, from the empty StoreModel baseline at 07:10:38Z to the Job controller's Completed event at 07:14:11Z on 26 November. StoreModel then reached Available with a populated storeRef. Treat that timing as an observation for this model and connected lab, not a general benchmark.

Lab gotcha (model-store-auth and ephemeral cache Jobs): Under nested virtualisation, the default model-store-auth CPU budget can starve Python exec readiness probes and trigger BackoffLimitExceeded on the post-install auth-probe hook. Pass reviewed model-store.registry.auth.resources overrides through extension settings instead of patching generated pods. Separately, the StoreModel controller auto-deleted the completed cache Job before I could read back its Complete condition or rendered pod spec directly. Live extension settings and an earlier same-revision Job spec corroborated the configured 4 GiB / 8 GiB memory budget.

Placement controls worked as designed (LAB-03, LAB-05). A pod without a toleration for sku=inference:NoSchedule failed scheduling on the inference worker, while the model pod landed on that pool with a matching toleration and node selector. One replica served with all three containers ready (inference, nginx-sidecar and entra-sidecar), with the inference container requesting 2 CPU and 4 GiB (4 CPU and 8 GiB limits). A temporary workload Job sent a synthetic cold-store temperature alert over internal HTTPS and received HTTP 200 with a valid, non-empty chat completion. The reply addressed the alert and then trailed off. That proved end-to-end serving under lab conditions, while diagnostic accuracy, instruction following and production concurrency require their own acceptance criteria.

Verifying who can call the model: gateway readiness and caller tokens

Before installing certificate management or the Foundry Local extension, I confirmed that Istio accepted its GatewayClass and programmed a temporary ClusterIP test Gateway (LAB-03). The deployment guide's Foundry Local prerequisites record the pinned Gateway API CRDs, install sequence and chart and image destinations. Separating gateway readiness from caller authentication ensures a broken route cannot masquerade as an access denial.

I enabled Foundry Local service account token (SAT) authentication with satAuth.audience=foundry-local and bound GeneralInferenceUser exclusively to app-allowed inside the ModelDeployment. A trust-manager bundle distributed only the public Foundry root CA certificate. Every test hit the same internal HTTPS endpoint with TLS 1.3 and strict CA and hostname verification (LAB-06):

CallerObserved result
app-allowed with the configured audienceHTTP 200, valid non-empty completion
app-denied with the configured audienceHTTP 403
Missing token (Authorization header omitted)HTTP 401
app-allowed with the wrong audienceHTTP 401

Those four checks verify the model grant and token validation together. Workload Identity for AKS enabled by Azure Arc serves a distinct role: it federates a pod's identity to reach Azure services such as the Logs Ingestion API, not the local model gateway.

Preview note: Workload Identity is a self-service, opt-in preview for the release used in this lab. It is provided as is and as available, outside the service-level agreements and limited warranty, with best-effort support. Preview availability can vary by region, and features may change before general availability. Check the current requirements and limitations before deploying.

Extending verified paths to site IoT and isolation checks

Figure 2. The animation highlights separately verified paths: encrypted SMB (2), internal inference (3), direct private ACR pulls (5), health ingestion (6) and device access (7). Local MQTT acquisition and command acknowledgement (1 and 4) are deferred. Numbered data flow walkthrough.

In the connected lab run (LAB-05), AKS workloads pulled approved mirrored images directly from private ACR using pull-only repository scope-map credentials, alongside Microsoft Container Registry images and public Azure Machine Learning model downloads. Once cached, the model pod retrieved artefacts from the local OCI model registry. Azure Container Registry Connected Registry was not deployed, so this run relied on connected cold-start routes.

Application persistence ran as an independent check (LAB-04). A workload pod mounted an encrypted SMB 3.1.1 share through smb.csi.akshci.com with vers=3.1.1 and seal, authenticating with a dedicated Active Directory workload service account. I wrote a synthetic marker, replaced the pod and read back the identical SHA-256 digest from a new pod UID. That SMB share carries application and evidence files, completely separate from Foundry Local's block PVC.

Lab gotcha (storage encryption by layer): Verify encryption on every volume layer independently rather than assuming uniform coverage. On the nested Azure Local guests, the OS C: volume reported BitLocker FullyDecrypted, while 4/4 Cluster Shared Volumes reported FullyEncrypted.

I did not deploy Azure IoT Operations, exercise the local MQTT loop or interrupt cloud routes against a warmed cache (LAB-07). Run three additional checks before signing off the site design:

  1. Prove the connected loop. Publish a synthetic reading to the local MQTT broker, persist it, call the local model and verify a simulator acknowledgement of a test command through the broker. Keep device twin synchronisation on its separate IoT Hub path, and validate desired device properties as configuration inputs rather than direct industrial commands.
  2. Stage and verify the cache. If the site deploys Connected Registry, synchronise approved images and verify local pulls from AKS. Record exact image and model versions, confirm the model is cached in the separate OCI registry, and audit DNS and authentication dependencies while the WAN is up.
  3. Interrupt cloud application routes for a measured window. Keep the local broker, storage and operator recovery path active. Send a fresh reading and confirm persistence, inference and command acknowledgement throughout the outage window. When routes return, check buffered status ordering and freshness so a stale healthy record never overwrites a newer fault. Record the interrupted routes and observed window. A warmed-cache test does not prove cold-start operation without cloud access.

Sending Azure only allowlisted operational signals

Private connectivity restricts where traffic travels, not what rides inside an encrypted request. In this design, two narrow private paths project operational status to Azure while raw telemetry and prompts remain local.

For health records, a workload pod used federated Workload Identity and a Direct data collection rule (DCR) to post two allowlisted rows to the private Logs Ingestion API (LAB-02). Both requests returned HTTP 204. With the health data collection endpoint (DCE) and Log Analytics workspace linked to Azure Monitor Private Link Scope (AMPLS), a private KQL query returned HTTP 200 and confirmed both rows. Agree a tight schema with the support team (such as component, availability, version and memory pressure), enforce it in the publisher and project only those approved columns in the DCR.

To prevent container collectors from bypassing that boundary, I staged the container-azm-ms-agentconfig ConfigMap before enabling Container Insights, disabling stdout, stderr, environment variable collection and all-Kubernetes-event collection. The Container Insights DCR also omitted container log and event streams. I paired the two positive health records with a uniquely tagged synthetic canary intended to stay local. Neither workspace returned the canary during its observation window, and the Container Insights workspace showed Heartbeat rows for the lab cluster only, with zero ContainerLog, ContainerLogV2 or KubeEvents rows. Always pair a positive control with a forbidden canary when collection settings change so an empty query cannot be mistaken for a dead collector.

The second cloud path carries typed device twin properties over the IoT Hub private endpoint (LAB-09), with public network access and local authentication disabled. The differential probe returned private HTTP 200, public HTTP 401 (401002) and public MQTT CONNACK 5. After verifying proof of possession for an issuing CA under an offline root, an isolated SDK client sent allowlisted twin updates across an X.509 leaf certificate rotation. reported.$version advanced from 2 to 3 while the twin ETag stayed unchanged.

Negative controls closed the loop on that path. The publisher rejected an out-of-policy payload before transmission, and an untrusted certificate chain received MQTT CONNACK 5. Disabling the device with its exact registry ETag caused fresh connections from both leaf certificates to receive CONNACK 5. AKS pods separately confirmed private DNS resolution and TLS on ports 443 and 8883. Keep twin properties strictly typed and bounded. Because IoT Hub does not check certificate revocation lists in this authentication flow, include explicit device disablement in lifecycle testing and document the response plan for an issuing CA compromise.

Optional metrics path: I left enableManagedPrometheus = false. Local Prometheus and the Azure Monitor workspace (AMW) default DCE-to-AMPLS path were neither deployed nor tested (LAB-08). If your site requires Managed Prometheus, link the workspace's default ingestion DCE to AMPLS, grant publisher rights on the default ingestion DCR and test private ingestion explicitly. Private queries use a separate Azure Monitor workspace prometheusMetrics endpoint, as documented in the Azure Monitor Private Link guidance for Kubernetes.

Teardown as an ownership test: what a VM delete misses

Deleting an outer VM tells you nothing about whether shared networking survived or orphaned storage is still accruing charges. Before removing the workload, I captured a spoke_snapshot of the shared subnets, NSGs, route table and DNS state, then ran a controlled dependency-ordered teardown (LAB-10):

  • Shared AMPLS and workload locks: I removed the four workload-owned AMPLS links while preserving the shared platform workspace link. The diagnostic storage account's deletion lock blocked removal of its Blob private endpoint until I cleared the lock with explicit operator approval. Key Vault remained soft-deleted under purge protection and was not purged.
  • Detached resources: The post-deletion attachment audit caught 1 detached NIC and 9 unattached Premium SSDs totalling 5,120 GiB. I deleted them explicitly and confirmed zero workload NICs, zero workload disks and zero active resources across both retained workload resource groups.

Lab gotcha (extension hooks and Arc bridge ordering): Remove model deployments, cached artefacts and trust bundles before uninstalling extensions, and keep the Arc resource bridge online until all dependants are gone. In this lab, the Foundry extension's uninstall hook hung through two standard delete waits and required the Azure CLI force-delete fallback. Because the custom location could not be deleted while the Arc resource bridge was offline, I had to restart the nested guests temporarily to complete removal, and one stalled cluster node required operator-approved power-off during shutdown.

After cleanup, diff -u between the before and after spoke_snapshot exited 0 with zero output: no drift in the captured shared network state. A retained VPN client still resolved shared private endpoints and completed verified TLS requests to Bastion and private ACR. The teardown procedure separates inventory diffing, live endpoint probes and detached-resource audits because each catches a distinct class of failure.

Handing the remaining checks to the site team

Supportability: This is an example built in a nested Azure Local lab, not a statement that Microsoft supports the combined configuration in production. Support, release compatibility and feature availability depend on each product and how it is deployed. Before using the design on a physical site, check the documented requirements for the versions, hardware and regions you plan to use.

Bring the network, security and site engineering leads together before physical racks arrive. Agree which lab results carry forward into the site design and which checks must be repeated with production identities, branch DNS forwarding and site WAN circuits. Record the exact client, identity, collector and destination table for every data-plane test. Assign named owners for branch WAN loss and operator recovery, real sensor timing and safety interlocks, GPU assignment and production concurrency, and storage rebuilds, switch failover and RDMA across physical fault domains. A governed nested lab will not replace physical commissioning, but it turns go-live week into a verification exercise rather than a discovery session.

References

Project guides and diagrams

Azure Local and networking

AKS enabled by Azure Arc, Foundry Local and workload dependencies

Private monitoring and device management

Published Nov 26, 2026
Version 1.0
No CommentsBe the first to comment