Skip to content

Security

Microsoft's design area: Security.

What this area is

The platform controls that stay in place no matter what an application team deploys: identity hardening, network containment, encryption, and a security baseline that flags drift. In a landing zone this is mostly policy and platform services, not a product you install on a VM.

What an enterprise does

  • Defender for Cloud on, with the plans the risk actually justifies (servers, storage, containers, key vault). Secure Score is reviewed. Paid plans are a budget line, not a default checkbox.
  • Azure Policy initiatives for the regulatory baseline the company picked (MCSB, or a customer framework). Deny where a mistake is dangerous and common: public management ports, public blob access, public IPs in corp. DeployIfNotExists where the control is a missing setting, such as diagnostics or a private endpoint, and only after the cost of remediation is understood.
  • Corp isolated from inbound internet. Egress through the firewall, with threat intelligence.
  • Keys in Key Vault, CMK where the data classification requires it. Platform-managed keys are enough for a lot of services.
  • DDoS Network Protection on public endpoints that would hurt the business if they were flooded. That plan is thousands of USD a month. Many estates use the free infrastructure-level protection and put a WAF in front of the applications that need more.
  • Bastion or a privileged access workstation instead of public RDP and SSH.

What this lab implements

  • Deny public IP address resources on the corp resource group (custom policy alz-deny-public-ip).
  • Deny NICs that have a public IP on the same resource group, using built-in policy 83a86a26-fd1f-447c-b59d-e51f44264114. A public IP resource and a NIC attached to one are different objects. Both assignments are there so the gap is obvious.
  • The online resource group does not get those denies. That is the corp versus online split, at resource-group scope because there is only one subscription.
  • NSGs as in the network doc. Data subnet denies internet egress.
  • No public IP is created by the default deployment, so the deny policies have nothing to block until you try to create one in rg-corp-*.
  • Diagnostic settings are audited, not deployed by policy. See management.

What this lab simplifies

  • No Defender for Cloud paid plan and no Sentinel. The free foundational recommendations can still appear in the portal. Do not turn on a plan to "see what happens".
  • No DDoS plan, no firewall threat-intel filtering, no WAF, no Key Vault. A vault with no operations is cheap and was left out so the resource list stays the landing zone platform, not a sample application.
  • No DeployIfNotExists. Remediation tasks that create diagnostic settings or private endpoints are how a governance initiative quietly spends money.
  • No just-in-time VM access, because there are no VMs.
  • The landing-zone operator custom role cannot create the expensive network security appliances. That is a teaching stand-in for a real separation between platform and application teams. It is not a full Microsoft cloud security benchmark initiative.

Where the code is

  • infra/modules/policy/deny-public-ip.bicep
  • NSGs in infra/modules/network/hub.bicep and spoke.bicep
  • ADR 005