Before building anything real in my Azure tenant, I put guardrails on cost and on where things can run. A month later, after a round of monitoring work had piled up extra role assignments, I cut access back down: temporary roles removed, one subscription Owner, and an emergency account with no standing Azure access at all.

Why both halves matter

Cost guardrails catch the expensive mistakes: a VM size nobody meant to pick, a resource in a region nobody watches, a forgotten deployment. Access guardrails catch the dangerous ones. Owner is the role that can grant access to others, so every Owner can make anyone all-powerful in that subscription. Microsoft recommends a maximum of three subscription owners “to reduce the potential for breach by a compromised owner”, and says to remove unnecessary privileged role assignments [1].

Cost and location guardrails

These went in on day one:

Guardrail Setting
Admin account Separate from daily use, with MFA through an authenticator app
Budgets Alerts at $1, $5 and $25
Cost anomaly alert Emails me when spend jumps unexpectedly
Allowed locations policy One region plus global
Allowed virtual machine size SKUs policy Burstable B-series sizes only
Microsoft Defender for Cloud Free tier, for posture recommendations

Without Privileged Identity Management, which needs an Entra ID P2 license, the substitute is discipline: the admin account is only used for admin tasks.

Temporary roles should actually be temporary

Getting Windows logs into Sentinel took several elevated roles: Role Based Access Control Administrator to let a policy’s managed identity get its roles, Resource Policy Contributor to assign that policy at the Tenant Root Group, and Monitored Objects Contributor to create a tenant-level monitored object.

The Role Based Access Control Administrator assignment carried a condition limiting which roles it could hand out. That’s Microsoft’s recommended way to delegate role assignment: the delegate can only assign the roles and principals you allow [2]. Even constrained, it’s still a standing ability to grant access. Once the work was finished and the logs were confirmed flowing, I removed all three. The policy’s compliance view showed Compliant, so nothing needed them anymore.

One Owner, and an emergency account with no Azure roles

Three accounts were Owner on the subscription. I settled on this:

Account Before After Why
Admin account (Global Admin) Owner Owner The one identity for subscription changes
Security account Owner A role that can’t grant access Security work doesn’t need the power to hand out access
Emergency access account Owner, plus Security Admin at the Tenant Root Group Global Admin only, no Azure roles Can get back in through elevate access if needed

Microsoft’s guidance for emergency access accounts is cloud-only accounts holding Global Administrator, not assigned to an individual, used only when normal admin accounts can’t be [3]. Their Zero Trust guidance also says Global Administrators shouldn’t have standing access to Azure subscriptions [4]. A Global Administrator can always elevate to User Access Administrator at the root scope in an emergency [5], so a standing Owner assignment adds risk without adding recovery.

Azure Policy has a built-in check that a subscription should have more than one Owner, for redundancy [6]. In my setup, that redundancy is the emergency account’s ability to elevate, rather than a second standing Owner.

Order matters here: confirm the remaining Owner can still manage the subscription first, then remove the others. A subscription with no working Owner is a support ticket.

Removing a role you can’t see a delete button for

The Security Admin role on the emergency account had no Remove option in the subscription’s access control page. The assignment was inherited from the Tenant Root Group, so it could only be removed where it was assigned, and my subscription Owner had no rights at that scope. The fix:

  1. As a Global Administrator, turn on Microsoft Entra ID > Properties > Access management for Azure resources [5]. Sign out and back in so the new access is in the token.
  2. Go to Management groups > Tenant Root Group > Access control (IAM) > Role assignments and remove the assignment.
  3. Turn Access management for Azure resources back off right away.

Elevated access is for bootstrapping and recovery, not something to leave on. Leaving it on is a standing privilege at the highest scope in the tenant.

References

  1. Best practices for Azure RBAC
  2. Delegate Azure access management to others
  3. Manage emergency access accounts in Microsoft Entra ID
  4. Configure Microsoft Entra for Zero Trust: Protect engineering systems
  5. Elevate access to manage all Azure subscriptions and management groups
  6. Details of the PCI DSS 3.2.1 Regulatory Compliance built-in initiative

Comment section

Sorry babes, you have to sign into Github to comment. Feel free to let me know what's on your mind!