azure security
92 TopicsImplement Virtual WAN Secure Hub with Customer-Owned Public IPs for Firewall using AVM
Azure Virtual WAN provides a managed networking architecture that simplifies connectivity between virtual networks, branch locations, VPN connections, and ExpressRoute connections. At the centre of this architecture is the Virtual Hub, which provides managed connectivity and routing. When Azure Firewall and the associated security and routing policies are configured for the Virtual Hub through Azure Firewall Manager, it becomes a secured virtual hub. Azure Firewall in the secured virtual hub can then provide centralized security and traffic inspection for traffic moving through the Virtual WAN environment. The same firewall can also be configured for private and public networking traffic inspection by setting the private and public Routing Intent. Public IP Addresses with Azure Firewall While we use the azure vWAN secure Hub with Azure Firewall and public routing intent, it requires Public IP addresses for public connectivity. These Public IP addresses are important for both inbound and outbound traffic scenarios. For outbound traffic, Azure Firewall Public IP addresses can be used as source addresses when workloads communicate with destinations on the internet. Having known Public IP addresses can be important when external systems allow traffic based on specific source IP addresses. For inbound traffic, Azure Firewall can provide controlled access to internal workloads through features such as Destination Network Address Translation (DNAT). External traffic reaches a Public IP associated with the firewall and is translated and forwarded to the appropriate internal destination according to the configured firewall rules. The same IP then can also be configured with DNS to provide an FQDN based endpoint solution to the upstream applications. In many deployments, Public IP addresses can be managed as part of the Azure Firewall deployment. However, there are also scenarios where organizations want to create and manage their own Public IP resources and then associate those specific Public IP addresses with Azure Firewall. For example, an organization might need to: Maintain consistent Public IP addresses across the deployment. Control the creation and lifecycle of the Public IP resources separately from Azure Firewall. Use known Public IP addresses for outbound connectivity where external systems depend on source IP allowlists. Maintain specific Public IP addresses for inbound connectivity and DNAT scenarios. Meet existing networking, security, or compliance requirements that depend on known Public IP addresses. The deployment model therefore changes from simply defining how many Public IP addresses the firewall requires to defining which Public IP resources the firewall should use. Customer-Provided Public IP Addresses Azure Firewall in Virtual WAN secured hubs now supports the use of customer-provided public IP addresses. This capability enables organizations to bring their own public IP addresses when deploying Azure Firewall in a secured Virtual WAN hub, providing greater flexibility and control over network infrastructure. With this feature, instead of relying on Azure-managed public IP addresses, you can specify your own public IP addresses that are already allocated in your Azure subscription. This is particularly valuable for organizations that require consistent IP addresses for compliance, security policies, or integration with third-party systems. Inbound Traffic flow Internet > Azure firewall Public IP > DNAT Rule > Vwan secure Hub > Application Ingress Outbound Traffic flow Apps > Secured Virtual Hub > Azure Firewall → Customer-managed Public IP → Internet According to Microsoft documentation, customer-provided Public IP addresses must: Use the Standard SKU. Use Static allocation. Should be deployed in the same Azure region as the Virtual Hub. Not already be associated with another Azure resource. A secured virtual hub can also associate multiple customer-provided Public IP addresses with Azure Firewall. The configuration can be implemented directly through the Azure portal when deploying Azure Firewall in a secured Virtual WAN hub. During the firewall configuration, existing eligible Public IP resources can be selected as customer-provided Public IP addresses instead of relying on Azure-managed Public IPs. This allows the firewall to use specific Public IP resources while their lifecycle remains independently managed. Source: Customer provided public IP address support in secured hubs | Microsoft Learn The Infrastructure-as-Code Challenge Although customer-provided Public IP addresses can be configured for Azure Firewall in a secured Virtual WAN hub through the Azure platform, implementing the same configuration through Infrastructure as Code introduces an additional consideration. The Virtual WAN environment in this implementation is deployed using Terraform and Azure Verified Modules (AVM). AVM provides reusable Terraform modules for deploying Azure resources using standardized patterns and helps keep infrastructure deployments consistent and repeatable. For the secured Virtual Hub Azure Firewall configuration, the available implementation exposed a parameter such as vhub_public_ip_count. This parameter is suitable when the deployment only needs to define how many Public IP addresses should be associated with the firewall. For example, a value of 2 represents the requirement for two Public IP addresses to be provisioned as part of the firewall configuration. Customer-provided Public IP addresses work differently. In this scenario, the Public IP resources already exist or are created separately, so the deployment does not simply need to know the number of Public IP addresses. It needs to know which specific Public IP resources should be associated with Azure Firewall. This requires passing the Azure resource IDs of those Public IP addresses into the firewall configuration. Therefore, a count-based parameter such as vhub_public_ip_count alone cannot represent the complete customer-provided Public IP configuration. At the time of this implementation, the available AVM-based configuration provided the option to specify the Public IP count but did not expose an input through which specific customer-provided Public IP resource IDs could be passed to the secured hub firewall. This created a gap between the capability already supported by the Azure platform and the way that capability could be represented through the existing Terraform and AVM implementation. Remediation: Customer-Provided Public IP Support in AVM The Azure platform already supported customer-provided Public IP addresses for Azure Firewall in a secured Virtual WAN hub. However, the earlier AVM implementation primarily exposed vhub_public_ip_count, which allowed the deployment to specify the number of Public IP addresses required by the firewall but did not provide a direct way to pass specific customer-owned Public IP resource IDs. To address this gap, support for customer-provided Public IP addresses was introduced in the Azure Verified Pattern Module for Azure Landing Zone Connectivity with Virtual WAN through a GitHub contribution. The enhancement added support for an ip_configurations map under the firewall configuration of each Virtual Hub. Each entry can now specify a firewall IP configuration name together with the public_ip_address_id of an existing customer-managed Public IP resource. The change was reviewed through the module's GitHub contribution process and has now been merged into the AVM repository. As a result, the AVM Virtual WAN module can now support both deployment models: Azure-managed Public IPs The existing vhub_public_ip_count configuration can continue to be used when Azure should manage the Public IP addresses associated with the secured hub firewall. Customer-provided Public IPs The new firewall.ip_configurations configuration can be used when specific existing Public IP resources need to be associated with Azure Firewall Source: Support for customer provided IPs in secure hub firewall · Issue #30415 · hashicorp/terraform-provider-azurerm248Views1like0CommentsDesigning GitHub Actions Runners on Private AKS with a Secured Azure Virtual WAN Hub
Self-hosted GitHub Actions runners can execute workflows close to private deployment targets without making those targets publicly reachable. That network access also makes the runner environment part of the security boundary. A workflow can use the connectivity and credentials available to its runner, so private connectivity needs to be considered alongside outbound access, repository permissions, and workload isolation. A private Azure Kubernetes Service (AKS) cluster protects access to the Kubernetes API through private networking. It does not, by itself, restrict all traffic leaving the nodes or runner pods. In this single-region design, the AKS virtual network connects to a secured Azure Virtual WAN hub. Azure Firewall applies destination-based policies to Internet-bound connections, while authorized administrators reach the private API from a management host with the required network access. Actions Runner Controller (ARC) manages ephemeral runners as Kubernetes pods and adjusts runner capacity to the jobs assigned by GitHub Actions. A dedicated user node pool separates runner execution from the pool selected for the controller and listener. Runner-pod scaling and AKS node scaling remain different mechanisms, with separate capacity and operational considerations. The design brings together private API access, controlled GitHub egress, runner authentication, and firewall logging. Network-isolated AKS with a managed bootstrap cache and GitHub App authentication are selected options, not universal requirements for every private runner deployment. The sections below explain those choices and link their commands and configuration settings to official Microsoft and GitHub sources. Overall connectivity The four numbered paths show how the environment is managed, reaches GitHub, retrieves bootstrap artifacts, and records firewall activity: Administrators reach the management VM through Azure Bastion or approved private access, then manage AKS through its private Kubernetes API. The ARC controller, listener, and runner pods initiate outbound HTTPS connections to GitHub through the secured hub and Azure Firewall. No inbound GitHub job webhook is configured. AKS nodes retrieve bootstrap artifacts through the private ACR endpoint. This cache does not replace GitHub Container Registry access for runner images. Azure Firewall sends diagnostic logs to Log Analytics so operators can investigate allowed and denied connections. The private API and bootstrap-cache paths do not traverse the hub firewall. Management-tool Internet access and connections to deployment targets are not shown. Architecture scope and validation The architecture and configuration examples cover: Private Kubernetes API access from an authorized management host, without a public API endpoint Internet-bound spoke traffic routed through the secured hub and GitHub-specific firewall application rules ARC configuration and a manually triggered workflow targeting a dedicated runner node pool Firewall evidence for allowed GitHub connections and controlled denied connections Ephemeral runner lifecycle and its distinction from AKS node autoscaling DNS settings that help the architecture to keep all traffic private within azure The baseline uses GitHub.com, Azure public cloud, Linux nodes, organization-scoped runner registration, and shell-only workflow steps. It does not configure container builds, production deployment credentials, or hostile multi-tenant isolation. The command blocks explain configuration rather than direct deployment. A documented command or setting does not establish that the complete combination has been validated in a particular subscription, region, or security environment. Expected results below are validation criteria, not results from an executed deployment. The command blocks explain configuration rather than direct deployment. A documented command or setting does not establish that the complete combination has been validated in a particular subscription, region, or security environment. Expected results below are validation criteria, not results from an executed deployment. Prerequisites and Assumptions The configuration examples assume: An Azure subscription with the permissions required for the network, firewall, AKS cluster, managed identity, and scoped role assignments Sufficient regional VM quota and an approved budget for Azure Firewall, Virtual WAN, AKS nodes, the private bootstrap registry, monitoring, and management services A GitHub organization and private repository, with a plan that supports creating the additional restricted runner group used here, such as GitHub Team or GitHub Enterprise Permission to configure an approved ARC authentication method; the example chooses an organization-owned GitHub App An approved Linux management host with private access to the AKS spoke, Azure CLI 2.73.0 or later, Helm 3, a compatible kubectl, kubelogin, and Bash Outbound access from that management host to Azure sign-in and management services and GitHub's OCI chart distribution endpoints The host can be a VM in the spoke's management subnet, accessed through Azure Bastion or an existing approved private connection. A public SSH endpoint is not part of this design. A default, unconnected Cloud Shell session does not provide private cluster access. See private AKS connectivity guidance, Azure Bastion connectivity, and runner-group availability and access. Command blocks illustrate configuration from that Bash host. They are not intended for direct execution without environment-specific review. Private keys and tokens do not belong in repositories, terminal history, or published screenshots. [!WARNING] Setting runner capacity to zero does not stop firewall, hub, registry, monitoring, or system-node charges. These services have independent pricing and capacity requirements. Step 1: Network and AKS egress model Azure CNI Overlay separates node addressing from pod addressing. Nodes receive IP addresses from their VNet subnets, while pods use a separate virtual CIDR range. Each additional runner pod therefore does not consume another VNet subnet address. This conserves spoke address space as runner capacity grows. See Microsoft's Overlay subnet-sizing guidance. The address plan separates the hub, node pools, management access, pod network, and Kubernetes services: Secured virtual hub: 10.60.x.x/22, for Virtual WAN hub services and Azure Firewall AKS spoke VNet: 10.61.x.x/16, for nodes and private management System node subnet: 10.61.x.x/24, for AKS services and the selected ARC controller and listener placement Runner node subnet: 10.61.x.x/23, for the dedicated Linux user node pool Management subnet: 10.61.x.x/24, for the approved private administration host AzureBastionSubnet, if used: 10.61.x.x/26, separate from the management subnet Overlay pod address space: 10.62.x.x/16 Kubernetes service range: 10.63.x.x/24, with a DNS service IP represented as 10.63.x.x Size each node subnet for that pool's maximum node count, additional nodes used during surge upgrades, and any other resources consuming addresses from the subnet. Azure reserves five addresses in each subnet, leaving 251 usable addresses in a /24 before resources are allocated. Sizing only for the initial nodes can leave insufficient addresses for scaling or upgrades. See Overlay node-subnet planning and AKS upgrade and scaling considerations. Size the pod CIDR for nodes across both the system and runner pools, including temporary surge nodes. Overlay allocates a fixed /24 pod block to every node; lowering maxPods does not shrink that block. The networking model supports up to 250 pods per node, but that is not a recommendation to place 250 CI runners on one node. An ARC runner-pod limit does not replace node-level address planning. See Overlay pod allocation. Choose a supported RFC 1918 or RFC 6598 pod range that does not overlap node subnets or connected networks. An overlap with a destination network can make that destination unreachable from pods even when the firewall allows it. Keep the Kubernetes service CIDR separate from the pod, node, and connected-network ranges. The DNS service IP must be inside the service CIDR and must not use its first service address. See Overlay address-planning requirements and AKS reserved-range restrictions. Network-isolated AKS with outbound type none The example selects a private, network-isolated AKS cluster with an AKS-managed bootstrap artifact cache and outboundType: none. Network isolation is an additional choice beyond a private API endpoint, not a prerequisite imposed by ARC or Virtual WAN. Microsoft documents that "none" does not create an AKS egress path or require a default route during validation, and supports bring-your-own VNets and it is also a recommended approach when azure netwrorking is connected Vwan and using routing intent. Required egress is supplied explicitly through a firewall, proxy, gateway, or other network virtual appliance such as NGFW component. Here, that component is the secured Virtual WAN hub. The private cache supplies AKS bootstrap images; GitHub traffic still needs the firewall path described below. This is a different AKS outbound model from userDefinedRouting, not a claim that a vWAN-propagated default satisfies UDR validation. The userDefinedRouting model has its own node-subnet route-table requirements and is not an interchangeable option in the example. See AKS outbound types, network-isolated AKS, and the managed-cache creation guide. A conventional private AKS cluster can instead use another documented outbound model and permit its required AKS dependencies through the chosen egress controls. Changing to that model requires a different configuration and endpoint review; removing the cache flags from this example is not an equivalent substitution. Step 2: Secured hub and spoke connectivity The example separates networking into rg-arc-network and the cluster and identity into rg-arc-aks. The resources use the same selected region. The configuration consists of: A Standard Virtual WAN with a secured virtual hub and Azure Firewall Standard. Azure Firewall Manager exposes the secured-hub creation flow. The /22 address-space choice accommodates Microsoft's documented Azure Firewall scaling requirement in virtual hub address-space settings. VPN and ExpressRoute gateways are separate requirements when the management design uses them. An associated Firewall Policy with default-deny behavior, rather than an unrestricted outbound allow. A spoke named vnet-arc-spoke, with system subnet snet-aks-system, runner subnet snet-aks-runners, and management subnet snet-management. The AKS node subnets are not delegated to another service. A Virtual WAN > Virtual network connections connection between the hub and spoke. This is not VNet peering to a customer-managed hub VNet. Azure-provided DNS for the baseline, with the management host in the same VNet as the AKS nodes. Intra-cluster connectivity consistent with Azure CNI Overlay requirements. NSGs must account for required communication between the system and runner subnets. The official secured cloud network tutorial documents the portal creation flow. Resource names and some blade labels can vary as the portal evolves. Step 3: GitHub egress policy and logging The associated Firewall Policy > Rule collection groups contains an Application rule collection with action Allow, for example at priority 200. The rules use HTTPS:443 and target FQDNs. Rule sources are the system and runner subnet CIDRs, represented here as 10.61.x.x/24 and 10.61.x.x/23. The controller and listener need GitHub connectivity as well as the runner pods. With Azure CNI Overlay, traffic leaving the cluster is translated to node addresses, rather than using the overlay pod CIDR as the firewall source for these flows. The following destinations are a subset of GitHub's documented domains, grouped by function. Essential service traffic and the chart and image pulls used here need their corresponding rules. Action, artifact, package, and release functions need the relevant destinations when those functions are used; the table is not a claim that every job needs every row. Rule purpose GitHub-documented target FQDNs Actions service and API github.com, api.github.com, *.actions.githubusercontent.com Action downloads codeload.github.com Logs, artifacts, cache results-receiver.actions.githubusercontent.com, *.blob.core.windows.net Runner updates objects.githubusercontent.com, objects-origin.githubusercontent.com, github-releases.githubusercontent.com, github-registry-files.githubusercontent.com GitHub container assets ghcr.io, *.pkg.github.com, pkg-containers.githubusercontent.com Release downloads release-assets.githubusercontent.com Note: While using AKS cluster with outbound through a firewall, refer to Outbound Network and FQDN Rules for Azure Kubernetes Service (AKS) Clusters - Azure Kubernetes Service | Microsoft Learn this link to make sure additional AKS specific FQDNs are whitelisted with Firewall policy. GitHub lists the required domains by function in its accessible-domain reference. Its documentation notes that some firewalls require recursive rules for CNAME records, whose targets can change while the listed domains remain constant. Workflows may also require access to other network resources. Git LFS and Dependabot have additional domain entries in that reference and are outside this baseline. The public Blob wildcard is broad. It is a documented GitHub dependency, not an exfiltration-prevention guarantee. It also does not replace private-endpoint DNS or storage authorization. Management-host rules are separately scoped to approved Azure and GitHub tooling needs. Management-host sign-in is not a reason to broaden node permissions. Adding a private endpoint's public hostname to an Internet allow rule does not establish private endpoint reachability. For this network-isolated baseline, public AKS bootstrap exceptions from a conventional firewall tutorial are not automatically applicable. Additional services and add-ons have their own network-isolated feature dependencies and AKS outbound requirements. Rule evaluation and inspection depth Azure Firewall evaluates network rules before application rules. An Any destination / TCP 443 network allow can therefore bypass the intended application FQDN restriction. Inherited policies also affect evaluation. See rule processing. Standard performs SNI-based HTTPS destination filtering. It does not decrypt HTTPS payloads. Premium TLS inspection is a separate design, including certificate trust in nodes, controller, listener, runners, and tools that make inspected connections. See features by SKU. Diagnostic configuration Diagnostic settings belong to the Azure Firewall resource, not only the policy. The configuration includes: Application-rule and network-rule logs sent to an approved Log Analytics workspace Resource specific destination tables for the query example below DNS-proxy logs when DNS proxy is enabled Appropriate retention and access controls for network and workflow-related evidence Resource logs are not retained for query until a diagnostic destination is configured. See Azure Firewall monitoring. Step 4: Routing intent and the default path The routing configuration includes: Internet Traffic routing intent with the hub's Azure Firewall as next hop The applicable Internet security / default-route propagation setting enabled on the spoke connection Private Traffic left unconfigured in this baseline; supported inter-spoke or hybrid private inspection is a separate policy decision Gateway-route propagation enabled on any relevant spoke subnet route table Effective routes showing the spoke's Internet default toward the virtual hub and the hub's Internet policy selecting Azure Firewall The NIC next-hop display need not show the firewall's private IP directly. The spoke-to-hub and hub-to-firewall parts need to be considered together. An unexplained manual default route to the secured-hub firewall is not part of this example. See routing intent configuration and troubleshooting and NIC effective routes. The evidence described in Step 10 includes matching firewall records. A configured policy or a successful HTTPS request alone does not prove that the request traversed the firewall. Step 5: DNS management for private endpoints A private endpoint provides a private IP address, but clients still need DNS to return that address for the service hostname. Plan DNS before provisioning the cluster and deployment targets, then validate the records as their private endpoints are created. Successful Kubernetes API resolution does not establish that ACR, Storage, or another Azure service resolves privately. Private DNS zones and VNet links This design keeps Azure-provided DNS on the AKS spoke. Private DNS zones must contain the endpoint records and be linked to the client VNet. With both node pools and the management VM in the same spoke, they use the same linked zones. A Virtual WAN connection supplies routing, not a DNS-zone link. A client in another VNet needs its own zone-link or a correctly configured DNS-forwarding path. The relevant Azure public-cloud names are: Resource Hostnames used by clients Private DNS zone Private AKS API The cluster's reported privateFqdn AKS-managed privatelink.<region>.azmk8s.io or subzone Private ACR <registry>.azurecr.io and <registry>.<region>.data.azurecr.io privatelink.azurecr.io Private Blob Storage <account>.blob.core.windows.net privatelink.blob.core.windows.net Private Key Vault <vault>.vault.azure.net privatelink.vaultcore.azure.net Use the service's normal hostname in tools, image references, and connection settings. DNS follows the service's CNAME chain and returns the private endpoint address from the linked private zone. Do not replace application URLs with a private IP address or the privatelink hostname. Microsoft's private-endpoint DNS zone reference lists the correct zone and subresource for each service. For a customer-managed private endpoint: Create or reuse the appropriate Private DNS zone in the approved DNS resource group. Link it to the AKS spoke VNet with virtual-machine auto-registration disabled. This setting does not prevent private-endpoint records from being managed. Associate the endpoint with a private DNS zone group so Azure maintains its records when the endpoint changes. A zone group and a VNet link serve different purposes; both are needed in this configuration. Verify that every required service hostname resolves to the corresponding private endpoint IP, and that routing and security rules permit the required connection. See private-endpoint DNS integration and private DNS zone groups. ACR resolution for AKS image pulls For ACR, configure both the registry endpoint and its regional data endpoint. They can have different private IP addresses on the private endpoint's network interface. Resolving only the login hostname is insufficient for an image pull. If the registry has geo-replicas, include their data endpoints; include regional login endpoints too if that optional feature is enabled. The endpoint's DNS configuration shows the actual required names and addresses. The selected AKS-managed bootstrap cache is created and reconciled by AKS. Validate its DNS and connectivity rather than replacing its managed resources. A bring-your-own bootstrap ACR or a separate registry holding a custom runner image requires customer-managed private connectivity, DNS, and the appropriate image-pull permissions. Neither the API private zone nor the bootstrap cache automatically configures DNS for those other registries. These requirements follow ACR private endpoint configuration and the AKS-managed and BYO cache options. Step 6: Private AKS and the managed bootstrap cache The managed bootstrap cache is not mandatory for every private AKS cluster. It is the selected bootstrap option for the network-isolated Cache plus none model used here. Microsoft also documents a bring-your-own private ACR option. ARC itself requires a suitable Kubernetes cluster, not an AKS bootstrap cache. See Microsoft's network-isolated cluster options and GitHub's ARC prerequisites. An existing suitable cluster does not need to be recreated for ARC. The creation example below applies only when provisioning the selected cluster model; it is not a migration procedure for an existing cluster. The Bash examples adapt Microsoft's documented commands to the resource names and choices in this design. The resource groups, VNet, subnets, hub connection, and firewall configuration are assumed to exist. CIDRs and the DNS service IP remain placeholders. The combined sequence is not ready-to-run deployment instructions. The following block uses Azure sign-in, subscription selection, VNet lookup, and Microsoft's private-subnet configuration example. The variable names and grouping are adaptations. export SUBSCRIPTION_ID="<subscription-id>" export LOCATION="<azure-region>" export NETWORK_RG="rg-arc-network" export WORKLOAD_RG="rg-arc-aks" export VNET_NAME="vnet-arc-spoke" export AKS_NAME="aks-arc" export POD_CIDR="<pod-cidr>" export SERVICE_CIDR="<service-cidr>" export DNS_SERVICE_IP="<dns-service-ip>" az login az account set --subscription "$SUBSCRIPTION_ID" VNET_ID=$(az network vnet show \ --resource-group "$NETWORK_RG" --name "$VNET_NAME" \ --query id --output tsv) SYSTEM_SUBNET_ID="${VNET_ID}/subnets/snet-aks-system" RUNNER_SUBNET_ID="${VNET_ID}/subnets/snet-aks-runners" az network vnet subnet update \ --resource-group "$NETWORK_RG" --vnet-name "$VNET_NAME" \ --name snet-aks-system --default-outbound false az network vnet subnet update \ --resource-group "$NETWORK_RG" --vnet-name "$VNET_NAME" \ --name snet-aks-runners --default-outbound false The private-subnet setting removes reliance on implicit default outbound access. It does not block explicit firewall egress and is separate from making the AKS API private. This example sets it before creating nodes. For existing VMs, Microsoft documents that a stop and deallocation is required for subnet changes to take effect on their interfaces; this is not guidance to modify AKS-managed VM instances directly. See default outbound access guidance. Control-plane identity The user-assigned control-plane identity has Network Contributor on the example VNet. The VNet scope also supports the private DNS VNet-link operation; this is not a subscription-wide grant. Role-assignment and identity-use permissions are separate deployment prerequisites. The commands adapt user-assigned managed identity creation, AKS VNet permissions, role-assignment syntax, and regional Kubernetes version lookup. AKS_IDENTITY_ID=$(az identity create \ --resource-group "$WORKLOAD_RG" --name id-aks-arc \ --location "$LOCATION" \ --query id --output tsv) AKS_IDENTITY_PRINCIPAL_ID=$(az identity show \ --ids "$AKS_IDENTITY_ID" --query principalId --output tsv) az role assignment create \ --assignee-object-id "$AKS_IDENTITY_PRINCIPAL_ID" \ --assignee-principal-type ServicePrincipal \ --role "Network Contributor" --scope "$VNET_ID" az aks get-versions --location "$LOCATION" --output table export KUBERNETES_VERSION="<supported-regional-kubernetes-version>" Role assignments have propagation delays. The Kubernetes version also needs to be a currently supported regional release, not an obsolete release merely because it exceeds the network-isolated minimum. See AKS managed identities. Cluster configuration example Microsoft's AKS-managed ACR creation example explicitly includes --bootstrap-artifact-source Cache, --outbound-type none, and --enable-private-cluster. The longer command below combines that example with documented private DNS and public-FQDN options, Overlay options, and Microsoft Entra authorization. All remaining switches are described in the official az aks create reference. The selected node name, VM size, count, disk type, and maximum pods are example choices, not a Microsoft-prescribed ARC configuration. az aks create \ --resource-group "$WORKLOAD_RG" \ --name "$AKS_NAME" \ --location "$LOCATION" \ --kubernetes-version "$KUBERNETES_VERSION" \ --assign-identity "$AKS_IDENTITY_ID" \ --enable-private-cluster \ --disable-public-fqdn \ --private-dns-zone system \ --bootstrap-artifact-source Cache \ --outbound-type none \ --network-plugin azure \ --network-plugin-mode overlay \ --pod-cidr "$POD_CIDR" \ --service-cidr "$SERVICE_CIDR" \ --dns-service-ip "$DNS_SERVICE_IP" \ --vnet-subnet-id "$SYSTEM_SUBNET_ID" \ --vm-set-type VirtualMachineScaleSets \ --load-balancer-sku standard \ --nodepool-name systempool \ --node-count 2 \ --node-vm-size Standard_D4s_v5 \ --node-osdisk-type Managed \ --os-sku Ubuntu \ --max-pods 30 \ --node-os-upgrade-channel NodeImage \ --enable-aad \ --enable-azure-rbac \ --disable-local-accounts \ --generate-ssh-keys Omitting a bootstrap registry resource ID selects the documented AKS-managed cache path. AKS manages its bootstrap registry, cache rules, and private connectivity. The default cache supplies Microsoft bootstrap images; it does not automatically mirror the GHCR controller and runner images. Those pulls need the GitHub egress rules from Step 3. The two-node system pool is an illustrative minimum, not a production availability recommendation. Capacity needs to account for AKS services, the ARC controller, and the listener. Microsoft recommends three system nodes for production. See system-pool requirements, the network-isolated creation guide, and the CLI parameter reference. Installer access and private DNS The authorization and connectivity requirements are separate: Azure Kubernetes Service RBAC Cluster Admin, scoped to the cluster, is one broad built-in role that permits the approved installer to install ARC CRDs and cluster-scoped RBAC. It is not a requirement to give every operator permanent cluster-admin access. Cluster-user credential retrieval requires the corresponding management permission, such as Azure Kubernetes Service Cluster User Role when not already covered. Assignment propagation affects access availability. These installer permissions are not workflow permissions. The management host needs private API resolution and network reachability independently of its credentials. The credential and connection commands adapt private-cluster connectivity checks and kubelogin's Azure CLI authentication example. The DNS lookup uses the documented nslookup check. The expected state is private API resolution and nodes marked Ready. With Azure-provided DNS, AKS's default API private-zone link to the node VNet supplies API resolution. Registry resolution is a separate check: inspect the AKS-created bootstrap registry, its private endpoint, and the relevant private DNS records and VNet links. Both registry login and data-endpoint names must resolve to the intended private endpoints. Do not assume successful API resolution also verifies registry DNS. Private API or bootstrap-image failures are distinct from ARC installation failures. Relevant references are private-cluster DNS, network-isolated troubleshooting, and Microsoft Entra authorization for AKS. Step 7: Dedicated runner user pool The configuration separates runner execution from the pool selected for the controller and listener. The runner pool is a Linux User pool on its own subnet, with a taint and Cluster Autoscaler bounds. This pool separation is a design choice, not an ARC installation requirement. The command combines documented dedicated-subnet Overlay configuration, taints and tolerations, and node-pool parameters. The node count, VM size, taint value, and autoscaler bounds are illustrative. The Helm values in Step 8 combine a runner-pool selector with the matching toleration. A toleration alone permits placement; it does not require that placement. ARC scales runner pods. Cluster AutoScaler supplies node capacity for un-schedulable pods. Their limits are independent, and neither is a hard spending cap. See AKS Cluster Autoscaler and node-pool commands. Step 8: GitHub authentication and repository access A GitHub App is recommended, not mandatory, for repository- or organization-scoped ARC registration. GitHub also documents personal access token authentication, including classic and fine-grained tokens. Enterprise-level runner registration does not support GitHub App authentication; GitHub's ARC QuickStart specifies a personal access token (classic) for that scope. See ARC authentication methods and the ARC quick start. This example retains the recommended organization-owned GitHub App option. Its configuration includes: Organization permissions > Self-hosted runners: Read and write and Repository permissions > Metadata: Read-only. The documented repository Administration: Read and write permission applies to repository-scoped registration, not the organization-scoped configuration used here. An App installation in the organization, with its App ID, installation ID, and private key held securely outside the repository. A runner group named arc-private, restricted to the intended private repository. App installation scope is not a substitute for runner-group access control. GitHub credentials held in a Kubernetes Secret in the runner scale-set namespace. ARC scale-set job delivery uses outbound HTTPS long polling. A public inbound job webhook is not required by this mechanism; a separate integration can have different requirements. This flow is described in GitHub's ARC architecture. The Secret command adapts GitHub's documented file-based private-key example. The names and variable substitutions are the changes; the Secret keys follow the documented format. The example reads key contents from a file instead of putting the private key in a shell argument or Helm values. The file, Kubernetes Secret, Secret-reading permissions, and key rotation remain security responsibilities. See ARC authentication and runner-group access controls. If an approved personal access token is used instead, the Secret uses the documented github_token key and the permissions required for the chosen registration scope. That is an alternative authentication configuration, not an additional credential required alongside the GitHub App. This credential authenticates ARC to GitHub. It does not authorize an Azure deployment. Deployment jobs need a separate, least-privilege identity relationship, such as GitHub-to-Azure OIDC, rather than general access through the installer, cluster, or kubelet identity. Step 9: ARC controller and runner scale-set configuration The examples use released OCI charts rather than legacy Runner Deployment resources or experimental charts. Both ARC charts are pinned to release 0.15.1; version selection remains subject to review against the official release. Controller configuration These Helm values select the system pool and an explicit controller service-account name. They adapt fields from the release-specific controller chart values. The names, pool selector, and resource sizes are design-specific values, not the chart defaults or measured sizing recommendations. The values correspond to the controller configuration input referenced by --values in the example command. fullnameOverride: arc-controller serviceAccount: name: arc-controller nodeSelector: kubernetes.azure.com/agentpool: systempool resources: requests: cpu: 100m memory: 128Mi limits: memory: 256Mi The installation command adapts the official controller Helm installation, adding the documented version and values-file options. The wait and timeout settings are operational choices, not ARC requirements. export ARC_CHART_VERSION="0.15.1" helm install arc \ --namespace arc-systems \ --create-namespace \ --version "$ARC_CHART_VERSION" \ --values ./controller-values.yaml \ --wait --timeout 10m \ oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set-controller kubectl get deployments,pods --namespace arc-systems Step 10: Workflow targeting the private runner The workflow follows the official ARC quickstart's verification workflow, with a descriptive name, the example scale-set target, and an English output message. It uses workflow_dispatch and a runs-on value matching runnerScaleSetName. The empty permission set and five-minute job timeout are additional restrictions for this shell-only example, not ARC prerequisites. Manual dispatch requires the workflow to be available on the repository's default branch. See GitHub's manual workflow requirements. name: Private AKS runner verification on: workflow_dispatch: permissions: {} jobs: verify-runner: runs-on: arc-private-aks timeout-minutes: 5 steps: - run: echo "This job uses runner scale set runners." The expected lifecycle includes a queued job, an ephemeral runner pod placed on the runners pool, workflow output, and automatic removal of the runner after completion. A pool that has scaled to zero adds node-provisioning time before the runner can start. This workflow verifies job execution only. It intentionally uses no checkout action, cloud login, package feed, artifact upload, or deployment target, and does not actively probe a separate Internet destination. It does not establish complete build-pipeline readiness or prove the firewall route. Those dependencies require separate evidence. See using ARC in a workflow. Example : An ARC runner can publish files to an existing private Blob container named deployments. Configure these prerequisites once; the workflow only authenticates and uploads: Create an approved blob private endpoint in the AKS spoke. Associate it with privatelink.blob.core.windows.net through a DNS zone group and link that zone to the spoke, as described in Step 5. From a runner pod, <account>.blob.core.windows.net must resolve to the endpoint's private IP. Set the Storage account's Public network access to Disabled and disable anonymous Blob access. Creating a private endpoint does not disable public access automatically. See Storage private-endpoint setup. Permit TCP 443 to the endpoint through applicable NSGs and pod network policies. Keep Azure sign-in and management egress, including login.microsoftonline.com and management.azure.com, allowed through the firewall. The local Blob private-endpoint path does not traverse the hub firewall. Federate a dedicated user-assigned managed identity with the repository's protected storage-private GitHub environment. Match its exact OIDC subject and grant Storage Blob Data Contributor at the deployments container scope, not subscription scope. Follow GitHub OIDC setup and container-scoped permissions. Use a custom runner image containing Azure CLI, Bash, and nslookup; the minimal runner image is not an Azure tool bundle. If that image is in a private ACR, verify node-side DNS and image-pull permissions separately. In storage-private, configure environment secrets AZURE_CLIENT_ID, AZURE_TENANT_ID, and AZURE_SUBSCRIPTION_ID, plus the environment variable DEPLOY_STORAGE_ACCOUNT. No Azure client secret, storage key, or SAS token is needed. The compact workflow adapts Azure Login and the official batch-upload and Blob-list commands. Replace the sample file with your build output when adapting it. Pin approved action commits under your supply-chain policy. Documented limitations and design boundaries Area Limitation and consequence Official reference Network-isolated AKS Requires Kubernetes 1.30 or later and the documented CLI minimum. A currently supported regional release is still required. Creation prerequisites Outbound mode none is GA and does not configure or block egress. block is preview and restricted to managed-VNet scenarios. Outbound types Nodes and networking Network isolation does not support Windows pools or kubenet. The documented node-OS upgrade channels are NodeImage and None. Network-isolation limits Bootstrap registry The AKS cache does not make arbitrary application images or workflows offline-capable. BYO ACR adds Premium/private-DNS work. Network-isolated AKS Add-ons and explicit egress Optional features can require additional endpoints. Node public IPs can permit outbound traffic and are not enabled here. Feature limitations Virtual WAN default route The default route is not propagated between hubs. This baseline uses local inspected Internet breakout. Routing intent Routing-intent compatibility Custom hub route tables and specified static next-hop-VNet-connection routes have restrictions. Routing prerequisites Same-VNet traffic Routing intent does not automatically attract traffic between subnets of the same VNet. Private API access here stays local. Hub routing considerations Firewall inspection Standard HTTPS filtering uses SNI, not decrypted payloads or full URL paths. Premium inspection needs certificate trust. Firewall SKUs Network-rule FQDNs Require DNS proxy. Wildcard support is currently limited to the regions listed in the product documentation. This design uses application rules for GitHub HTTPS. FQDN filtering Secured-hub SNAT design NAT Gateway integration inside a secured virtual hub is unsupported. Conventional firewall-subnet NAT patterns do not apply. NAT Gateway integration GitHub authentication scope GitHub App authentication is not supported for enterprise-level runner registration. That scope needs a different setup. ARC authentication Container-based jobs This shell-only configuration does not support Docker-dependent jobs as configured. Documented DinD needs privileged mode. ARC container modes Workload isolation Ephemeral runners, namespaces, and node pools are not a sandbox for hostile code. GitHub secure use, AKS isolation Support and customization GitHub ARC support does not certify the underlying Azure network or every custom pod template, hook, or storage integration. ARC support boundaries232Views2likes1CommentExtending Azure VM Image Automation with an MCP Operations Layer
Introduction In Part 1, we built a repeatable Azure VM image pipeline with Packer, Azure DevOps and Azure Compute Gallery, then validated the published image before promotion. Read Part 1 This second part adds a focused MCP operations layer. The build logic remains in Azure DevOps; the server exposes controlled tools for build status, validation evidence and optional pipeline queueing. The essential implementation is included directly in this article so the reader can create the local project, run it and understand each moving part without a separate code download. Solution at a glance: MCP host → Image Pipeline MCP server → policy boundary → Azure DevOps REST APIs → build, validation and promotion evidence What this article demonstrates Read recent image-pipeline runs and correlated build metadata. Run the server, invoke each tool and interpret the result. Keep write actions disabled by default and require explicit confirmation. Use the same tools from Visual Studio Code Copilot Chat. Where MCP fits The MCP server is a thin operations interface in front of the delivery system from Part 1. It does not replace Packer, Azure Pipelines, Azure Compute Gallery or Azure DevOps approval controls. Figure 1. MCP operations layer for image-pipeline queries and guarded execution. Design principle: Expose domain outcomes such as “show missing validation evidence”, not a broad unrestricted HTTP proxy. Prerequisites Visual Studio Code with GitHub Copilot Chat. Python 3.10 or later. uv for Python environment and dependency management. Node.js with npx available for MCP Inspector. An Azure DevOps organisation, project and image pipeline based on Part 1. Read access to pipeline runs and artefacts; queue permission only for guarded-write testing. Build and configure the sample 1. Create the local sample project Create a folder named azure-image-pipeline-mcp and add the following files. The sample keeps the MCP layer in one Python file so the complete flow remains visible in the article. Project structure azure-image-pipeline-mcp/ ├── .env ├── .vscode/ │ └── mcp.json ├── pyproject.toml └── server.py pyproject.toml [project] name = "azure-image-pipeline-mcp" version = "0.1.0" requires-python = ">=3.10" dependencies = [ "mcp[cli]>=2.2,<3", "httpx>=0.27,<1" ] [project.scripts] azure-image-pipeline-mcp = "server:main" 2. Install dependencies Create the environment uv --version uv sync 3. Create .env macOS or Linux touch .env Windows PowerShell New-Item -ItemType File .env Create .env in the project root. It holds a credential, so never commit it; if you use Git, add .env to .gitignore. 4. Configure Azure DevOps Initial configuration AZDO_ORGANIZATION=https://dev.azure.com/your-organisation AZDO_PROJECT=your-project AZDO_PIPELINE_ID=42 AZDO_PAT=your-local-development-token MCP_ALLOW_QUEUE_RUN=false MCP_ALLOWED_PARAMETERS=runtimeVersion,imageFlavor,enableSecurityScan,location,imageVersion AZDO_ORGANIZATION is the organisation URL. AZDO_PROJECT contains the image pipeline. AZDO_PIPELINE_ID is the numeric ID shown in the pipeline URL. AZDO_PAT is for compact local development only; keep its scope minimal and never commit it. MCP_ALLOW_QUEUE_RUN=false keeps write behaviour blocked. MCP_ALLOWED_PARAMETERS defines the accepted pipeline template parameters. 5. Add the MCP server implementation The server exposes three read-only tools and one guarded write tool. Azure DevOps remains responsible for the actual image build, validation and promotion. server.py: configuration and Azure DevOps client import base64 import os from urllib.parse import quote import httpx from mcp.server import MCPServer mcp = MCPServer("Azure Image Pipeline MCP") ORG = os.environ["AZDO_ORGANIZATION"].rstrip("/") PROJECT = quote(os.environ["AZDO_PROJECT"], safe="") PIPELINE_ID = int(os.environ["AZDO_PIPELINE_ID"]) PAT = os.environ["AZDO_PAT"] ALLOW_QUEUE = os.getenv("MCP_ALLOW_QUEUE_RUN", "false").lower() == "true" ALLOWED = {x.strip() for x in os.getenv( "MCP_ALLOWED_PARAMETERS", "runtimeVersion,imageFlavor,enableSecurityScan,location,imageVersion" ).split(",") if x.strip()} BASE = f"{ORG}/{PROJECT}/_apis" async def azdo(method: str, path: str, **kwargs): token = base64.b64encode(f":{PAT}".encode()).decode() headers = {"Authorization": f"Basic {token}", "Content-Type": "application/json"} async with httpx.AsyncClient(headers=headers, timeout=30) as client: response = await client.request(method, f"{BASE}/{path}", **kwargs) response.raise_for_status() return response.json() server.py: read-only tools @mcp.tool() async def list_recent_image_runs(top: int = 10) -> dict: data = await azdo( "GET", f"pipelines/{PIPELINE_ID}/runs", params={"api-version": "7.1", "$top": min(max(top, 1), 50)} ) return {"pipelineId": PIPELINE_ID, "runs": data.get("value", [])} @mcp.tool() async def get_image_run_status(run_id: int) -> dict: run = await azdo( "GET", f"pipelines/{PIPELINE_ID}/runs/{run_id}", params={"api-version": "7.1"} ) build = await azdo( "GET", f"build/builds/{run_id}", params={"api-version": "7.1"} ) return {"run": run, "build": build} @mcp.tool() async def get_image_run_evidence(run_id: int) -> dict: data = await azdo( "GET", f"build/builds/{run_id}/artifacts", params={"api-version": "7.1"} ) artifacts = data.get("value", []) expected = {"build-summary", "image-validation", "security-scan", "promotion-record"} found = {item.get("name") for item in artifacts} return {"runId": run_id, "artifacts": artifacts, "missing": sorted(expected - found)} server.py: guarded queue tool and entry point @mcp.tool() async def queue_image_pipeline( confirmation: str, runtime_version: str, image_flavour: str, location: str, enable_security_scan: bool = True, branch: str = "refs/heads/main", ) -> dict: if not ALLOW_QUEUE: raise PermissionError("Queueing is disabled") if confirmation != "QUEUE_IMAGE_PIPELINE": raise PermissionError("Explicit confirmation is required") parameters = { "runtimeVersion": runtime_version, "imageFlavor": image_flavour, "location": location, "enableSecurityScan": enable_security_scan, } unknown = set(parameters) - ALLOWED if unknown: raise ValueError(f"Unsupported parameters: {sorted(unknown)}") body = { "resources": {"repositories": {"self": {"refName": branch}}}, "templateParameters": parameters, } run = await azdo( "POST", f"pipelines/{PIPELINE_ID}/runs", params={"api-version": "7.1"}, json=body ) return {"queued": True, "run": run, "parameters": parameters} def main(): mcp.run() if __name__ == "__main__": main() 6. Validate the server locally Static validation python -m compileall -q server.py uv run python -c "import server; print('MCP server imports successfully')" Run the commands above from the project root. Successful completion confirms that server.py compiles and imports with the installed dependencies. The Inspector checks in the next section validate tool discovery and invocation. Validation scope: These static checks confirm that server.py compiles and imports. A live integration check still requires a valid Azure DevOps organisation, project, pipeline ID and credential. 7. Run the MCP server and try the tools Use MCP Inspector for a direct first test of the Python server. Inspector connects to the local server, discovers its registered tools and lets you call each tool with sample inputs before using the tools through Copilot Chat. Start the server from the project root uv run mcp dev server.py The command prints a local Inspector URL. Open that URL, select Tools, and confirm these four tools are available: list_recent_image_runs get_image_run_status get_image_run_evidence queue_image_pipeline Sample 1: list recent runs Tool and input Tool: list_recent_image_runs Input: { "top": 10 } What it does: queries the configured Azure DevOps image pipeline and returns recent run IDs, names, states, results, dates and links. Sample 2: inspect one run Tool and input Tool: get_image_run_status Input: { "run_id": 1234 } Replace 1234 with a real run ID returned by the first tool. The response correlates the pipeline run with build number, result, branch and source commit. Sample 3: check release evidence Tool and input Tool: get_image_run_evidence Input: { "run_id": 1234 } The server lists published artefacts and reports expected evidence that is missing, such as image validation, security scan, promotion record or build summary. Sample 4: confirm the write guard Safe negative test Tool: queue_image_pipeline Input: { "confirmation": "QUEUE_IMAGE_PIPELINE", "runtime_version": "21", "image_flavour": "cis", "location": "uksouth" } With MCP_ALLOW_QUEUE_RUN=false, the request must be rejected with “Queueing is disabled”. This confirms the fail-closed default without starting a pipeline. Live queue test Only in an approved development or test project, set MCP_ALLOW_QUEUE_RUN=true, restart the server and repeat the call. The exact confirmation value and allow-listed parameters are still required. Azure DevOps approvals and permissions remain authoritative. After the four checks succeed, stop the Inspector process with Ctrl+C. Visual Studio Code starts the same server itself through .vscode/mcp.json for normal Copilot Chat use. Use the MCP server from Visual Studio Code Visual Studio Code recognises the server from .vscode/mcp.json. The Python source does not register itself. When the project root is the workspace, Visual Studio Code reads the configuration, starts the stdio command, loads .env and performs MCP tool discovery. Discovery and start sequence Open the project root in Visual Studio Code | v Visual Studio Code reads .vscode/mcp.json | v Visual Studio Code starts: uv run python server.py | v The process loads ${workspaceFolder}/.env | v The MCP handshake discovers the four tools | v Tools appear in Copilot Chat > Agent > Configure Tools Important: Run code . from the azure-image-pipeline-mcp project root. If the parent directory is opened instead, ${workspaceFolder} can point to the wrong location. Workspace-level .vscode/mcp.json { "servers": { "azure-image-pipeline": { "type": "stdio", "command": "uv", "args": ["run", "python", "server.py"], "cwd": "${workspaceFolder}", "envFile": "${workspaceFolder}/.env" } } } Start the server and use it in Copilot Chat Open .vscode/mcp.json and select the inline Start action for azure-image-pipeline. Review the command, approve the trusted local server and confirm its status is Running. Open Copilot Chat, select Agent, then Configure Tools, and enable the four azure-image-pipeline tools. Try these prompts: Show the latest ten image pipeline runs. Show the status, branch and source commit for run 1234. Which release evidence is missing from run 1234? Prepare a Java 21 CIS image build in UK South and show the parameters before requesting confirmation. Troubleshooting Symptom Check uv is not recognised Restart the terminal and verify PATH. Inspector does not start Confirm Node.js and npx are available. Missing settings Confirm .env is in the project root. Azure DevOps returns 401 or 403 Check credential expiry and permissions. Wrong pipeline data Recheck project and numeric pipeline ID. Visual Studio Code does not show the server Validate .vscode/mcp.json and reload Visual Studio Code. Queueing is disabled Keep the safe default unless an intentional test is approved. Unsupported parameters Use only reviewed entries in MCP_ALLOWED_PARAMETERS. Production considerations Prefer Microsoft Entra-backed authentication or the hosted Azure DevOps MCP server where supported. Use least privilege and separate read from queue permissions. Never return tokens, headers or unredacted logs. Keep Azure DevOps approvals and checks as the release authority. Add bounded outputs, timeouts, rate limits and safe correlation logging before remote hosting. Conclusion Part 1 established the deterministic image lifecycle. This second part adds a practical operations surface: Visual Studio Code starts the local MCP server from workspace configuration, discovers the curated tools and uses Azure DevOps as the source of build and release truth. References Part 1: Automating Azure VM Image Baking and Validation with Packer and Azure DevOps Azure DevOps MCP server MCP Python SDK Visual Studio Code MCP configuration reference308Views1like1CommentModernizing Terraform Pipelines on Azure: OIDC Federation for GitHub Actions and Azure DevOps
The secret nobody wants to rotate Most Terraform-on-Azure pipelines we see still authenticate the same way they did three years ago. A long-lived ARM_CLIENT_SECRET sitting in GitHub Actions or Azure DevOps, set once, copied around, and rotated only when something breaks. It's the most ignored credential in the cloud, and statistically the most likely one to leak. A developer screenshots a variable group. A pipeline log echoes a value. A fork inherits a secret. Or the secret simply expires on a Friday evening and takes production deployments with it. Workload Identity Federation (WIF) makes this whole class of problem go away. The pipeline mints a short-lived token at runtime, exchanges it for an Azure access token via Microsoft Entra, and never touches a secret. GitHub Actions has supported it since 2021. Azure DevOps service connections went GA with WIF in February 2024. The azurerm Terraform provider has supported it since v3.7. This post walks through the pattern end-to-end, for both GitHub Actions and Azure DevOps, the way I've rolled it out across multiple customer estates. How the exchange actually works Before any YAML, it helps to picture what's happening: The CI system (GitHub or ADO) signs a short-lived JWT describing exactly what's running- which repo, which branch, which environment, which service connection. The pipeline sends that JWT to Microsoft Entra ID. Entra checks it against a federated identity credential you've configured on a managed identity or app registration. The iss, sub, and aud claims must match case-sensitively. If it matches, Entra returns an Azure access token valid for the duration of the job. Terraform uses it. The job ends. The token expires. Nothing persists. The token is bound to a specific subject like repo:contoso/platform:environment:prod or sc://contoso/platform/azure-prod. It can't be reused from another repo, branch, or pipeline. Recommended Architecture A few choices that usually hold up in production: Decision Choice Identity type User-assigned managed identity (UAMI), not app registration Identity granularity One UAMI per environment (not per pipeline) Trust scope Pinned to the environment claim, not the branch RBAC scope Resource group, not subscription Remote state OIDC + use_azuread_auth = true, shared key access disabled Why UAMIs? They live in your subscription, don't need Application Administrator rights to manage, and follow the lifecycle of the resource group they belong to. Why one per environment? Pipeline-per-identity explodes into hundreds of identities. Environment-per-identity maps cleanly to deployment scopes. Part 1 - GitHub Actions Step 1: Create the identity and federate it Two commands per environment. That's it. az identity create -g rg-platform-identity -n id-tf-prod -l eastus az identity federated-credential create \ --name github-prod \ --identity-name id-tf-prod \ --resource-group rg-platform-identity \ --issuer https://token.actions.githubusercontent.com \ --subject repo:contoso/platform:environment:prod \ --audiences api://AzureADTokenExchange Repeat for nonprod. No secret is created anywhere. Step 2: Wire it up in GitHub In repo Settings → Environments, create nonprod and prod. On prod, add required reviewers and a branch rule restricting deployments to main. Then add three environment variables (not secrets - these aren't sensitive): AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_SUBSCRIPTION_ID. The workflow itself stays small: permissions: id-token: write contents: read jobs: apply: runs-on: ubuntu-latest environment: prod env: ARM_USE_OIDC: "true" ARM_CLIENT_ID: ${{ vars.AZURE_CLIENT_ID }} ARM_TENANT_ID: ${{ vars.AZURE_TENANT_ID }} ARM_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }} steps: - uses: actions/checkout@v4 - uses: hashicorp/setup-terraform@v3 - run: terraform init && terraform apply -auto-approve Three things make this secure: id-token: write is the only elevated permission, and it doesn't grant write access to anything in GitHub, it just lets the runner mint a JWT. The environment: line picks the right AZURE_CLIENT_ID and drives the sub claim. The federation refuses anything else. No azure/login step is needed for Terraform. The azurerm provider reads GitHub's OIDC environment variables automatically. Part 2 - Azure DevOps The model is identical. The mechanics are different. ADO offers two creation paths for a WIF service connection: automatic (it creates an app registration for you) and manual (you bring your own UAMI). For platform teams, manual + UAMI is almost always the better choice to ensure identity lives where governance lives. The flow is a small dance between the two portals: In Azure DevOps, create a new ARM service connection → choose Workload Identity Federation (manual) → fill in your UAMI's client ID, tenant ID, and subscription. Save as draft. ADO shows you an issuer URL and a subject identifier. In Azure, on the UAMI, add a federated credential using the values ADO showed you. The subject looks like sc://contoso/platform/azure-prod. Back in ADO, click Verify and save. In the pipeline, the service connection only "activates" if a task in the job loads it. The simplest way is the AzureCLI@2 task: - task: AzureCLI@2 inputs: azureSubscription: azure-prod # the WIF service connection scriptType: bash scriptLocation: inlineScript inlineScript: | terraform init && terraform apply -auto-approve env: ARM_USE_OIDC: "true" ARM_CLIENT_ID: $(AZURE_CLIENT_ID) ARM_TENANT_ID: $(AZURE_TENANT_ID) ARM_SUBSCRIPTION_ID: $(AZURE_SUBSCRIPTION_ID) ARM_ADO_PIPELINE_SERVICE_CONNECTION_ID: $(SERVICE_CONNECTION_ID) SYSTEM_ACCESSTOKEN: $(System.AccessToken) SYSTEM_OIDCREQUESTURI: $(System.OidcRequestUri) For teams converting dozens of legacy connections, the Azure DevOps team published a PowerShell helper that walks every ARM service connection in a project and converts them in place. There's a 7-day rollback window on each connection, which makes the migration genuinely low-risk. Don't forget the state file The Terraform state is your real blast radius. With OIDC, it's almost free to lock it down too. The same UAMI can read and write blob data without the storage account key: backend "azurerm" { resource_group_name = "rg-tfstate" storage_account_name = "sttfstateprodeastus" container_name = "platform-prod" key = "platform.tfstate" use_oidc = true use_azuread_auth = true } Grant the UAMI Storage Blob Data Contributor on the container (not the account), disable shared key access on the storage account, and you've removed the last secret in the pipeline. RBAC and break-glass Federation removes a credential, not a privilege. A few habits worth keeping: Scope role assignments to resource groups, not subscriptions. The whole point of federation is that scoping is now trivially easy. Use Role Based Access Control Administrator instead of User Access Administrator if your Terraform creates role assignments. It's a more recent, narrower role. Have a documented break-glass. If GitHub or ADO has a token-service incident, you still need a path to ship a hotfix. A single hardware-key-protected emergency app registration in a separate identity boundary works well, audited monthly. Monitor sign-ins. Every federated exchange shows up in Entra sign-in logs as a service principal sign-in. Pipe these to Sentinel and alert on anomalies like sign-ins outside expected hours, or from IPs outside GitHub's published ranges. The errors you will hit (and what they really mean) Symptom What it actually is AADSTS70021: No matching federated identity record found Case-sensitive mismatch in iss, sub, or aud. Almost always a trailing slash or a capitalised character AADSTS700016: Application not found in directory Wrong client ID or tenant. Not a federation problem 403 on a resource even though token exchange worked Federation is fine. Your RBAC isn't. Check the exact scope Unable to determine OIDC token (ADO) No task in the job loaded the service connection. Add an AzureCLI@2 step Works on main, fails on tags You pinned sub to a branch ref. Add a second federated credential for tags, or move to environment-based scoping Migrating without a maintenance window You almost never get to do this on a greenfield repo. The order that has worked for me on legacy estates: Create the new UAMI alongside the old service principal, with the same role assignments. Federate one canary pipeline. Verify it deploys equivalently. Cut over pipelines in waves, lowest-risk environment first. Once a full release cycle passes cleanly, disable the old SP's secret. Wait another cycle. Then delete the SP entirely. Add a CI gate that fails any new pipeline introducing ARM_CLIENT_SECRET. The old and new auth methods coexist on the same subscription throughout. There's no hard cutover and no maintenance window, just a steady drift toward zero secrets. Wrapping up If you do nothing else after reading this, do one thing: search your CI variable groups for ARM_CLIENT_SECRET. Every result is an outage or a breach waiting to happen. Federation is one of those rare changes that's both more secure and less work to operate. Once you've set it up, you stop thinking about credential rotation, secret expiry, and quarterly access reviews for service principals. The pipeline simply runs, and the audit trail is in Entra where it belongs. That's a good trade.2.3KViews17likes11CommentsMicrosoft Sovereignty 2026: From Data Residency to Digital Control
Over the past few years, data sovereignty has evolved from a compliance checkbox to a board-level priority. What began as a discussion around where data is stored has now expanded to who controls it, who operates it and under which jurisdiction it is governed. As we move into 2026, Microsoft Sovereignty is no longer just a roadmap, it is actively shaping how enterprises design cloud and AI architectures, especially across regulated industries. Why Sovereignty Matters More Than Ever Organizations today are navigating a complex landscape: Increasing regulatory mandates (GDPR, NIS2, DORA) Rising geopolitical concerns around cross-border data access Accelerated adoption of AI, copilots, and agentic systems But what’s changing in 2026 is the scale of AI adoption: 1.3B AI agents expected by 2028 82% of organizations plan to integrate AI agents within 1–3 years 90% of developers will use AI-assisted coding tools This fundamentally shifts the sovereignty discussion: It’s no longer about protecting data, it’s about governing AI-driven decisions and automation. Sovereignty in the Age of AI Agents A critical insight emerging from the field: Not all AI workloads can run in public cloud environments. Some AI scenarios require sovereignty by design, especially when: Data must remain within national jurisdiction Operational access must be restricted Systems must continue functioning during disconnection or crisis Examples include: Government AI copilots for citizen services Defense systems requiring air-gapped AI Financial services with strict regulatory oversight Healthcare workloads with sensitive patient data AI strategies must now survive regulation, disruption and disconnection not just scale. Microsoft Sovereignty: A Multi-Layered Approach Microsoft’s approach to sovereignty is not a single feature it’s a comprehensive framework spanning infrastructure, operations, security and AI. At its core, Microsoft Sovereign Cloud introduces three key deployment models: 1. Sovereign Public Cloud Regional data boundaries and in-country processing Built-in sovereign controls at hyperscale AI model choice with localized processing 2. Sovereign Private Cloud (AI-Driven Evolution) This is where sovereignty is evolving the fastest in 2026. Runs on Azure Local + Microsoft 365 Local + Foundry Local Enables continuous operations in hybrid or disconnected environments Supports AI workloads with local inferencing and GPU acceleration This is no longer traditional on-prem it is cloud-grade AI deployed locally. 3. National Partner Clouds Operated by local entities Meets country-specific certifications Bridges global cloud and national regulations Sovereign AI: From Data Control to Full Lifecycle Control The biggest shift in 2026: Sovereignty is no longer just about data it’s about the entire AI lifecycle. Sovereign AI ensures: Data stays local and under customer authority AI systems operate even without connectivity Customers control model selection (proprietary, OSS or custom) This introduces a new dimension: Model Sovereignty + Operational Sovereignty + Infrastructure Sovereignty The Rise of Foundry Local: AI From Cloud to Edge One of the most important innovations enabling this shift is Microsoft Foundry Local. Foundry Local extends AI capabilities across: Cloud Edge devices On-premises environments Fully disconnected deployments This allows organizations to: Run models locally using containers Use Arc-enabled Kubernetes for deployment Maintain consistent governance across environments AI Models Under Sovereign Control Microsoft enables multiple AI model strategies: Models-as-a-Platform (MaaP) → Customer-managed Models-as-a-Service (MaaS) → Microsoft-managed BYO Models → Full flexibility (Open-source or proprietary) This means enterprises can shift from: ❌ Vendor-dependent AI ✅ Sovereign, customer-controlled AI ecosystems Sovereign AI Deployment Patterns Two dominant patterns are emerging: 1. Hybrid Sovereign AI Develop in cloud Deploy to edge or sovereign environments Maintain flexibility 2. Fully Disconnected AI Air-gapped environments No dependency on cloud connectivity Full local processing and inference This is critical for defense, public sector and critical infrastructure. The Reality Check: What Enterprises Must Still Own While Microsoft provides the platform, sovereignty is not “set and forget.” Organizations must still: Design region-first and sovereignty-aware architectures Implement governance across hybrid and disconnected environments Manage model lifecycle and inferencing policies locally Ensure compliance with evolving regulatory frameworks Sovereignty is now an architecture decision not just a cloud feature. My Perspective (Field Insight) From working with regulated customers (BFSI, telecom, public sector), I see three clear patterns: 1. Sovereignty is now directly tied to AI adoption → Customers will not scale GenAI without sovereign guarantees 2. Hybrid + Sovereign AI is becoming the default architecture → Cloud-only strategies are no longer sufficient 3. Control of models and inferencing is the new trust boundary → Trust is shifting from infrastructure to AI execution layers Final Thoughts: Sovereignty as an AI Enabler The narrative around sovereignty is shifting: ❌ Earlier: “Sovereignty restricts innovation” ✅ Now: “Sovereignty enables trusted AI at scale” Microsoft’s Sovereign Cloud strategy reflects this evolution bringing together: Cloud-scale capabilities Local control and resilience AI lifecycle governance The opportunity ahead is clear: Design sovereign-by-default AI architectures that are secure, compliant and built for resilience whether connected, hybrid or fully disconnected.1.2KViews0likes0CommentsCHERIoT-Ibex: Closing the door on memory safety vulnerabilities with hardware-enforced protection
Memory safety vulnerabilities—largely arising from widely used programming languages such as C and C++—remain a leading cause of exploitable software defects across systems, from embedded devices to cloud-scale infrastructure. In simple terms, memory safety ensures that software accesses only the data it is intended to use; when this protection fails, attackers can exploit these defects to gain control of devices or disrupt critical services. Industry data shows that about 70 percent of the vulnerabilities Microsoft assigns as Common Vulnerabilities and Exposures (CVE) each year are memory safety issues, highlighting how frequently these software defects translate into real-world security risk (CISA – The Urgent Need for Memory Safety in Software Products). Hardware-enforced protections such as CHERIoT-Ibex can help eliminate these vulnerabilities at their source, reducing the likelihood that low-level software flaws can be exploited to compromise devices or disrupt workloads, supporting more trustworthy infrastructure by design. An open and certified foundation for memory-safe embedded systems CHERIoT-Ibex is the first open-source production-quality implementation of the CHERIoT instruction set architecture and among the first cores certified by the CHERI Alliance (CHERI Alliance – CHERIoT). CHERIoT is an extension of the CHERI (Capability Hardware Enhanced RISC Instructions) instruction set, with a focus on embedded and Internet of Things (IoT) applications. Ibex is an open‑source 32‑bit RISC‑V core developed by LowRISC. CHERIoT‑Ibex builds on Ibex by including CHERIoT capability extensions to provide hardware‑enforced memory safety and fine‑grained compartmentalization. It is the result of a close partnership between Microsoft Research and Azure Hardware Systems & Infrastructure, combining advanced research innovation with industry-leading silicon IP development expertise. In 2023, Microsoft open-sourced the CHERIoT Platform to bring hardware-enforced memory safety to embedded systems, including an instruction set architecture, toolchain, real-time operating system, and the RTL implementation of the CHERIoT-Ibex core. The CHERI Alliance certification recognizes its ability to provide spatial and temporal memory safety, fine-grained compartmentalization, and compatibility with the broader CHERI ecosystem. Critically, CHERIoT-Ibex achieves these security guarantees with power and area efficiency comparable to low-cost microcontrollers, demonstrating that security doesn’t have to come at a premium. Why memory safety remains a foundational security challenge Traditional embedded and microcontroller-class designs rely on software hardening and coarse-grained hardware protections that struggle to prevent attacks such as buffer overflows and use-after-free vulnerabilities, often adding complexity while still leaving gaps in protection. Consider a controller that runs privileged firmware responsible for device initialization, telemetry, and system health monitoring, while also hosting networking functionality exposed to external inputs. A memory-safe vulnerability in the networking stack could allow attackers to execute unauthorized code within the firmware environment, potentially affecting other critical services on the device. In tightly integrated systems, these failures can propagate beyond a single component, increasing overall risk. Constraining failures with hardware-enforced isolation CHERIoT-Ibex enables hardware-enforced isolation between these components, helping ensure that even if the networking stack is compromised, its ability to impact system initialization or telemetry functions remains constrained. By limiting the blast radius of software failures, CHERIoT-Ibex supports a system-level approach to security rather than relying on individual components to defend themselves in isolation. Advancing memory-safe infrastructure by design CHERIoT-Ibex’s certification by the CHERI Alliance marks an important milestone for open-source memory-safe solutions. It validates that strong security guarantees can coexist with efficiency and transparency, reflecting Microsoft’s broader silicon-to-systems strategy of embedding security into the foundational hardware infrastructure. Explore and engage with the open-source CHERIoT ecosystem by visiting the CHERIoT Platform and the CHERIoT-Ibex GitHub repository (microsoft/cheriot-ibex). The repositories enable developers and researchers to experiment with, contribute to, and build on memory-safe hardware and software foundations.717Views0likes0CommentsDeploying Azure Redis Enterprise with Geo-Replication Using Terraform
This post walks through a production‑proven pattern for running stateful services across Azure regions using Terraform. We’ll cover a primary–replica Redis architecture, regional isolation with Key Vault and networking, and a clean Terraform parameterization strategy that scales from development to production without duplication. Why Multi‑Region State Is Hard Running applications globally is easy when everything is stateless—if something fails, you redeploy. But stateful services tell a different story. Caches, message brokers, and data stores can’t be treated as disposable. They hold business‑critical data, and downtime or inconsistency quickly becomes customer‑visible. In real‑world systems, common requirements include: Low‑latency reads from multiple regions Automatic recovery when a region becomes unavailable Predictable data consistency Repeatable infrastructure from dev through production Manually configuring this per region doesn’t scale. Drift sets in. Failover is unclear. Backups get forgotten. That’s where Terraform + Azure Managed Redis geo‑replication shines. Github Link : https://github.com/vsakash5/Managed-redis.git High‑Level Architecture We use a primary–replica Redis Enterprise model: Primary Redis Single write endpoint Highly available inside its region Source of truth Replica Redis Read‑only Asynchronously synced from primary Can be promoted during disaster recovery Each region is fully isolated: Separate subnets Separate Key Vaults Private Endpoints only (no public exposure) This prevents shared failure domains and allows each region to operate independently if needed. The Terraform Design Principle Instead of maintaining separate Terraform stacks per region, the key idea is: One reusable module, one tfvars file per environment, multiple regions inside it. The module is written once. Regional differences are supplied via parameter suffixes like: _replica _secondary _tertiary This keeps logic centralized and environments consistent. Core Parameter Layers 1. Environment Identity (Shared) Terraform environment = "dev" # dev | staging | prod context_prefix = "app" Show more lines These values are reused everywhere—names, tags, and identifiers. 2. Primary Region Terraform location = "eastus2" resource_group_name = "rg-app-dev-primary" Show more lines 3. Replica Region Terraform location_replica = "uksouth" resource_group_name_replica = "rg-app-dev-replica" The symmetry is intentional. Terraform can now apply the same module twice without branching logic. Regional Isolation: Networking and Secrets Why isolation matters Geo‑replication copies data, not dependencies. If both Redis instances depend on: the same subnet the same Key Vault then a failure in one region can cascade into the other. Networking (One Subnet per Region) Benefits: Independent NSGs Independent routing Independent capacity planning Key Vault (One per Region) Why this matters: Redis credentials are not replicated Each region stores its own secrets A Key Vault outage doesn’t take both regions down Redis Configuration Primary Redis (Writes Enabled) The geo‑replication group name must match. That’s the logical binding Azure uses to link instances. Private Endpoint‑Only Access No Redis instance is exposed publicly. Each region uses: A private endpoint A workload subnet Internal DNS resolution This means: No public IPs No inbound attack surface Traffic stays on the Azure backbone Linking Primary and Replica Terraform explicitly defines the relationship: Terraform managed_redis_geo_replication_config = { primary_to_replica = { primary_redis_key = "primary" replica_keys = ["replica"] } } Terraform ensures: Primary is created first Replica is deployed second Geo‑replication is established last Environment Scaling: Dev → Staging → Prod The infrastructure pattern never changes. Only values do. Environment Group Name Dev dev-grp Staging stg-grp Prod prod-grp This is how you avoid “snowflake” environments. Disaster Recovery Strategy If the primary region fails: Applications fail over to the replica read endpoint Terraform configuration is updated to: Remove geo‑replication Promote replica config to primary Traffic is fully restored Once the original region recovers, roles can be re‑established cleanly. No click‑ops. No guesswork. Key Lessons Learned 1. Naming is Infrastructure Predictable names enable automation, discovery, and auditing. 2. Key Vault Isolation Beats Availability A shared Key Vault is a shared outage. 3. Parameterization Beats Copy‑Paste Fix once → benefit everywhere. 4. Geo‑Replication Is a Contract Matching replication group names is non‑negotiable. 5. The tfvars File Is the Source of Truth If it’s not in Terraform, it’s not real. Final Thoughts Running stateful services in multiple regions doesn’t require magic— it requires discipline: Isolate aggressively Parameterize consistently Automate everything Test failure often With this approach, adding a new region becomes configuration—not redesign. That’s how infrastructure scales.329Views1like0CommentsSecurity Copilot Agents in Defender XDR: where things actually stand
With RSAC 2026 behind us and the E5 inclusion now rolling out between April 20 and June 30, anyone planning SOC workflows or sitting on a capacity budget needs to get a clear picture of what is GA, what is preview, and what was just announced. The marketing pages tend to blur those lines. This is my sober look at the current state, with the operational details that matter for adoption decisions. What is actually shipping right now The Phishing Triage Agent is GA. It only handles user-reported phish through Defender for Office 365 P2, but for most SOCs that is a meaningful chunk of the L1 queue. Verdicts come with a natural-language rationale rather than just a label, which is the part that determines whether analysts will trust it. The agent learns from analyst confirmations and overrides, so the feedback loop matters more than the initial setup. There is a setup detail that is easy to miss: the agent will not classify alerts that have already been suppressed by alert tuning. The built-in rule "Auto-Resolve - Email reported by user as malware or phish" needs to be off, and any custom tuning rules that touch this alert type need review. If you skip this, the agent runs on an empty queue and you wonder why nothing is happening. The Threat Intelligence Briefing Agent is also GA. It produces tenant-tailored intel briefings on a regular cadence. Useful, but lower operational impact than the triage agents. Copilot Chat in Defender went GA with the April 2026 update. Conversational Q&A inside the portal, grounded in your incident and entity data. This is the lowest-risk way to get value out of Security Copilot and probably where most teams should start. Public preview, worth watching The Dynamic Threat Detection Agent is the most technically interesting one. It runs continuously in the Defender backend, correlates across Defender and Sentinel telemetry, generates its own hypotheses, and emits a dynamic alert when the evidence converges. Detection source on the alert is Security Copilot. Each alert includes the structured fields (severity, MITRE techniques, remediation) plus a narrative explaining the reasoning. For EU tenants the residency point is worth confirming with whoever owns data protection in your org: the service runs region-local, so customer data and required telemetry stay inside the designated geographic boundary. During public preview it is enabled by default for eligible customers and is free. At GA, currently targeted for late 2026, it transitions to the SCU consumption model and can be disabled. The Threat Hunting Agent is also in public preview. Natural language to KQL with guided hunting. Lower stakes, but useful for teams without deep KQL expertise on hand. Announced at RSAC, still preview Two agents got the headlines in March: The Security Alert Triage Agent extends the agentic triage approach beyond phishing into identity and cloud alerts. The longer-term direction is consolidating phishing, identity, and cloud triage under a single agent. Rollout is from April 2026, in preview. The Security Analyst Agent is the multi-step investigation agent. Deeper context across Defender and Sentinel, prioritised findings, transparent reasoning trace. Preview since March 26. Both look promising on paper, but Microsoft's history of preview features that take a long time to mature is well-documented. I would not plan production workflows around either of them yet. What you actually get with the E5 inclusion This is the licensing change most people are dealing with right now. Security Copilot has been part of the E5 product terms since January 1, 2026. Tenant rollout is phased between April 20 and June 30, 2026, with a 7-day notification before activation. The numbers: 400 SCUs per month for every 1,000 paid user licenses Capped at 10,000 SCUs per month, which you hit at around 25,000 seats Linear scaling below that, so a 3,000-seat tenant gets 1,200 SCUs per month No rollover, the pool resets monthly What is included: chat, promptbooks, agentic scenarios across Defender, Entra, Intune, Purview, and the standalone portal. Agent Builder and the Graph APIs are in. If you also run Sentinel, the included SCUs apply to Security Copilot scenarios there. What is not included: Sentinel data lake compute and storage. Those still run through Azure on the regular meters. Beyond the included pool you pay 6 USD per SCU pay-as-you-go, with 30 days notice before that mode kicks in. Practical things worth knowing before activation A few details that are easy to miss in the docs: Under System > Settings > Copilot in Defender > Preferences, switch from Auto-generate to Generate on demand. Auto-generate will burn SCUs on incidents nobody is going to look at. Generate on demand gives you direct control. In the Security Copilot portal workspace settings, check the data storage location and the data sharing toggle. Data sharing is on by default, which means Microsoft uses interaction data for product improvement. If your compliance position does not allow that, change it before agents start running. Changing it requires the Capacity Contributor role. Agent runs are not equivalent to the same number of analyst chat prompts. A triage agent processing fifty alerts in one run consumes meaningfully more SCUs than fifty manual prompts on the same data. If you have a high-volume phishing pipeline, model that out before you flip the switch broadly. The usage dashboard in the Security Copilot portal breaks down consumption by day, user, and scenario. Output quality depends on telemetry quality. Flaky connectors, gaps in log sources, or a high baseline of misconfigured alerts will produce verdicts that match. Connector health monitoring (the SentinelHealth table in Advanced Hunting is a sensible starting point) is a precondition. The agents only improve if analysts feed the override loop. If your team treats the verdicts as background noise rather than confirming or correcting them, the feedback signal is lost and calibration stays where it shipped. That is a process problem, not a product problem, but it determines whether any of this is worth the SCUs. A reasonable adoption order A rough sequence that minimises capacity surprises: Copilot Chat in Defender first. Lowest risk, immediate value through natural language Q&A in the investigation context. Phishing Triage Agent on a controlled subset, with a review cadence in place. Check the built-in tuning rules first. Watch the SCU dashboard for the first month before adding anything else. Let the Dynamic Threat Detection Agent run while it is in public preview, since it is default-on and free anyway. Compare its alerts against existing Sentinel detections. Security Alert Triage Agent for identity and cloud once the phishing baseline is stable. Establish a monthly review covering agent decisions, false-positive rate, SCU cost, and MTTD/MTTR trends. Technically, agentic triage is moving past phishing into identity and cloud, and the Dynamic Threat Detection Agent represents a genuine attempt at the false-negative problem rather than just another rule engine. Lizenziell, the E5 inclusion removes the biggest barrier to adoption that previously existed. The risk is enabling everything at once. Agents that nobody reviews are agents that consume capacity without delivering value, and the SCU dashboard is the only thing that will tell you that is happening. One agent, one use case, a 30-day baseline, then the next one. The order matters more than the speed.505Views0likes0CommentsDesigning Outbound Connectivity for "Private Subnets" in Azure
Why Private Subnets Change Everything Historically, Azure virtual machines relied on default outbound internet access, where the platform automatically assigned a dynamic SNAT IP from a shared pool. This was convenient but problematic: ❌ No deterministic outbound IP addresses ❌ No traffic inspection or filtering ❌ No FQDN or URL governance ❌ Difficult to audit for compliance ❌ Susceptible to noisy neighbor SNAT exhaustion With private subnets, outbound access is disabled by default. This shifts the responsibility to the architect — deliberately. The result is an environment where: ✅ Every outbound flow is intentional ✅ Every outbound IP is known and documented ✅ Every egress path can be governed and logged ✅ Compliance evidence is straightforward to produce The question is no longer "does my VM have internet access?" but rather "how exactly does my VM reach the internet, and is that path appropriate for this workload?" The Three Outbound Patterns at a Glance Option Primary Role Inspection Scale Cost Best For NAT Gateway Managed outbound SNAT ❌ None ⭐⭐⭐ High 💲 Low Simple, scalable egress Azure Firewall Secure governed egress ✅ Full L3–L7 ⭐⭐⭐ High 💲💲💲 Higher Security boundaries Load Balancer Legacy SNAT ❌ None ⭐⭐ Limited 💲 Low Legacy / transitional Scenario 1: NAT Gateway What is NAT Gateway? Azure NAT Gateway is a fully managed, zone‑resilient, outbound‑only SNAT service. It attaches at the subnet level and automatically handles all outbound flows from that subnet using one or more static public IP addresses or prefixes. It is purpose‑built for one thing: providing predictable, scalable outbound internet access — without routing complexity or inline devices. Key flow are depicted below: VM → NAT Gateway: Automatic SNAT (no UDR required) NAT Gateway → Internet: Static, deterministic public IP Inbound: NOT supported (outbound only) How it works (step by step) VM initiates an outbound connection (e.g., HTTPS to an API) NAT Gateway intercepts the flow at the subnet boundary Source IP is translated to the NAT Gateway's static public IP The packet is forwarded to the internet Return traffic is automatically tracked and delivered back to the VM No UDRs. No routing tables. No inline devices. It just works. Strengths Massive SNAT scale — no port exhaustion concerns at typical enterprise scale Deterministic outbound IPs — easy to allowlist with external services Zone resilient — survives availability zone failures Subnet scoped — applies to all VMs in the subnet automatically No routing configuration required Limitations ❌ No traffic inspection or filtering ❌ No FQDN or URL policy enforcement ❌ No threat intelligence integration ❌ Cannot restrict which internet destinations are allowed Best Fit Use Cases ✅ Application tiers calling external SaaS APIs ✅ VMs requiring OS updates and patch downloads ✅ CI/CD build agents and pipeline runners ✅ Spoke VNets in hub‑and‑spoke where east‑west goes through firewall, but simple internet egress is acceptable ✅ Dev/test environments Scenario 2: Azure Firewall What is Azure Firewall? Azure Firewall is a cloud‑native, stateful, L3–L7 network security service. When used for outbound egress, it transforms the egress path from a connectivity function into a security enforcement boundary. Unlike NAT Gateway, Azure Firewall inspects every packet, evaluates it against policy, and either allows or denies it based on network rules, application rules, and threat intelligence feeds. KEY Flow are depicted below: VM → UDR: Forces ALL outbound traffic to Firewall Firewall: Evaluates against policy before allowing Firewall → Internet: Only explicitly permitted flows pass All denied flows: Logged and alertable How it works (step by step) VM initiates an outbound connection UDR intercepts the flow and redirects to Azure Firewall's private IP Azure Firewall evaluates the traffic: Network rules (IP/port match) Application rules (FQDN/URL match) Threat intelligence (known malicious IPs/domains) If allowed: traffic is forwarded via Firewall's public IP If denied: traffic is dropped and logged All flows (allowed and denied) are logged to Log Analytics / Sentinel Strengths ✅ Full L3–L7 inspection ✅ FQDN and URL‑based filtering (application rules) ✅ Threat intelligence integration (Microsoft TI feed) ✅ TLS inspection (Premium SKU) ✅ Centralized governance across multiple VNets via Firewall Manager ✅ Rich logging — every allowed and denied flow is recorded ✅ IDPS (Intrusion Detection and Prevention) available in Premium Limitations ❌ Higher cost (hourly + data processing charges) ❌ Requires UDR configuration on each spoke subnet ❌ Adds latency (small but non‑zero) ❌ Requires careful SNAT configuration at scale Best Fit Use Cases ✅ Regulated industries (financial services, healthcare, government) ✅ Any workload where outbound internet is a security boundary ✅ Environments requiring egress allowlisting for compliance ✅ Hub‑and‑spoke architectures with centralized control plane ✅ SOC environments needing outbound flow telemetry Scenario 3: Load Balancer Outbound What is Load Balancer Outbound? Azure Load Balancer outbound rules were historically the primary mechanism for providing SNAT to VMs behind a Standard Load Balancer. While newer patterns (NAT Gateway, Azure Firewall) have largely replaced this approach for new designs, outbound rules remain valid in specific scenarios. Key flows are depicted below: VMs → Load Balancer: Backend pool members get SNAT LB Outbound Rules: Define port allocation per VM ⚠️ Port exhaustion risk at scale ⚠️ No inspection or policy enforcement How it works (step by step) VM in the backend pool initiates an outbound connection Load Balancer applies SNAT using the frontend public IP Ephemeral ports are allocated per VM from a fixed pool Return traffic is tracked and delivered back to the correct VM If port pool is exhausted: connections fail (SNAT exhaustion) Strengths Lower cost than NAT Gateway or Firewall Tightly integrated with existing load‑balanced workloads Familiar operational model for legacy teams Limitations ❌ SNAT port pool is fixed and must be manually managed ❌ Risk of SNAT exhaustion at scale ❌ No traffic inspection ❌ Less flexible than NAT Gateway ❌ Not recommended for new designs Best Fit Use Cases ✅ Existing architectures already built around Azure Load Balancer ✅ Low outbound connection volume workloads ✅ Transitional architectures during modernization to NAT Gateway Decision Framework: Choosing the Right Outbound Pattern Common Pitfalls to Avoid ⚠️ Pitfall 1: Forgetting SNAT scale limits Load Balancer outbound rules allocate a fixed number of ephemeral ports per VM. At scale this exhausts quickly. Use NAT Gateway instead. ⚠️ Pitfall 2: Over‑securing low‑risk workloads Not every workload needs Azure Firewall for outbound. Dev/test and patch traffic are better served by NAT Gateway — simpler, cheaper, faster. ⚠️ Pitfall 3: Mixing outbound models in the same subnet NAT Gateway and Load Balancer outbound rules cannot coexist on the same subnet. NAT Gateway always takes precedence. Plan your subnet boundaries carefully. ⚠️ Pitfall 4: Blocking Azure platform dependencies Many Azure services still use public endpoints (even when Private Link is available). Ensure your outbound policy allows required Azure service tags before enforcing egress controls. ⚠️ Pitfall 5: Relying on platform defaults Default outbound access is retired for new VNets. Do not assume VMs can reach the internet without explicit configuration. Summary and Key Takeaways Scenario Best Choice Why Simple internet egress at scale NAT Gateway Scalable, predictable, no complexity Security boundary for egress Azure Firewall Inspection, FQDN rules, threat intel Legacy load‑balanced workloads Load Balancer Outbound Transitional only Regulated / compliance environments Azure Firewall Audit logs, policy enforcement Dev / test / patch traffic NAT Gateway Low cost, low friction The core principle Private subnets make outbound access intentional. Choose the outbound pattern that matches the risk level of the workload — not the most complex option available. References https://learn.microsoft.com/azure/nat-gateway/nat-overview https://learn.microsoft.com/azure/firewall/overview https://learn.microsoft.com/azure/load-balancer/outbound-rules https://azure.microsoft.com/blog/default-outbound-access-for-vms-in-azure-will-be-retiredHow AI Agents Are Turning Threat Intelligence Into Validated Detections
The promise of AI-assisted cybersecurity has long been hampered by a fundamental measurement problem: how do organizations validate whether an AI agent can actually perform the complex, multi-step work that security analysts do every day? Traditional benchmarks test whether models can recall MITRE ATT&CK techniques or classify threat actor tactics, but they miss the harder question—can an agent translate raw threat intelligence into production-ready detection rules that find real attacks?microsoft Microsoft Research has addressed this gap with CTI-REALM (Cyber Threat Intelligence Real World Evaluation and LLM Benchmarking), an open-source benchmark that evaluates AI agents on end-to-end detection engineering workflows. Released in March 2026, CTI-REALM measures whether agents can read threat intelligence reports, explore telemetry schemas, iteratively refine KQL queries, and produce validated Sigma rules and KQL detection logic—exactly the workflow security analysts follow when building detections for platforms like Microsoft Sentinel.microsoft Why Traditional Benchmarks Fall Short Existing cybersecurity AI benchmarks primarily test parametric knowledge—can a model name the technique behind a log entry, or correctly label a tactic from a threat report? While useful, these assessments evaluate isolated skills rather than the operational capability security teams actually need: translating narrative threat intelligence into working detection logic that identifies attacks in production environments.microsoft CTI-REALM fills this gap by measuring three critical dimensions that earlier benchmarks overlook:microsoft Operationalization over recall: Agents must produce working Sigma rules and KQL queries validated against real attack telemetry, not just answer multiple-choice questions about threat actors. Complete workflow evaluation: The benchmark scores intermediate decision quality—CTI report selection, MITRE technique mapping, data source identification, and iterative query refinement—not just final output. Realistic tooling: Agents use the same tools security analysts rely on: CTI repositories, schema explorers, Kusto query engines, and MITRE ATT&CK databases. This granular, checkpoint-based scoring reveals precisely where AI agents struggle in the detection pipeline, helping security leaders understand whether performance gaps stem from comprehension failures, query construction issues, or detection specificity problems.microsoft The Benchmark: Real Threat Intelligence, Real Azure Environments Microsoft curated 37 CTI reports from public sources including Microsoft Security, Datadog Security Labs, Palo Alto Networks, and Splunk, selecting scenarios that could be faithfully simulated in sandboxed environments with telemetry suitable for detection development.microsoft The benchmark spans three Azure-relevant platforms: Linux endpoints: Traditional host-based detection scenarios Azure Kubernetes Service (AKS): Container and orchestration layer attacks Azure cloud infrastructure: Multi-source, APT-style attack chains requiring correlation across identity, resource, and network logs Ground-truth scoring validates detection rules at every workflow stage, from technique identification through final KQL query accuracy.microsoft Key Findings: What Works, What Doesn't Microsoft evaluated multiple frontier AI models on CTI-REALM-50, a subset spanning all three platforms. The results reveal both promise and clear limitations:microsoft Performance drops sharply across platform complexity: Linux endpoint detections scored 0.585, AKS scenarios dropped to 0.517, and Azure cloud infrastructure plummeted to 0.282. This reflects the reality that multi-source correlation across identity logs, Azure Activity, and resource-specific telemetry remains exceptionally difficult for AI agents—precisely the scenario SOC teams working in Microsoft Sentinel face when investigating sophisticated, multi-stage cloud attacks.microsoft More reasoning isn't always better: Within model families, medium reasoning configurations consistently outperformed high reasoning modes, suggesting that overthinking hurts performance in tool-rich, iterative agentic environments.microsoft Structured guidance closes performance gaps: Providing smaller models with human-authored workflow guidance improved threat technique identification and closed approximately one-third of the performance gap to much larger models.microsoft What This Means for Azure Security Operations For security architects and SOC teams working with Microsoft Sentinel, CTI-REALM's findings have immediate practical implications: Traditional Detection Engineering AI-Assisted Detection Engineering Analyst reads threat report manually AI agent parses CTI report and extracts techniques Analyst identifies relevant MITRE techniques Agent maps techniques to data sources automatically Analyst explores schema, writes KQL queries Agent iterates on KQL queries using schema tools Analyst validates detection against test data Agent generates Sigma rule + KQL validated against telemetry Process takes hours to days per report Process completes in minutes with human validation The benchmark demonstrates that AI agents can meaningfully accelerate detection development, particularly for Linux and AKS scenarios where success rates exceed 50%. However, the 28% success rate for Azure cloud infrastructure detections underscores a critical reality: human expertise remains essential for validating complex, multi-source detections before operational deployment.microsoft+1 Security teams should view AI agents as analyst augmentation tools rather than replacements. The checkpoint-based scoring in CTI-REALM helps organizations identify where human review is most critical—typically in cloud correlation logic, detection specificity tuning, and false positive reduction. Responsible Adoption: Human-in-the-Loop Remains Non-Negotiable Microsoft's research reinforces that AI-generated detection rules require validation before production use. Organizations adopting AI-assisted detection workflows should implement structured governance:microsoft Validate AI-generated KQL queries against test datasets before enabling in Sentinel analytics rules Require peer review for detections targeting cloud infrastructure, where AI performance is weakest Benchmark models using CTI-REALM before considering downstream operational use Maintain detection metadata tracking whether rules originated from AI or human analysts to support incident response context The benchmark's open-source availability on the Inspect AI repository enables security teams to test models against their own operational requirements before adoption.microsoft The Path Forward CTI-REALM represents a foundational shift in how the security industry evaluates AI capabilities—moving from knowledge recall to operational competence. For Azure practitioners, this matters because the benchmark's platforms (Linux, AKS, Azure cloud) and output formats (Sigma rules, KQL queries) directly mirror working with Microsoft Sentinel's analytics engine.microsoft As Microsoft continues integrating AI capabilities into Security Copilot and the broader unified SIEM+XDR vision, benchmarks like CTI-REALM provide the measurement framework security leaders need to adopt AI responsibly—understanding both capabilities and limitations before operationalizing agent-assisted workflows. The benchmark is freely available to model developers and security teams. Organizations interested in contributing, benchmarking, or exploring partnership opportunities can access the repository and contact Microsoft Research at msecaimrbenchmarking@microsoft.com.microsoft About the Research: CTI-REALM was developed by Microsoft Research and announced March 20, 2026. The full technical paper is available at CTI-REALM: A new benchmark for end-to-end detection rule generation with AI agents | Microsoft Security Blog1KViews0likes0Comments