Azure penetration testing checklist

An Azure penetration test needs a written scope, permitted tests on your own endpoints, and configuration checks against the Microsoft cloud security benchmark. This page sets out what to cover, what is prohibited, and what you receive.

On this page

Azure penetration testing checklist for teams that need evidence before launch or audit

A framework, a customer security review, a product launch or an insurer may all require evidence that your Azure environment has been tested. The good news is that Microsoft has not required pre-approval for penetration tests against Azure resources since 15 June 2017, so most tests can start on your own schedule. The condition that matters is that the test must follow the Microsoft Cloud Unified Penetration Testing Rules of Engagement, and any third party such as a consulting firm or red team needs explicit written authorization from the resource owner documented in the service agreement before testing begins. Microsoft does not grant that authorization on your behalf, so the authorization letter is the first document your auditor or customer will ask to see.

The risks a test should address are the ones most likely to create real exposure in Azure: internet-facing endpoints that were never inventoried, identity and privilege gaps such as over-broad role assignments, container isolation weaknesses in shared hosting such as App Service or Azure Functions, and misconfigured network, storage or logging settings. Microsoft's rules encourage testing of Conditional Access and Intune MAM policies and attempts to break out of shared containers, stopping immediately on success, so those areas belong on the checklist alongside web and API testing. Ask the provider to map each finding to a benchmark domain in the Microsoft cloud security benchmark v2 overview, which is in preview and supersedes v1, so the report reads as a control review rather than a list of observations.

The report must be usable by someone who was not in the room. Before signing the statement of work, confirm the deliverables: the scope by subscription and resource, the tests performed and those excluded, the authorization reference, evidence for each finding, and a retest approach for closed items. Also agree how Azure's automated abuse detection will be handled. Microsoft says testers who receive an abuse notification for compliant activity should reply with the customer authorization and a description of the in-scope activity, so name a contact on your side who can confirm authorization quickly during the test window.

What can be in scope for an Azure penetration test

An Azure test is only as good as its boundaries. Scope is defined by which subscriptions, resource groups and endpoints the client owns, what Microsoft's rules of engagement allow against them, and which third-party or Microsoft-operated components sit outside the test. The cards below cover the assets that usually belong in scope and the decisions that must be written down before testing starts.

Web apps and APIs on App Service and Functions

Applications hosted on Azure App Service and Azure Functions are usually the largest share of an Azure test. Microsoft lists OWASP Top 10 testing, DAST of web applications and APIs, and fuzzing as permitted on your own endpoints, so these workloads can be tested for injection, broken authorization and server-side request forgery. Confirm which hostnames, slots and function triggers belong to the client, and whether any API calls a third-party service that must stay out of scope. Test the owned endpoints, not the platform underneath them.

Microsoft pen testing guidance

Virtual networks and exposed endpoints

Scope the public IP addresses, load balancers, application gateways and virtual network paths that the client controls. The goal is to confirm what is reachable from the internet and what a compromised workload could reach internally. Port scanning of your own endpoints is permitted under Microsoft's rules, but denial of service is prohibited under all circumstances, so load and stress testing must be excluded or handled outside the test. Ask for an up-to-date inventory of public addresses, since shadow endpoints are a common finding.

Storage accounts the client owns

Storage accounts, containers and file shares are in scope only when the client owns the storage account and its tenant. Review whether blobs, tables or queues allow anonymous access, whether network rules restrict access to approved networks, and whether shared access signatures are long-lived or over-broad. Microsoft prohibits testing storage accounts or tenants the tester does not own, so any storage account used by a partner, supplier or shared data platform needs that party's written consent or must be removed from scope.

Conditional Access and Intune MAM policies

Microsoft's rules of engagement encourage testing of Conditional Access and Intune Mobile Application Management policies. Scope the specific policies, named users or test accounts, and device conditions that will be exercised, and confirm which tenant holds them. Testers should not use credentials that are not their own, including leaked ones, so the client must provision dedicated test identities with documented roles. Agree in advance how policy bypass attempts will be recorded and reported.

Shared container boundaries

Microsoft encourages attempts to break out of shared containers such as App Service and Azure Functions, with an explicit rule to stop immediately on success. Scope this as a boundary check: whether one tenant's workload can reach another's process, file system or host, and whether the platform's isolation holds for the client's configuration. Record the escape attempt, stop, and report it rather than exploiting further. Coordinate with Microsoft for any suspected platform flaw, since vulnerabilities in Microsoft services must be reported to MSRC.

Microsoft rules of engagement

Who signs the rules of engagement

Microsoft does not grant authorization on the customer's behalf. When a consulting firm or red team tests Azure resources, the resource owner must give explicit written authorization, documented in the service agreement before testing begins. Name the signatory, list the subscriptions and resource groups covered, and state the test window and any excluded third-party SaaS or Microsoft-operated services. Confirm that the document is signed by someone with authority over every in-scope subscription, since a single missing owner can invalidate the test for that resource.

How an Azure penetration test runs, phase by phase

The sequence turns a written authorization and a defined scope into tested findings, a retest path and evidence the client can hand to its auditor or customer. Each phase closes with a document or check that the next phase depends on.

  1. Confirm written authorization and ownership

    Before any testing, the client confirms which subscriptions, resource groups, endpoints and tenants are theirs to test. Microsoft says third parties such as consulting firms may test Azure resources only with explicit written authorization from the resource owner, documented in the service agreement before testing starts. Microsoft does not grant that authorization on the client's behalf, so DeployOpen asks the client to name the owning subscriptions and to confirm that the agreement covers the engagement. The step closes with a signed authorization letter listing in-scope resources and the named contacts for each subscription.

  2. Agree the scope and rules of engagement

    DeployOpen and the client write the scope against Microsoft Cloud Unified Penetration Testing Rules of Engagement. The scope lists the services, applications and APIs, the test types and any tests that need special handling, such as network-intensive fuzzing or post-exploitation activity, which Microsoft's rules restrict. Exclusions are written down, including denial of service, testing tenants or storage accounts the client does not own, and any use of credentials that are not the client's own. The step closes with a signed scope document that the test team, the client and the escalation contacts all hold.

  3. Map the attack surface and configuration baseline

    The team inventories in-scope Azure resources and public entry points, then records the current configuration against the CIS Microsoft Azure Foundations Benchmark and the Microsoft cloud security benchmark v2 domains, including Network Security, Identity Management, Privileged Access, Data Protection and Logging and Threat Detection. This configuration review is read-only and uses the client's approved access level. The output is a baseline map of exposed endpoints and configuration gaps, which guides where active testing focuses. Confirm the access level and the review tools in the scope document before this phase begins.

  4. Test web applications and APIs against OWASP Top 10

    For the client's own web applications and APIs, the team runs dynamic application security testing and manual testing against the OWASP Top 10 and the OWASP API Security Top 10, including server-side request forgery (API7:2023) where an application can reach internal or metadata endpoints. Microsoft lists the OWASP Top 10, DAST of web applications and APIs, fuzzing and port scanning as permitted on the client's own endpoints, provided fuzzing stays within the rules of engagement. Testers also check Conditional Access and Intune MAM policy behavior where those are in scope, and attempt breakout from shared containers such as App Service or Azure Functions, stopping immediately on success. The output is a log of tested requests, confirmed weaknesses and the evidence for each.

  5. Handle abuse notifications during testing

    Azure runs automated abuse detection, which can interrupt test traffic even when the activity is compliant. DeployOpen keeps a running activity log with timestamps, source addresses and the in-scope targets, so the team can reply quickly. If Azure sends an abuse notification, the team replies with the client's written authorization and a description of the in-scope activity, as Microsoft's guidance describes. The client's named contact is informed the same day. The step closes with a recorded notification log showing each interruption, the reply sent and whether testing resumed.

  6. Validate findings and report to the client

    The team checks each candidate weakness to confirm it is real, rates its impact in the context of the client's environment, and removes duplicates. Findings are grouped by Azure service and by benchmark domain, with reproduction steps described at a defensive level, affected resources, evidence, and remediation guidance mapped to the relevant CIS or Microsoft benchmark controls. Any vulnerability found in a Microsoft service rather than the client's configuration is reported to MSRC under the rules of engagement. The report is delivered in a review meeting, where the client can ask questions before final issue. The client should confirm the report format its auditor or customer expects before testing begins.

  7. Retest remediated findings

    After the client fixes findings, the team retests only the items in the agreed retest scope, using the same method as the original test where practical. Each finding is marked as resolved, partially resolved or still open, with the evidence for that status. Retest scope, timing and any fee are set in the written scope, since the schedule follows what was agreed rather than a fixed duration. The step closes with a retest letter that lists each finding and its current status, which the client can share with its auditor or customer.

Weakness categories an Azure test should look for

This table compares the weakness categories an Azure penetration test should examine, how each tends to appear in an Azure environment, and how a tester checks for it without exploiting it. Read each row as a starting point for scoping: confirm with the provider which tests are permitted on your own endpoints before agreeing the list. The main takeaway is that identity, network reachability and metadata access usually matter more than any single application bug.

Weakness categoryHow it appears in AzureTesting approach and why it matters
Broken authentication and authorization in APIsToken validation gaps, missing object-level checks on API routes exposed through Azure API Management or App Service, and Conditional Access policies that do not cover every API clientTest with the owner's own test accounts and roles, comparing what each role can reach. Microsoft's rules permit DAST of web applications and APIs on your own endpoints, and broken authorization is a common finding.
Server-side request forgery to the instance metadata endpoint (OWASP API7:2023)Application features that fetch remote URLs can reach the Azure instance metadata service at 169.254.169.254 and expose managed identity tokensConfirm whether outbound fetch features can reach internal addresses by reviewing code and egress rules, and check that the metadata service requires its documented request headers. The MCP security guidance also flags metadata exposure as a credential risk.
Network exposure of management and data servicesPublic endpoints on databases, management ports, storage, Key Vault or App Service that were meant to be private, and missing private endpoints or network security group rulesRun port and service discovery against your own public IP ranges, then compare results with the intended design. Port scanning on your own endpoints is a permitted test under Microsoft's rules, but any flooding or denial of service is prohibited.
Over-broad role assignmentsSubscription or resource group level Owner or Contributor roles granted to users, service principals or groups, and unused role assignments left after projects endReview role assignments and effective permissions with read-only tooling, looking for paths from low-privilege identities to high-privilege ones. Ask for the findings to be tied to the CIS Microsoft Azure Foundations Benchmark controls.
Container breakout risks in App Service and FunctionsShared hosting environments where a compromised application could affect neighboring workloads or the platform, and misconfigured sandbox or runtime settingsMicrosoft's rules encourage attempting to break out of shared containers, stopping immediately on success. Confirm the exact allowed steps in writing, and report any success to Microsoft through the agreed channel.
Storage exposureBlob containers with anonymous read access, storage accounts reachable from public networks, SAS tokens with long expiry or broad permissions, and keys stored in codeReview configuration and access settings first, then test the owner's own accounts for anonymous or unintended access. Confirm that the test never touches storage accounts the tester does not own.
Weak logging and threat detectionDiagnostic settings not sending activity logs to a workspace, alerts not configured for role changes or key use, and retention periods shorter than the organization's policyCheck whether test activity itself appears in logs and alerts. A test that is not detected is a finding, and buyers often need this evidence for regulators and customer reviews.

What Microsoft prohibits and what to exclude from scope

Microsoft's Cloud Unified Penetration Testing Rules of Engagement list activities that are off limits for every tester, whatever the customer has authorized. Scope documents should name these explicitly so that no test plan step drifts into them. The prohibitions cover load and availability attacks, activity against accounts and data nobody on the engagement owns, and certain actions against Microsoft's own online services.

  • Denial of service: Any form of DoS is prohibited, and DDoS is prohibited under all circumstances. Resilience questions belong in design review or a separately arranged exercise, not in a standard test.
  • Tenants and storage accounts you do not own: Testing must stay within resources the tester is authorized to assess. Shared or adjacent tenants are out of bounds even if reachable from the network.
  • Credentials that are not your own: This includes leaked or found credentials. Test accounts should be issued by the client for the engagement.
  • Network-intensive fuzzing and post-exploitation beyond proof of concept: Fuzzing that generates heavy network load is prohibited, and actions against Microsoft online services should stop at initial proof of concept.

Confirm these prohibitions in the statement of work and ask the provider to show how it will stop a test step that approaches one of them.

What to do when Azure flags test traffic as abuse

Azure runs automated abuse detection, and that detection can interrupt test traffic even when the testing is fully permitted. The point of this section is that a flagged test is an expected event you plan for, not an unexpected incident. Microsoft expects a specific reply for compliant activity: the customer's written authorization and a description of the in-scope activity. Keep both ready before testing starts, so the response can go out the same day the notification arrives.

Brief the security operations team and any managed provider before the test window opens. Tell them which subscriptions, resource groups and endpoints are in scope, which source IP addresses the testers will use, and the approximate test window. Ask them to route any alert that matches those details to the engagement lead rather than opening a security incident. A Microsoft abuse notification that reaches an unprepared SOC can trigger containment steps, such as disabling accounts or isolating hosts, that interrupt the test and distort its results. Confirm with your provider how their tooling will tag test traffic so the alert can be matched quickly.

Store the written authorization where the engagement lead and the SOC can both find it, and record who signed it. Microsoft says a third party such as a consulting firm may test only with explicit written authorization from the resource owner, documented in the service agreement before testing. Check that the document names the in-scope resources and the tester, and that it matches the rules in the Microsoft Cloud Unified Penetration Testing Rules of Engagement. Ask your legal or procurement contact to confirm the wording against your service agreement, because the authorization must sit inside that agreement.

What the client receives from an Azure test

An Azure test should produce a package that a CISO, an engineering lead and an external auditor can each read for their own purpose. The cards below describe the sections we expect in that package and the record that ties each finding back to an agreed scope. DeployOpen prepares this evidence, but an independent auditor or the customer decides whether it meets their requirement.

Executive summary

A short narrative for leadership that states the agreed scope, the test window, the overall risk picture and the findings that need decisions first. It names the Azure subscriptions, resource types and identities covered, so a reader can see at a glance what was and was not tested. It should avoid repeating technical detail that belongs in the findings section.

Rules of engagement record

This section documents the written authorization from the resource owner, the in-scope subscriptions and resources, the tests performed under Microsoft's rules of engagement and any activity that was stopped. Keep it for every engagement, because Microsoft does not grant authorization on the customer's behalf. Ask the provider to log timestamps and source addresses so that any abuse notification can be matched to in-scope activity.

Microsoft rules of engagement

Methodology and test coverage

The methodology section explains which test categories were run, such as OWASP Top 10 checks, DAST of web applications and APIs, and port scanning on your own endpoints, and which were deliberately excluded. It should also state the tools, the tester roles and any limits, such as the absence of denial-of-service testing. A reader should be able to reproduce the coverage claim without access to the testers' notes.

Findings with severity and evidence

Each finding should state the affected Azure resource, the weakness category, the severity rating and the evidence that supports it. Evidence means the observed response, configuration value or screenshot, with sensitive data redacted. Ask for an explicit severity method so that the rating can be defended to an auditor or customer security team.

Configuration findings by benchmark domain

Configuration results should be grouped by the Microsoft cloud security benchmark domains, such as Network Security, Identity Management, Privileged Access and Logging and Threat Detection, so that they map to the control language your teams already use. Where a finding also touches a CIS Microsoft Azure Foundations Benchmark recommendation, the report should name it. Confirm with the provider which benchmark version the mapping uses, because the benchmark set changes over time.

Benchmark v2 overview

Remediation guidance and retest results

Each finding needs a remediation step that an engineer can apply in the client's own environment, with an owner and a priority. After fixes are applied, a retest should record which findings are closed, which remain open and why. Retest results are the evidence that most often answers a customer's follow-up question, so agree their format and any retest scope before the first test starts.

How Azure testing differs by architecture

Applications hosted on App Service, Azure Functions and API Management are tested mostly at the application and API layer, so the work looks closest to a conventional web or API test. Microsoft's rules of engagement list OWASP Top 10 testing, dynamic testing of web applications and APIs, fuzzing and port scanning as permitted on your own endpoints. Fuzzing that is network-intensive is prohibited, so the tester needs to agree on request rates and payload volumes before work starts.

  • Shared hosting boundaries: The rules of engagement encourage attempts to break out of shared containers such as App Service or Azure Functions. Such attempts are permitted only against resources you own, and the tester must stop immediately on success and report it.
  • Serverless entry points: Functions triggers, API Management gateways and backend URLs are the main paths to test, including injection through request data and server-side request forgery toward internal services.
  • Identity on the app: Check how managed identities and app registrations reach downstream resources, since an app's permissions often exceed what its code needs.
  • Evidence: Expect findings tied to endpoints, request and response pairs and retest results, which an application security team can act on directly.

Before testing, confirm which App Service plan, function app and API Management instance are yours, and that no shared backend belongs to another tenant.

What you prepare before the Azure test starts

Before any Azure test begins, the client has to put written authorization in place. Microsoft does not grant authorization on your behalf, so a consulting firm or red team may test your Azure resources only with explicit written authorization from the resource owner, documented in the service agreement before testing starts. Confirm that the agreement names the tester, the subscriptions and resource groups in scope, the test window and the people who can stop the work. Next, assemble a subscription and resource inventory that lists every subscription, management group, App Service, Azure Functions app, storage account and API endpoint the tester may reach, with the owner of each. Anything missing from this list should be treated as out of scope, and anything on it that you do not own, such as a tenant or storage account owned by a third party, must be removed before testing.

Next, prepare the identities the tester will use. Create named test accounts with roles agreed in advance, for example a reader role for configuration review and a limited contributor role in a non-production subscription for authenticated application testing. Do not hand out credentials that belong to real users or leaked credentials, because Microsoft's rules of engagement prohibit using credentials that are not the tester's own. Prepare test data that avoids real customer records, using synthetic or masked data in any application the tester will exercise. Name one escalation contact with authority to halt testing, and confirm how that person is reached outside business hours. If the Conditional Access or Intune MAM policies are in scope, have the policy owner available to explain them.

Two operational steps are easy to miss. First, decide whether a change freeze window is needed so that deployments do not alter the systems under test mid-engagement, and record the window in the statement of work. Second, notify your Security Operations Center and any managed service providers in writing. Microsoft says Azure runs automated abuse detection that may interrupt test activity, and testers who receive an abuse notification for compliant activity respond with the customer authorization and a description of the in-scope work. Your SOC should know the tester's source addresses, the test dates and who to call, so that a compliant test is not treated as an attack. Ask your provider to confirm how they will handle that exchange before the first scan.

Azure penetration testing questions buyers ask before hiring help

Does Azure still require pre-approval for penetration testing?

No. Microsoft has not required pre-approval for penetration tests against Azure resources since 15 June 2017, but that relief applies only to Microsoft Azure and only if the test follows the Microsoft Cloud Unified Penetration Testing Rules of Engagement. Those rules still prohibit activities such as denial of service, testing tenants or storage accounts you do not own, and using credentials that are not your own. Read the rules before scoping, because they define what your provider may and may not attempt, and Microsoft's own rules of engagement are the reference your statement of work should cite. Confirm with your provider that every test activity in the plan maps to a permitted category.

Can a third party test our Azure environment without our sign-off?

No. Microsoft says consulting firms and red teams may test Azure resources only with explicit written authorization from the resource owner, and that authorization must be documented in your service agreement before testing starts. Microsoft does not grant that authorization on your behalf. In practice, the written authorization should name the subscriptions, resource groups and endpoints in scope, the tester's organization, the test window and the contact for abuse notifications. Without it, a provider working on your resources is testing without permission, regardless of the rules of engagement.

What does our team need to provide before a penetration test starts?

A usable test needs a clear description of the environment and a named owner for each part of it. Ask your provider to request the following before scoping is finalized:

  • A list of subscriptions, resource groups and endpoints in scope, with confirmation that you own each one.
  • Test accounts with the roles needed for the agreed test type, issued through a channel you control.
  • The architecture documentation for the applications and APIs, including authentication flows and any shared containers such as App Service or Azure Functions.
  • A named technical contact, a reachable escalation path, and a plan for the abuse notification process.
  • Written decisions on out-of-scope systems, data handling, and the change freeze window, if one applies.

These inputs drive how much of the work is discovery and how much is testing, so incomplete inputs usually lengthen the engagement.

What drives the cost and duration of an Azure penetration test?

The cost is almost entirely professional time, so the main drivers are the number of in-scope applications, endpoints and subscriptions, the test types requested, the number of user roles and authentication paths, and how much configuration review is included alongside testing. Application and API testing against the OWASP Top 10 takes a different effort profile than a Conditional Access review or a shared-container breakout attempt. Duration also depends on how quickly your team issues access and responds to findings. Ask any provider for a quote that lists scope items, roles, test types, reporting and retest terms separately, since no public rate exists for a third-party Azure test. Quotes follow from the written scope, and an unclear scope will produce an unclear quote.

Can our own team run an Azure penetration test internally?

Yes, your own staff may test resources you own, provided they follow the Microsoft Cloud Unified Penetration Testing Rules of Engagement and the same prohibitions apply to them. Internal testing works well for recurring checks such as dynamic application security testing, port scanning and configuration review against the Microsoft cloud security benchmark domains. Independent testing still matters when a customer, auditor or regulator expects a third party to validate your results, because the independent test has its own authorization record and report. Internal teams should also plan for abuse detection, since Azure may interrupt test activity, and they should know how to reply to a notification with the authorization and a description of the in-scope activity.

How is retesting billed and scoped after the first report?

Retesting is usually scoped as a separate, smaller piece of work that checks whether the specific findings were fixed. Confirm in writing whether the quote includes one retest round, how long after the report it can be requested, and whether the retest covers only the original findings or any new changes. Ask whether the retest re-runs the original test steps, uses a shorter verification method, or relies on evidence you supply, since that changes the effort. Your provider should also state whether retesting needs fresh written authorization if the environment or the test window changes. Ongoing validation is better handled as a retainer than as repeated one-off projects.

Does Microsoft's benchmark tell us what to check in configuration review?

It gives you the domains to check, though it does not replace the test itself. The Microsoft cloud security benchmark v2, which is in preview and supersedes v1, has 12 security domains, including Network Security, Identity Management, Privileged Access, Data Protection, Logging and Threat Detection, Posture and Vulnerability Management, DevOps Security and a new Artificial Intelligence Security domain. Use these domains to structure the configuration portion of the scope, and ask your provider which domains are covered by review and which by active testing. Confirm with the Microsoft benchmark overview which version your auditor or customer expects, because preview content may change.

How DeployOpen scopes, tests, reports and retests Azure environments

DeployOpen runs security testing as a fixed-scope engagement. We agree the Azure subscriptions, services and written authorization in advance, then test within Microsoft's rules of engagement and document what we find for the people who must act on it.

How we scope

  • Confirm in writing which subscriptions, resource groups and endpoints you own and authorize for testing.
  • Record the services in scope, such as App Service, Azure Functions, API Management and Storage, and exclude anything outside your tenant.
  • Agree the excluded activities up front, including denial of service, phishing of Microsoft staff and any test against shared Microsoft services.

How we build

  • Map the Azure attack surface, then apply web, API and configuration tests against the agreed endpoints only.
  • Check identity, role assignments, network exposure, storage and logging against the Microsoft cloud security benchmark domains.
  • Stop immediately on any container escape attempt that succeeds, and record the evidence without going further.

How we hand over

  • Deliver a written report with each finding, its affected Azure resource, severity, reproduction summary and remediation steps.
  • Include the written authorization record and scope document so your auditor or customer can trace what was tested.
  • Walk your engineering and security leads through findings and agree which items need retesting.

How we support

  • Retest agreed findings after fixes and issue an updated report showing what changed.
  • Ask about a retainer if you need ongoing configuration checks or continuous testing between formal assessments.
  • Confirm with us how we will handle any Azure abuse notification, using the authorization and scope documents already on file.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.