Short answer: Azure penetration testing is an authorized, manual attack on your own Azure subscriptions and Entra ID tenant that proves which identities, roles and resources an attacker could chain into real access. Microsoft needs no pre-approval, but every test must follow its rules of engagement. Our Azure tests typically take 8 to 15 tester-days and cost $5,000 to $12,000+ per agreed scope.
On Azure engagements, the headline is rarely a single misconfiguration but where it leads: a readable storage container that names your services, or a managed identity with Contributor on a whole subscription. So most tester-days go to identities and permissions, and the report shows each attack path step by step.
Do you need Microsoft’s permission to pentest Azure?
No. Microsoft Learn states that as of June 15, 2017, Microsoft no longer requires pre-approval to run a penetration test against Azure resources (Azure only, not its other cloud services). Notification is no longer required either. What you do need is compliance with the Microsoft Cloud Unified Penetration Testing Rules of Engagement, which Microsoft now publishes as the Microsoft Security Testing Rules of Engagement. Both names refer to the same rules.
The rules boil down to one principle: you test what you own, never Microsoft’s services or other tenants, and denial of service is banned outright. The prohibited list includes:
- Denial of service: denial of service testing of any kind is prohibited, including tests that determine, demonstrate or simulate it.
- Other tenants: accessing, scanning or testing Azure tenants, logs, data or storage accounts you don’t own or have explicit permission to test.
- Someone else’s credentials: using or retrieving credentials or secrets that aren’t your own.
- Excessive traffic: network-intensive fuzzing or automated testing that floods the platform.
- Going past proof of concept on Microsoft services: if a flaw sits in Microsoft’s own service, the tester stops, reports it to the Microsoft Security Response Center and does no lateral movement or pivoting.
The same rules encourage what a good Azure test should include: trial tenants for cross-tenant scenarios, testing your own monitoring and detection, evaluating Conditional Access, and attempts to break out of shared containers such as App Service or Azure Functions, stopping on success.
A third party can test only with explicit written authorization from the resource owner; Microsoft doesn’t grant it on your behalf. We put the signed authorization, the subscriptions and tenant in scope, the test’s source IP addresses and a reference to the rules into the rules of engagement document before day one. If Azure abuse detection flags the traffic, that document is what you send back.
What does the shared responsibility model mean for an Azure pentest?
It decides what is testable. Microsoft’s shared responsibility model says that for every deployment type you own your data and identities, along with configurations and access management, including RBAC, multifactor authentication and Conditional Access. Physical hosts, the physical network and the datacenter belong to Microsoft in IaaS, PaaS and SaaS alike. Applications and network controls are yours on IaaS and shared on PaaS.
So an Azure test attacks your side of that line: who can sign in, what each identity can do and what your resources expose, never the hypervisor. Our cloud penetration testing page covers the same split for AWS, Azure and Google Cloud; for the AWS side, see our guide to AWS penetration testing.
What does an Azure penetration test cover?
We scope an Azure test around nine areas. The right column shows a finding we commonly report in each one; your environment decides which of them carry the risk.
| Azure area | What we test | Typical finding |
|---|---|---|
| Entra ID users, groups and roles | Standing privileged roles, guest settings, app consent, MFA and Conditional Access gaps | Permanent Global Administrator or Application Administrator assignments held by too many accounts |
| Azure RBAC and privilege escalation | Role assignments at management group, subscription, resource group and resource scope, plus custom roles | An identity that can write role assignments and grant itself Owner |
| Managed identities | What a compromised VM, function or web app can do with its assigned identity | A managed identity with Contributor on the entire subscription |
| Service principals and app registrations | Secrets and certificates, API permissions, who can add credentials | An app registration with broad directory permissions that a regular user listed as its owner can take over |
| Storage accounts and SAS tokens | Anonymous access, account keys, scope and expiry of shared access signatures | Long-lived SAS tokens with write rights embedded in code, scripts or URLs |
| Key Vault | Who can read secrets, keys and certificates, and through which role or access policy | Read access to production secrets granted through an inherited role nobody reviewed |
| Network and NSGs | Open management ports, public endpoints, VNet peering and service firewalls | An NSG rule allowing RDP or SSH from any source address |
| App Service and Functions | Application settings, deployment credentials, authentication, and breakout attempts allowed by the rules | Connection strings and API keys stored in plain application settings |
| Logging and detection | Whether our actions appear in Azure Monitor, the activity log and Entra ID sign-in and audit logs | Diagnostic settings missing on Key Vault and storage accounts, so secret reads and data access left no trace |
Depth is set by the written scope (subscriptions, tenant, services) and the approach, usually grey box: testers start from realistic identities instead of guessing passwords against your sign-in page.
How does privilege escalation work in Azure?
Most escalation paths we prove follow three mechanisms, and none of them needs a software vulnerability.
- Inherited RBAC: a role assigned at a management group or subscription flows down to every resource group and resource below it. A Contributor assignment made “temporarily” at subscription level reaches every resource in that subscription: it can list storage account keys and, on Key Vaults that use access policies, grant itself access to secrets.
- Role assignment rights: Owner, User Access Administrator, Role Based Access Control Administrator and any custom role with permission to write role assignments can hand out new roles, including to the attacker’s own identity. We check every custom role for that one permission.
- Acting as a workload: Contributor on a virtual machine allows running commands on it. Code running there can request a token for the VM’s managed identity from the instance metadata endpoint, and the attacker now holds whatever that identity holds. The same logic applies to Functions and App Service with managed identities.

Entra ID adds a directory-level escalation layer. A role such as Application Administrator can add a secret to an existing service principal and sign in as that application, inheriting its API permissions. We map both layers together, because the path from a low-privilege user to subscription Owner often runs through the directory and back into Azure RBAC.
What most guides miss: the riskiest identity in an Azure tenant is rarely a person. It’s usually a pipeline or managed identity granted broad rights once and never reviewed, because nobody signs in with it.
How does a typical Azure penetration test run with us?
The phases are aligned with NIST SP 800-115:
- Scoping call: number of subscriptions and tenants, Azure services in use, the identity model and the level of access testers will get.
- Rules of engagement: written authorization, testing hours, source IP addresses and a contact for critical findings.
- Access setup: guest accounts and test identities checked before the first testing day.
- External reconnaissance: what your tenant, storage and applications reveal to someone with no account.
- Identity and permission mapping: Entra ID roles, RBAC, managed identities and service principals assembled into paths.
- Exploitation with minimal impact: each path is proven only as far as needed to show the impact, and critical findings are reported during the test.
- Report: an executive summary for management and a technical report with evidence and step-by-step remediation.
- Retest: a retest is available after fixes and replays each attack path, not just the single setting.
What access do testers need for an Azure pentest?
A grey-box Azure test needs guest accounts with Reader visibility plus identities that mirror real ones. Copy this list into your preparation ticket:
- Guest accounts in your tenant for each tester, invited through Entra ID B2B, so access stays under your control.
- Reader on every in-scope subscription, and Global Reader in Entra ID, so testers can see roles, apps and policies without changing anything.
- Test identities with the roles you want tested: for example, a developer account with Contributor on one resource group, or a service principal that mirrors your deployment pipeline.
- Read access to logs: Azure Monitor, the activity log and Entra ID sign-in and audit logs, to report what your team would have seen.
- An architecture overview that marks production, the systems that must not be disrupted and the allowed testing hours.
When the test ends, you disable the guest accounts and test identities. We delete access data after the test, and evidence and notes 90 days after the report or retest.
What do we find in Azure environments?
A misconfiguration is worth what it reveals, not just the fact that it’s public.
From our testing: a public Azure Storage container that mapped the system for us. During the external reconnaissance phase of an Azure test, we found a blob container whose access level allowed anyone to list and read its contents. It held no confidential documents, so at first glance it looked low severity. But its directory names, logs and configuration files revealed the system’s architecture and the names of internal services, which made the later reconnaissance much easier: we knew which applications existed and what to look for in the authenticated phase. An automated scan would mainly rate the fact of public access, not its value to an attacker. The fix was to restrict access to the storage account and change how build and deployment artifacts are published. On retest we confirmed that anonymous access was off for that container and checked the other containers and accounts in scope for the same artifacts.
Beyond that pattern, we commonly report standing privileged roles, subscription-wide managed identities, long-lived SAS tokens and secrets in application settings. Simple fixes often land during the test; permission changes take longer and are confirmed in the retest after fixes.
How long does an Azure pentest take and what does it cost?
An Azure test with us typically takes 8 to 15 tester-days and costs $5,000 to $12,000+ per agreed scope. Active testing runs 1 to 3 weeks; the report follows a few days later.
| Parameter | Typical Azure engagement |
|---|---|
| Scope | Agreed subscriptions, the Entra ID tenant and the services in use, in writing |
| Approach | Grey box, starting from guest accounts and test identities |
| Effort | 8 to 15 tester-days |
| Price | $5,000 to $12,000+ per agreed scope, fixed for the agreed scope and confirmed in writing before testing |
| Report | Executive summary and technical report with evidence and remediation |
| Retest | Available after fixes; whether it’s included depends on the engagement |
Subscriptions, identities and in-depth App Service testing move the estimate most. Work outside the agreed scope can cost more, and prices exclude VAT where applicable. For comparison, based on 13 published US price guides, checked November 14, 2026, US market rates for cloud tests run $10,000 to $50,000. Our penetration testing pricing page lists every test type.
Which Azure test fits your situation?
- Choose an Azure penetration test when workloads or customer data live in Azure and nobody has tried to chain your roles and resources into an attack path.
- Choose an Azure test plus a web application test when your product runs on App Service or Functions and carries business logic; the cloud test checks the platform, and web application penetration testing checks what users can do inside the app.
- Choose a SaaS-focused scope when you run a multi-tenant product on Azure and customers ask about tenant isolation; our guide to SaaS penetration testing covers that scope.
- Choose red teaming when you already test Azure regularly and want to know whether your team detects and responds to an objective-driven attack.
- We advise against a configuration review alone when the question is “can someone get to our data”: it lists settings, but it doesn’t prove which of them connect into a path.
- We advise against starting with a full red team in a tenant that has never had an Azure test: basic role and storage findings will eat the budget before detection is measured.
Our verdict: if Azure holds production data, run a grey-box Azure test yearly and after major identity or architecture changes, and judge offers by how they handle identities, not by how many settings they check. Our sample penetration test report shows how attack paths and evidence are written up.
Fixed-price quote
Planning an Azure penetration test?
Tell us how many subscriptions and which services are in scope, and we’ll send a fixed-price quote in tester-days. Cloud tests run $5,000 to $12,000+ per agreed scope.
Sources: Microsoft Learn, Penetration testing (pre-approval, permitted and prohibited testing); Microsoft Security Testing Rules of Engagement (prohibited and encouraged activities); Microsoft Learn, Shared responsibility in the cloud (responsibility matrix); NIST SP 800-115; checked November 2026.

The Pentestica penetration testing team: 25 certified senior pentesters (OSCP, OSCE, CISSP) with 10+ years of offensive security operations and 500+ penetration tests behind them. Our testing is aligned with OWASP, PTES and NIST SP 800-115.
