Microsoft Azure Services and Architecture Questions
Microsoft Azure's core service catalog and architectural patterns: Virtual Machines, managed Kubernetes (AKS), App Service and Azure Functions, Storage accounts and managed disks, Azure SQL and Cosmos DB, VNets with hybrid connectivity and global load balancing, Microsoft Entra ID and RBAC, and Key Vault secrets and encryption. Covers Azure service selection, infrastructure as code (ARM, Bicep, Terraform), observability with Azure Monitor and Kusto queries, cost governance and Azure Policy, the Azure Well-Architected design principles, and hybrid management via Azure Arc, common in enterprise Azure estates. For provider-agnostic trade-offs, see the cross-cloud entries.
Enumerate possible failure modes for Azure Availability Zones and Region-level outages. For each failure mode describe detection signals, immediate mitigation steps, recovery procedures, and how you would validate runbooks. Then outline a test plan to regularly rehearse DR playbooks (automated failovers, blue/green rehearsals) without impacting production.
Sample Answer
Direct answer
Treat availability zone (AZ) failures and region failures as two different classes of event with different response mechanics, not points on the same severity scale: a zone failure should be absorbed automatically by zone-redundant resources with no human action, while a region failure requires a deliberate, rehearsed failover decision because it usually involves some acceptable data loss. The DR rehearsal program has to actually exercise failing over, not just verify that a runbook document exists, because runbooks rot the moment nobody has run them since they were written.
Failure modes, by scope
| Failure mode | Detection signal | Immediate mitigation | Recovery procedure |
|---|---|---|---|
| Single AZ down | Zone-redundant resource's health probes show one zone's instances unhealthy; Azure Service Health posts a zone-level advisory | None needed if resources are zone-redundant (VMSS across zones, zone-redundant Azure SQL, zonal load balancer); traffic already avoids the bad zone | Azure restores the zone; zone-redundant resources rebalance automatically. Verify no capacity was silently lost (e.g., an autoscale rule that assumed 3 zones' worth of capacity is now running on 2) |
| Region-wide outage, primary | Azure Service Health region-level incident; synthetic monitoring from outside Azure shows the region unreachable; failover group replication lag spikes | Redirect users via Front Door/Traffic Manager health probe failing the primary origin; this can be automatic if configured, or a one-click manual trigger | Execute the documented failover runbook (fail the SQL failover group, confirm the secondary region's App Service is receiving traffic, validate a smoke-test transaction); declare the incident and start the clock on RTO/RPO tracking (RTO: Recovery Time Objective, how fast you must be back up; RPO: Recovery Point Objective, how much data loss is acceptable) |
| Partial region degradation (one service down, not the whole region) | Resource-specific health endpoint or Azure Monitor alert fires, but Service Health shows the region otherwise healthy | Depends on which service; often a targeted mitigation (e.g., fail just the database, leave compute in place) rather than a full regional failover | Same as above but scoped; this is the case runbooks most often get wrong because teams only rehearse "the whole region is down" |
| Runbook itself is wrong or stale | Only discovered by actually running it; this is why rehearsal matters | N/A, this is a process failure, not an infrastructure one | Fix the runbook, re-rehearse, and treat "the runbook was wrong" as an incident worth its own retro |
Rehearsal program: exercising DR without touching production
- Blue/green DR drills: stand up the "green" (secondary region) environment fully, run synthetic transactions against it in isolation (not yet receiving real user traffic), and validate it independently before ever touching the live failover switch. This catches configuration drift (a setting changed in the primary region months ago that was never replicated to the secondary's IaC) with zero production risk.
- Automated, scheduled failover drills: on a cadence (quarterly is a reasonable floor for most teams; more often for anything with a tight regulatory RTO), actually execute the failover runbook against a non-production environment that mirrors production topology, timed and logged. The goal is a real, current RTO/RPO measurement, not a guess based on how the architecture is supposed to behave.
- Chaos-style partial-failure injection: deliberately fail one dependency at a time (kill the primary database connection, block one AZ's outbound traffic with an NSG rule) in a lower environment to validate the specific failure modes in the table above, not just the "everything is down" scenario, since partial degradation is actually the more common real-world case.
- Game days with production read-only traffic: for teams mature enough, briefly redirect a small, monitored slice of real read traffic to the secondary region during a drill window, which is the only way to catch problems that only appear under real production load and data shapes, not synthetic data.
Worked example
A team schedules a quarterly failover drill: fail the SQL failover group to the secondary region, confirm Front Door routes traffic there, run a smoke-test checkout, then fail back. The first drill takes 40 minutes end to end and surfaces that the secondary region's App Service had a stale app setting (an API key that had been rotated in the primary region six months earlier but never updated in the secondary, because nobody's deployment pipeline touched the passive region). That's exactly the kind of defect a tabletop review of the architecture diagram would never catch, because the diagram is correct; only the live secondary environment was wrong. After fixing it and adding the secondary region's settings to the same deployment pipeline as the primary (so drift like this can't recur), the next quarter's drill completes in 11 minutes with no surprises, and that 11 minutes is now the team's real, evidence-based RTO instead of an estimate.
Trade-offs and pitfalls
The most common failure in DR programs isn't the architecture, it's that the rehearsal never actually happens because "we can't risk touching production," which guarantees the runbook is wrong by the time it's needed for real. The mitigation is exactly the blue/green pattern above: rehearse against an isolated or drilled-into-production-carefully environment, not never. The second pitfall is drilling only the full-region-down scenario because it's the most dramatic, while partial degradations (one dependent service failing, not the whole region) are statistically more common and often demand a different, more surgical response than "fail everything over." A team that has only ever rehearsed the dramatic, whole-region scenario tends to freeze or over-react the first time the real page is for something narrower, like one dependency degrading while the rest of the region is healthy, because the rehearsed muscle memory doesn't match the actual failure shape in front of them.
Explain Azure Storage account types and when to use each: General-purpose v2 (GPv2), Blob storage, File storage, Queue, Table, and premium Blob/File tiers. Cover performance tiers, access tiers (hot/cool/archive), durability/replication options (LRS/ZRS/GRS/GZRS), and practical examples such as logs, media assets, and long-term compliance archives.
Sample Answer
Direct answer
General-purpose v2 (GPv2) is the default account type and the one to reach for unless a specific requirement rules it out: one account serves Blob, File, Queue, and Table, supports both standard and premium performance, and lets Blob data move between hot, cool, and archive access tiers as its access pattern changes. Dedicated premium Blob (BlockBlobStorage) and premium File (FileStorage) accounts trade that tiering flexibility for consistently low, SSD-backed latency on a single service.
Account types and performance tiers
| Account type | Services | Performance tier | Best for |
|---|---|---|---|
| General-purpose v2 (GPv2) | Blob, File, Queue, Table | Standard (hard-disk-drive-class) or Premium | The default choice for mixed workloads; the only type with hot/cool/archive access tiers |
| Premium block blob (BlockBlobStorage) | Blob only | Premium (solid-state-drive-backed) only | High-transaction-rate, low-latency blob workloads (for example, large-scale data ingestion); no access tiers |
| Premium file shares (FileStorage) | Azure Files only | Premium (solid-state-drive-backed) only | Enterprise file shares needing consistent low latency over the Server Message Block (SMB) or Network File System (NFS) protocol |
| Legacy Blob storage / General-purpose v1 | Blob (v1: also others) | Standard or Premium | Mostly retired for new deployments in favor of GPv2 |
Access tiers (Blob data, standard performance, GPv2 or a dedicated Blob account)
- Hot: highest storage cost, lowest per-access cost. For data read or written frequently.
- Cool: lower storage cost, higher per-gigabyte access cost, and a minimum retention period (moving or deleting data early triggers an early-deletion charge). For infrequently accessed data expected to sit for at least 30 days.
- Archive: lowest storage cost by far, highest access cost, and objects must be rehydrated (which can take hours) before they can be read. For compliance or long-term retention data that's rarely, if ever, read.
Durability and replication (Locally Redundant Storage/LRS, Zone-Redundant Storage/ZRS, Geo-Redundant Storage/GRS, Geo-Zone-Redundant Storage/GZRS) are chosen independently of access tier: tier controls cost by access frequency, replication controls durability and disaster-recovery posture.
Worked example
An application produces three distinct data shapes. Rotating application logs are read heavily for about a week, then almost never: put them on GPv2 with a lifecycle-management policy that automatically moves blobs from Hot to Cool after 7 days and to Archive after 90 days. Media assets (images, video) served directly to users stay on GPv2 Hot (or a dedicated premium BlockBlobStorage account if request-rate latency becomes the bottleneck), since they're read continuously and tiering would only add cost via early-access charges. A 7-year compliance archive of signed contracts goes straight to Archive from day one, with an immutability (write once, read many) policy so it can't be altered, accepting hours-long rehydration in the rare event it's ever needed, because for a true compliance archive it almost never is.
The same estate also needs a Server Message Block (SMB) file share to lift-and-shift an on-premises file server. That requirement is Azure Files, not Blob storage: an application expecting a real file-system protocol can't be pointed at Blob's REST/HyperText Transfer Protocol (HTTP) interface. Use standard-tier Azure Files in a GPv2 account for a cost-sensitive share, or a dedicated premium FileStorage account if the share backs a line-of-business application that needs consistently low latency.
Trade-offs and pitfalls
- Moving a blob to Cool or Archive too early trips the early-deletion charge for that tier's minimum retention period; moving it too late wastes money on Hot-tier storage costs. Size the tier boundary from realistic access patterns, not aspirational ones.
- Archive-tier retrieval latency (hours to rehydrate) makes it unsuitable for anything with even a rare need for fast access.
- Premium Blob and premium File accounts don't support tiering at all; that's a deliberate trade of tiering flexibility for consistently low latency, not a strict upgrade over GPv2.
Design an enterprise governance model for 100 Azure subscriptions across multiple regions. Define the management group hierarchy, policies (Azure Policy) to restrict resource creation, use of Blueprints or Terraform modules for standardization, a tagging strategy, and how to migrate existing ungoverned subscriptions into this model with minimal disruption.
Sample Answer
Direct answer
Adopt an Azure landing-zone management-group hierarchy: Platform (Identity, Connectivity, and Management subscriptions run by the central platform team), Landing Zones (pre-configured, governed subscription environments where actual workloads run) split by workload type (Corp for internal-facing, Online for internet-facing), and Sandbox for anything not yet governed. Enforce standardization with versioned Terraform or Bicep modules and Azure Policy assignments at each management-group level rather than Azure Blueprints, which Microsoft has been retiring since mid-2026 in favor of Template Specs and Deployment Stacks. Enforce a mandatory tagging taxonomy through policy, and migrate ungoverned subscriptions by moving them into Sandbox first, where guardrails run in audit mode, and progressively tightening policy as each one is remediated, never by moving all 100 into strict enforcement at once.
Structured elaboration
Management group hierarchy.
flowchart TD
Root[Tenant root group] --> Platform[Platform management group]
Root --> LZ[Landing zones management group]
Root --> Sandbox[Sandbox management group]
Platform --> IdentitySub[Identity subscription]
Platform --> ConnSub[Connectivity subscription]
Platform --> MgmtSub[Management subscription]
LZ --> Corp[Corp landing zones]
LZ --> Online[Online landing zones]
Corp --> DevSub[Dev subscriptions]
Corp --> ProdSub[Prod subscriptions]
Sandbox --> UngovSub[Migrating ungoverned subscriptions]
At 100 subscriptions, this split is what keeps policy assignment tractable: a policy is assigned once per management group and applies to every current and future subscription placed under it, rather than to 100 subscriptions individually.
Azure Policy as the standardization mechanism. Assign policies at the tenant root for anything universal, such as denying resources outside approved regions or requiring diagnostic settings to the central workspace. Assign platform-specific rules at the Platform group, such as restricting VPN or ExpressRoute (a private, dedicated network circuit connecting on-premises to Azure) gateway creation to the Connectivity subscription. Assign workload-appropriate rules at each Landing Zone sub-group, such as requiring a web application firewall in front of any public endpoint in Online but not in Corp, which has no public endpoint. Use Policy initiatives, grouped sets of related policies such as the built-in Azure Security Benchmark initiative, rather than assigning dozens of individual policies separately, since that is what stays maintainable at 100-subscription scale.
Standardization via versioned modules, not Blueprints. Azure Blueprints is in Microsoft's own phased retirement: new blueprint definitions could not be created as of mid-2026 per Microsoft Learn's blueprint-retirement guidance, with full retirement scheduled for January 2027. A governance model designed now should not adopt it even though it is a named option in the question. The direct replacement Microsoft recommends is Template Specs, a versioned, role-based access control (RBAC)-controlled ARM or Bicep template published as its own Azure resource, together with Deployment Stacks, which additionally track and can clean up everything a deployment created as a unit, or an equivalent versioned Terraform module in a private registry if the estate already standardized on Terraform. Either way, the underlying idea Blueprints offered, a versioned, reusable definition of what a compliant landing-zone subscription looks like, is delivered through currently-supported tooling instead.
Tagging strategy. A small mandatory set enforced by an Azure Policy deny effect at subscription creation, for example cost-center, environment, owner, and data-classification, with everything else left team-optional. Keeping the mandatory set small is what makes teams actually comply with it rather than routing around an over-specified schema, and it is what makes cost allocation and access review possible across 100 subscriptions without chasing every team individually.
Migrating ungoverned subscriptions with minimal disruption. Move a subscription into Sandbox first, which changes only Policy and RBAC inheritance, not the resources inside it, so the move itself causes zero downtime. Run the relevant policies in audit mode initially to see what full enforcement would flag without actually breaking anything. Remediate flagged non-compliant resources, or grant a time-boxed, documented exemption for anything that genuinely cannot be fixed immediately, then flip those policies to deny or modify and move the subscription into its correct permanent Landing Zone group. Doing this one subscription, or a small batch, at a time on a published schedule, rather than moving all 100 at once, keeps any single migration's blast radius (how much would be affected if something goes wrong) small enough to roll back.
Worked example
A newly discovered ungoverned subscription running a customer-facing web app moves into Sandbox. The tenant-wide "require diagnostic settings" policy, running in audit mode there, flags that none of its 12 resources send logs anywhere; over two weeks the team adds diagnostic settings to all 12. The "require approved region" policy, also in audit mode, flags 1 resource in a non-standard region; since it is a legacy dependency that cannot move without a separate project, it gets a documented, time-boxed policy exemption with an expiry date and a named owner rather than blocking the whole migration. Once the other 11 resources are compliant and the 1 exception is documented, the subscription moves from Sandbox into the Online Landing Zone group, where the same policies now run in deny mode, and the team's ongoing work is governed the same way as every other subscription in that group, without the web app ever going offline.
Trade-offs and pitfalls
Recommending Azure Blueprints in a plan being designed now, without checking its current status, ships stale advice on the exact tool the question names, since it is already mid-retirement. Running every policy straight to deny mode on day one of a migration, instead of audit-first, turns a governance rollout into an unplanned outage the moment a policy catches something nobody knew was non-compliant. And an over-broad mandatory tagging schema, a dozen required tags instead of a handful, predictably gets satisfied with placeholder values that make the data worse than having no tags at all, since nobody can tell a real value from a placeholder without auditing each one by hand.
A sudden spike in 5xx errors correlates with an Azure scheduled platform maintenance window. Describe how you would confirm whether platform maintenance caused the issue, engage Microsoft support effectively, and design mitigations to reduce exposure in future maintenance events (e.g., using zones, maintenance control options, multi-region strategies).
Sample Answer
Direct answer
Do not accept the correlation at face value. Confirm causation first with Azure's own maintenance records (Service Health's planned-maintenance notifications, Resource Health's history for the specific resource, and, for infrastructure-as-a-service virtual machines, the Scheduled Events feed), because "correlates with a maintenance window" and "was caused by the maintenance window" are different claims, and only one of them is worth escalating to Microsoft support on. Once confirmed, engage support with the specific tracking ID and timestamps rather than a general ticket, and treat the incident as evidence that your own architecture, not Microsoft's schedule, is the thing you actually control going forward.
Structured elaboration
Confirming the cause
Azure Service Health, in the portal, has a "Planned maintenance" blade scoped to your subscription; it lists scheduled maintenance events with a tracking ID, the affected resource types, and a time window. Cross-reference your 5xx timestamps against this list first.
Resource Health for the specific affected resource (a virtual machine, an App Service, a database) keeps a history of availability state changes and categorizes each one, including a PlannedMaintenance reason code distinct from an unplanned interruption or a user-initiated change. This is the most direct evidence available, because it is scoped to the exact resource that produced the 5xx responses, not just "something happened in the region."
For infrastructure-as-a-service virtual machines, the Instance Metadata Service (IMDS, a service reachable only from inside the VM at a fixed address) exposes a Scheduled Events feed that records upcoming Freeze, Reboot, Redeploy, or Terminate events with an event ID and a time window, before they happen. If the application was not already polling this feed, you cannot get advance warning after the fact, but Resource Health's retrospective record still lets you confirm whether a Scheduled Event lines up with the 5xx window.
Check the Activity Log for the resource group as a secondary corroborating source, and resist the temptation to stop at "the timing lines up": a deployment, a dependent service's own incident, or a capacity issue elsewhere can produce a 5xx spike that happens to coincide with, but was not caused by, platform maintenance.
Engaging Microsoft support effectively
Open the support request directly from the Service Health "Planned maintenance" or "Health history" blade for the specific event, which pre-fills the tracking ID; a ticket that references a concrete tracking ID and exact timestamps gets routed and triaged faster than a ticket that says "we saw errors."
State the business impact in the ticket (error rate, duration, affected customers) and explicitly ask for a Post Incident Review, Microsoft's term for a written root-cause report, not just confirmation that maintenance occurred. Confirmation alone will not explain why your specific workload was impacted more than expected.
If response time matters, this is where your support plan tier matters: a plan with faster initial response times gets you an engineer sooner, which is worth knowing before the next incident, not during this one.
Reducing exposure to future maintenance events
Availability Zones (AZs): an AZ is a physically separate datacenter facility within a region with independent power and networking. Spreading a tier across three zones means a maintenance operation scoped to one zone, or to the underlying rack or cluster, does not take out the whole tier at once. This is the highest-leverage fix for the class of maintenance that affects a subset of the region's infrastructure.
Maintenance control options: be precise about scope here, because it is easy to overclaim. Azure's Maintenance Configurations feature lets you pick your own maintenance window, but its host scope, the one covering platform-level updates, only applies to isolated virtual machines, isolated scale sets, and dedicated hosts, a premium, single-tenant compute option. A regular multi-tenant VM size does not get to defer Microsoft's platform maintenance schedule. What a regular VM does get is the Scheduled Events feed described above, which gives a warning window, as little as a few seconds for a Freeze event, longer for others, to drain connections or checkpoint state before the maintenance action hits: a real mitigation even without control over the timing itself.
Multi-region strategies: an active-active or active-passive deployment behind Azure Front Door or Traffic Manager, with health probes tuned tighter than the defaults, routes traffic away from a region experiencing a maintenance-related blip. This only helps if the probe interval and unhealthy-threshold are tight enough to catch a short-duration event. Traffic Manager's own defaults, a 30-second probing interval with a tolerated-failures count of 3, mark an endpoint Degraded after roughly 90 to 120 seconds of continuous failure by Microsoft's own documented timeline, which is comfortably inside an 8-minute window, so the default probe cadence is not actually the risk here. The real risk with Traffic Manager specifically is DNS caching: once an endpoint is marked Degraded, clients and recursive resolvers that already cached the old DNS answer keep sending traffic to the unhealthy region until that cached answer's TTL expires, so a profile left at a long TTL can keep sending a meaningful share of traffic to the bad region for several minutes after Traffic Manager itself has already detected the problem. A probe interval loose enough to be the bottleneck on its own would need to be much slower than the default, for example around a 90-second interval with a five-consecutive-failure threshold, which pushes detection out into roughly the 6-to-8-minute range and does start to compete with an 8-minute window. Front Door, which fails over at its edge routing layer rather than through DNS TTL expiry, does not carry this specific caching risk.
Worked example
Say Resource Health confirms the outage window was 02:14 to 02:22 UTC (8 minutes) and, during that window, the error rate on the affected service was 40% instead of its normal baseline of under 1%. To size the business impact for the support ticket and for your own service level agreement (SLA, the contractual or internal target for acceptable downtime or error rate) tracking: 8 minutes out of a 30-day month (30 x 24 x 60 = 43,200 minutes) is 8 / 43,200 = 0.0185% of the month, which by itself sounds small. But at a 40% error rate on real user traffic during that window, if the service normally handles 500 requests/minute, that is roughly 500 x 8 x 0.40 = 1,600 failed requests concentrated in 8 minutes, which is the number worth putting in the support ticket and the postmortem, not the diluted monthly percentage. This is also the number that tells you whether adding Availability Zones is worth the added cost: if this pattern repeats monthly, 1,600 failed requests/month is a very different business case than a one-time event.
Trade-offs & pitfalls
Spreading a tier across Availability Zones adds cross-zone latency, typically low but non-zero, and cost, since redundant capacity now runs in zones you did not previously need for pure scale reasons. Justify it with the impact math above, not with "zones are best practice."
Isolated VMs and dedicated hosts, the only compute options that get real control over host-scope maintenance timing, carry a real price premium. Reach for them when the workload's sensitivity to any freeze or reboot genuinely justifies it (gaming, media streaming, financial transactions are the textbook cases), not as a default reaction to one incident.
A multi-region failover strategy only protects you if the health probe is tuned for the failure you actually saw; a default, loosely-tuned probe configuration gives the appearance of resilience without the substance.
The most common wrong turn here is treating "Microsoft caused it" as the end of the investigation. Even a confirmed platform-maintenance root cause is a finding about your architecture's exposure, not an excuse: the Post Incident Review will not change Microsoft's schedule quickly, but redundancy design is fully in your control today.
Design an Azure architecture for a healthcare customer subject to HIPAA that processes PHI. Cover encryption at rest/in-transit, Key Vault with HSM, identity enforcement (PIM, conditional access), network segmentation, logging and auditing retention, and Azure Policy/Azure Blueprints for continuous compliance. Identify residual risks and mitigations.
Sample Answer
Direct answer
HIPAA doesn't certify Azure services directly; it obligates the covered entity (or business associate) to implement specific administrative, physical, and technical safeguards, and Azure's role is to sign a Business Associate Agreement (BAA) and provide services capable of supporting those safeguards. The architecture has to satisfy the Security Rule's requirements end to end (encryption, access control, audit logging, retention) and be continuously enforced, not just correct on day one, which is why Azure Policy and Blueprints matter as much as the initial design.
Controls by requirement
- Encryption at rest: Azure Storage and Azure SQL both encrypt at rest by default (platform-managed keys), but for PHI (protected health information) specifically, use customer-managed keys (CMK) stored in Key Vault with HSM-backed keys (HSM: Hardware Security Module, a dedicated, tamper-resistant hardware device that generates and stores the key so it is never exposed as plain data in software memory) (Managed HSM or Premium-tier Key Vault), so the organization controls key lifecycle and can prove it independently of Microsoft. This matters for HIPAA's technical safeguard requirement to control access to ePHI, since key control is a genuine additional access boundary, not just a compliance checkbox.
- Encryption in transit: enforce TLS 1.2+ on every endpoint (Storage, SQL, App Service) and disable any legacy protocol versions at the resource level, not just at the application layer, so a misconfigured client can't silently negotiate a weaker protocol.
- Identity enforcement: PIM (Privileged Identity Management) for any standing access to systems touching PHI, so admin access is time-boxed and justified rather than persistent, and Conditional Access requiring MFA and a compliant device for any access to PHI-handling resources. Role assignments should follow least privilege at the resource level (a specific database, not the whole subscription).
- Network segmentation: PHI-handling resources live in their own subnet(s) with NSGs (Network Security Groups: rule sets, similar to a firewall, that allow or block network traffic in and out of a subnet or network interface) default-denying anything not explicitly required, PaaS services (Storage, SQL) reachable only via Private Endpoint, and no PHI-handling resource exposed with a public endpoint at all. A hub-spoke topology with Azure Firewall inspecting anything crossing the boundary gives one place to enforce and log this.
- Logging and audit retention: HIPAA's audit control requirement means every access to ePHI needs to be logged with enough detail to reconstruct who accessed what, when. Route diagnostic logs (Key Vault
AuditEvent, SQL Auditing, Storage access logs, Entra ID sign-in/audit logs, Entra ID being Microsoft's cloud identity service, the directory of an organization's users, groups, and their sign-ins) into a Log Analytics workspace with a retention period that meets the organization's actual policy (commonly 6 years for HIPAA-relevant records, which is a business/legal retention decision to confirm with compliance, not an engineering default to assume). Immutable/append-only storage for the audit trail itself (a separate, more locked-down storage account with a retention/legal-hold policy) protects against the audit log being tampered with by the same access it's supposed to catch. - Continuous compliance: Azure Policy definitions enforcing the above as code (deny creation of a storage account without CMK encryption in the PHI resource group, deny a public IP on anything tagged as PHI-handling, require diagnostic settings on every new resource in scope) so drift is caught and blocked at deployment time, not discovered in a quarterly audit. Azure Blueprints is in Microsoft's retirement window (phased retirement began July 31, 2026, full retirement January 31, 2027), so it is not the right choice for a new design today. Package this policy set plus the RBAC (role-based access control: granting permissions by assigning a role, such as Contributor or a custom role, to a user or identity at a specific scope, instead of handing out one-off individual permissions)/network baseline using Deployment Stacks (Microsoft's recommended replacement, which groups a set of resources for coordinated lifecycle management and can deny out-of-stack changes to protect against drift) plus Template Specs (versioned, shareable ARM/Bicep templates for the underlying resources), giving the same "repeatable, compliant-from-creation artifact" outcome Blueprints used to provide, without building on a service that is being phased out.
Worked example
A patient-portal application stores PHI in Azure SQL Database. The database has TDE (Transparent Data Encryption) using a customer-managed key from a Managed HSM, is reachable only via Private Endpoint from the app tier's subnet, and has SQL Auditing enabled, writing to a Log Analytics workspace with a 7-year retention policy set at the workspace level (chosen conservatively above the commonly-cited 6-year figure, per the organization's own legal guidance, which is the kind of number that has to come from compliance, not be assumed by engineering). An Azure Policy assignment at the PHI resource group's scope denies deployment of any SQL Database without Transparent Data Encryption enabled and without a diagnostic setting configured, so a developer cannot accidentally stand up a non-compliant database even if they skip the documented process. Access to the database's admin role requires PIM activation with a business justification and a 4-hour maximum window, and Conditional Access blocks any access attempt from a non-compliant device regardless of MFA status.
Residual risks and mitigations
- A compliant architecture does not guarantee compliant application code. SQL injection, over-broad application-level data access (the app's own service account can read more PHI than any single user session needs), or PHI logged into application logs by mistake are all real risks Azure Policy and network controls don't catch; application-level security review and data-loss-prevention scanning of logs are necessary complements.
- Key control is only as strong as who can manage the Key Vault/Managed HSM itself. If the same broadly-privileged admins who could access the data can also manage the encryption keys, CMK provides less real separation than it appears to; consider a separate, more restricted admin group for key management specifically.
- BAA scope gaps: confirm the BAA and the organization's own configuration actually cover every Azure service in the architecture that touches PHI, including ones added later (a new service added to the pipeline six months in that isn't covered by the existing compliance review is a common, quiet source of exposure).
- Backup and disaster recovery copies of PHI need the same encryption, access control, and audit requirements as the primary; a backup that's encrypted with a different key management story, or restorable by a broader set of admins than the primary, is a real and commonly-missed gap.
Trade-offs and pitfalls
The most consequential mistake is treating HIPAA compliance as a one-time architecture review rather than an enforced, continuously-checked policy set; an architecture that was compliant at launch drifts the first time someone adds a resource outside the documented pipeline, which is exactly what Azure Policy's deny-by-default assignments are for. The second is assuming "Azure has a BAA available" means every service is automatically in scope and covered; the BAA covers services the organization has actually configured and attested to using appropriately, and using an out-of-scope service for PHI without updating that assessment is a compliance gap regardless of the underlying technical security.
Unlock Full Question Bank
Get access to all Microsoft Azure Services and Architecture interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.