Category: Cybersecurity

Configure Microsoft Defender Vulnerability Management settings for Azure VMs (SC-500 Exam Prep)

This post is a part of the "SC-500: Implementing End-to-End Security Controls for Cloud and AI Workloads" Exam Prep Hub.
This topic falls under these sections:
Manage and monitor security posture (20–25%)
   --> Manage security posture by using Defender for Cloud
      --> Configure Microsoft Defender Vulnerability Management settings for Azure VMs


Note that there are 10 practice questions (with answers) at the end of each section to help you solidify your knowledge of the material. Also, there are 4 practice tests with 30 questions each available from the hub's main page below the exam topics section.

Introduction

Microsoft Defender Vulnerability Management (MDVM) is an important component of the security capabilities provided by Microsoft Defender for Cloud and Microsoft Defender for Servers. It helps security teams discover vulnerabilities in software installed on virtual machines, prioritize those vulnerabilities, and take action to reduce the organization’s exposure to known security risks.

One important current distinction is that Microsoft Defender Vulnerability Management (MDVM) is natively integrated with Defender for Servers, and Azure VM vulnerability scanning can now use both agent-based and agentless approaches depending on the Defender for Servers plan and configuration.

For the SC-500 exam, it is important to understand more than simply what a vulnerability scanner does. You should understand:

  • How Defender Vulnerability Management integrates with Defender for Servers
  • The difference between agent-based and agentless vulnerability scanning
  • The relationship between Defender for Servers Plan 1 (P1) and Plan 2 (P2)
  • How vulnerability assessment is enabled at subscription and machine scope
  • How to review vulnerability findings
  • How CVEs and severity information are used to prioritize remediation
  • How vulnerability findings can be managed when an organization has an accepted risk
  • The additional MDVM capabilities available with Defender for Servers Plan 2
  • How security baseline assessment and vulnerable application blocking fit into the overall solution

The current SC-500 study guide specifically includes configuring Defender for Servers settings such as vulnerability scanning and EDR, as well as implementing agentless VM scanning.


1. What Is Microsoft Defender Vulnerability Management?

Microsoft Defender Vulnerability Management is Microsoft’s vulnerability-management capability for continuously discovering and assessing vulnerabilities and helping organizations prioritize remediation.

Within Defender for Cloud, MDVM is integrated with Microsoft Defender for Endpoint and Defender for Servers.

This integration provides capabilities such as:

  • Software inventory
  • Vulnerability discovery
  • Vulnerability assessment
  • CVE identification
  • Risk-based prioritization
  • Security recommendations
  • Vulnerability remediation
  • Security baseline assessment
  • Premium vulnerability-management capabilities with Defender for Servers Plan 2

For servers protected by Defender for Servers, Defender Vulnerability Management is integrated natively rather than requiring a completely separate Microsoft vulnerability-management product.

Important SC-500 concept

Think of the relationship as:

Defender for Servers → integrates Defender for Endpoint + Defender Vulnerability Management

This allows Defender for Cloud to provide both:

Threat protection

and

Vulnerability management

for supported machines.


2. What Does Defender Vulnerability Management Scan?

Defender Vulnerability Management identifies vulnerabilities associated with software and configurations on machines.

For example, suppose an Azure VM is running:

  • Windows Server
  • IIS
  • .NET
  • Java
  • A third-party application

A vulnerability-management solution can identify vulnerable versions of installed software and associate them with known vulnerabilities such as Common Vulnerabilities and Exposures (CVEs).

Defender for Cloud then surfaces vulnerability information and recommendations that security teams can investigate and remediate.

A useful way to think about the process is:

Discover → Assess → Prioritize → Remediate → Verify


3. Defender Vulnerability Management and Defender for Servers

Defender Vulnerability Management scanning for Azure VMs is provided through the Defender for Servers plan.

Current Defender for Cloud documentation describes two primary vulnerability-scanning approaches:

CapabilityDefender for Servers Plan 1Defender for Servers Plan 2
Defender Vulnerability Management integrationYesYes
Agent-based vulnerability scanningYesYes
Agentless vulnerability scanningNoYes
Premium MDVM capabilitiesNoYes
Security baseline assessmentNoYes
Vulnerable application blockingNoYes
Other advanced Defender for Servers capabilitiesLimitedExpanded

Defender for Servers Plan 2 includes the capabilities of Plan 1 plus additional functionality, including agentless scanning and premium Defender Vulnerability Management capabilities.

Exam tip

A common SC-500 question pattern is:

An organization wants vulnerability scanning without depending on an agent installed inside the VM. Which capability should be considered?

The key concept is:

Agentless vulnerability scanning → Defender for Servers Plan 2


4. Agent-Based Vulnerability Scanning

Agent-based scanning uses the Microsoft Defender for Endpoint integration.

The Defender for Endpoint sensor provides information that Defender Vulnerability Management can use to assess the machine.

Agent-based vulnerability scanning is available with:

  • Defender for Servers Plan 1
  • Defender for Servers Plan 2

The Defender for Endpoint integration is enabled by default when Defender for Servers is enabled, although individual plan settings can be modified.

Advantages

Agent-based scanning can provide:

  • Continuous vulnerability information
  • Software inventory
  • Vulnerability information
  • Endpoint security integration
  • Additional threat-detection capabilities through Defender for Endpoint

It is particularly useful when the organization already uses the Defender for Endpoint sensor as part of its endpoint-security architecture.


5. Agentless Vulnerability Scanning

Agentless scanning provides vulnerability visibility without requiring the traditional endpoint sensor for the vulnerability assessment itself.

This is particularly valuable when organizations want broader coverage while minimizing the need to install and maintain agents.

According to the current Defender for Cloud documentation, agentless vulnerability scanning is available with Defender for Servers Plan 2. It is also enabled by default when Defender for Servers Plan 2 or the Defender CSPM plan is enabled, subject to applicable requirements.

Why is agentless scanning important?

Consider an organization with hundreds of Azure VMs.

Installing and maintaining agents on every machine may introduce:

  • Deployment effort
  • Operational overhead
  • Additional dependencies
  • Potential compatibility concerns

Agentless scanning can provide vulnerability visibility without requiring the same agent-based deployment model.


6. Agent-Based vs. Agentless Scanning

This distinction is especially important for SC-500.

CharacteristicAgent-BasedAgentless
Requires Defender for Endpoint sensorYesNo
Defender for Servers P1SupportedNot supported
Defender for Servers P2SupportedSupported
Provides vulnerability assessmentYesYes
Software inventoryYesYes
Useful when minimizing agentsLess suitableHighly suitable
Included with P2YesYes

The current Defender for Cloud implementation can also use a hybrid approach. If a machine has both agent-based and agentless scanning available, Defender for Cloud can use the agent-based results because they provide greater data freshness.

Exam scenario

If a question says:

A VM has both Defender for Endpoint-based scanning and agentless scanning available. Which results should you generally expect Defender for Cloud to use?

The important concept is:

Agent-based results take precedence because they provide better freshness.


7. Enabling Vulnerability Scanning at Subscription Scope

Vulnerability scanning can be configured for an Azure subscription through Defender for Cloud.

A typical configuration process is:

  1. Open Microsoft Defender for Cloud.
  2. Open Environment settings.
  3. Select the Azure subscription.
  4. Locate Defender for Servers.
  5. Open the relevant monitoring/settings configuration.
  6. Locate Vulnerability assessment for machines.
  7. Configure the vulnerability-assessment solution.
  8. Apply and save the configuration.

Current Microsoft documentation indicates that vulnerability scanning is enabled by default when Defender for Servers is enabled, although administrators can manually configure the vulnerability-assessment settings when required.

Important distinction

There are two related concepts:

Enabling Defender for Servers

and

Configuring the vulnerability-assessment behavior

Enabling Defender for Servers provides the overall server-protection framework, while the vulnerability-assessment settings determine how vulnerability scanning is configured.


8. Configuring Vulnerability Scanning for an Individual VM

Although configuring protection at subscription scope is generally preferable for consistent security management, Defender for Cloud also supports resource-level configuration.

This can be useful when:

  • Different VMs require different protection levels
  • An organization is gradually onboarding machines
  • Certain workloads require exceptions
  • Different server populations use different Defender for Servers plans

If a VM does not have an appropriate vulnerability assessment solution, Defender for Cloud can generate the recommendation:

Machines should have a vulnerability assessment solution

Administrators can use the recommendation to identify affected machines and configure a vulnerability solution.


9. Required Permissions

Permissions matter when configuring vulnerability scanning.

Current Microsoft guidance identifies:

  • Owner permissions at the resource-group level are required to deploy the scanner.
  • Security Reader permissions are sufficient to view vulnerability findings.

This illustrates an important security principle:

The person who needs to view vulnerability information does not necessarily need the permissions required to deploy or change vulnerability scanning.

This follows the principle of least privilege.


10. Reviewing Vulnerability Findings

Once vulnerability scanning is active, security teams need to interpret and prioritize the findings.

Defender for Cloud surfaces vulnerability information that can include:

  • Vulnerable machines
  • Affected software
  • CVEs
  • Severity
  • Remediation recommendations
  • Related security information

The Defender Vulnerability Management experience also provides broader vulnerability-management capabilities through the Microsoft Defender portal and Exposure Management.


11. Understanding CVEs

A Common Vulnerabilities and Exposures (CVE) identifier provides a standardized identifier for a publicly known vulnerability.

For example:

CVE-YYYY-NNNNN

can identify a specific vulnerability affecting a particular product or component.

When reviewing a vulnerability finding, security professionals should not simply look at the number of vulnerabilities.

Instead, they should consider:

  • Vulnerability severity
  • Affected asset
  • Business importance of the asset
  • Exploitability
  • Exposure
  • Attack-path information
  • Available remediation
  • Whether the vulnerability is actively being exploited

This helps organizations prioritize the vulnerabilities that present the greatest practical risk.


12. CVSS Scores

Vulnerability findings can also contain Common Vulnerability Scoring System (CVSS) information.

CVSS provides a standardized way to communicate the severity of a vulnerability.

For example:

CVSSGeneral interpretation
LowLower severity
MediumModerate severity
HighSignificant severity
CriticalExtremely serious vulnerability

However, organizations should avoid treating CVSS as the only factor in remediation decisions.

A medium-severity vulnerability on an internet-facing production server could be more important to an organization than a critical vulnerability on an isolated development VM.

Modern Defender Vulnerability Management therefore emphasizes risk-based prioritization rather than simply sorting vulnerabilities by CVSS score.


13. Vulnerability Findings as Defender for Cloud Recommendations

Defender for Cloud presents vulnerability findings as recommendations.

For example:

Machines should have vulnerability findings resolved

can identify machines with vulnerabilities requiring attention.

The recommendation experience can provide:

  • Affected resources
  • Vulnerability information
  • CVEs
  • Severity
  • Remediation guidance

Administrators can investigate individual resources or examine findings across the environment.


14. Managing Accepted Risk

Not every vulnerability can immediately be remediated.

For example, an organization might determine that:

  • A vulnerable application cannot yet be upgraded.
  • The vulnerability affects a legacy application.
  • The vulnerability is not exploitable in the organization’s environment.
  • Compensating controls reduce the risk.
  • The vulnerability is below an organization’s defined risk threshold.

In these situations, organizations need a controlled way to manage exceptions.

Historically, Defender for Cloud provided disable rules for suppressing selected vulnerability findings.

However, current Microsoft guidance states that disable rules are being deprecated as part of the transition from grouped recommendations to individual recommendations, with recommendation exemptions becoming the preferred approach for managing exceptions.

Exam consideration

If a question is based on current functionality and asks how an organization should manage an accepted recommendation exception, understand the transition toward:

Recommendation exemptions

rather than assuming older disable-rule terminology is always the current answer.


15. Defender for Servers Plan 2 Premium Vulnerability Management

One of the most important reasons an organization might select Defender for Servers Plan 2 is access to additional vulnerability-management capabilities.

Current Defender documentation identifies premium capabilities associated with Plan 2, including:

  • Security baseline assessment
  • Vulnerable application blocking
  • Additional inventory and assessment capabilities
  • Additional remediation and mitigation functionality

These capabilities go beyond simply identifying CVEs.


16. Security Baseline Assessment

Security baseline assessment evaluates machines against defined security configuration profiles.

The goal is to determine whether a machine is configured according to an organization’s desired security posture.

For example, an organization might establish a baseline requiring:

  • Specific security settings
  • Appropriate authentication configuration
  • Required system protections
  • Secure operating-system configuration

Current Microsoft documentation identifies Defender Vulnerability Management security baseline assessment as a Plan 2 capability and notes that this assessment capability is currently in public preview.

Important distinction

Vulnerability assessment asks:

“Is the software or system vulnerable?”

Security baseline assessment asks:

“Is the system configured according to the desired security baseline?”

These are related but different security questions.


17. Vulnerable Application Blocking

Defender Vulnerability Management premium capabilities can also provide mechanisms for dealing with vulnerable applications.

Vulnerable application blocking is designed to reduce exploitation risk by preventing vulnerable applications from running under supported scenarios.

This is different from simply generating a vulnerability report.

The progression is approximately:

Discover vulnerability → Assess risk → Recommend remediation → Mitigate exploitation

Vulnerable application blocking therefore represents a more proactive mitigation capability.

It is associated with the premium Defender Vulnerability Management capabilities available through Defender for Servers Plan 2.


18. Defender for Servers Plan 1 vs. Plan 2

For the SC-500 exam, memorize the conceptual differences rather than attempting to memorize every individual feature.

CapabilityPlan 1Plan 2
Defender for Endpoint integrationYesYes
Agent-based vulnerability assessmentYesYes
Agentless machine scanningNoYes
Premium MDVM capabilitiesNoYes
Security baseline assessmentNoYes
Vulnerable application blockingNoYes
Advanced server protectionMore limitedMore comprehensive

Exam shortcut

When the question emphasizes:

“agentless vulnerability scanning”

think:

Plan 2

When it emphasizes:

“premium Defender Vulnerability Management capabilities”

think:

Plan 2

When it simply asks whether Defender Vulnerability Management-based vulnerability scanning is available with Defender for Servers:

Plan 1 and Plan 2


19. What Happens When Agent-Based and Agentless Scanning Overlap?

This is an excellent potential exam scenario.

Suppose:

  • Defender for Servers Plan 2 is enabled.
  • Agentless scanning is enabled.
  • Defender for Endpoint is also installed and reporting vulnerability information.

Both methods may be available.

Defender for Cloud uses a hybrid behavior.

If both scanning methods provide results, agent-based results are preferred because they provide better data freshness.

This does not mean agentless scanning is unnecessary. It can extend coverage to machines that do not have an agent-based vulnerability-scanning solution.


20. Bring Your Own License Vulnerability Scanners

Organizations that already use another vulnerability-management product can use a supported Bring Your Own License (BYOL) vulnerability scanner.

Current Defender for Cloud documentation identifies supported partner solutions such as:

  • Qualys
  • Rapid7

The partner solution reports vulnerability data to its management platform, and vulnerability information can be surfaced through Defender for Cloud.

Important exam distinction

The integrated Microsoft solution is:

Microsoft Defender Vulnerability Management

A BYOL deployment is:

A supported third-party vulnerability assessment solution

These are alternative vulnerability-assessment approaches rather than two scanners that an organization necessarily needs to run simultaneously.

Only one BYOL scanner is supported for a machine.


21. Hybrid Behavior with BYOL Scanners

Defender for Cloud can combine different vulnerability-scanning capabilities depending on the machine’s configuration.

Current behavior includes:

  • If there is no agent-based scanner, agentless scanning can provide results where supported.
  • If Defender Vulnerability Management is integrated through Defender for Endpoint, Defender for Cloud can use the agent-based results.
  • If a supported BYOL scanner is installed, partner results generally take precedence.
  • Agentless results can be used for machines that do not have the partner scanner or are not reporting findings correctly.
  • Organizations can configure vulnerability-scanning behavior to use Defender Vulnerability Management results where appropriate.

This is an area where exam questions may test your understanding of which scanning method takes precedence rather than simply asking what each scanner does.


22. Vulnerability Scanning Is Not the Same as Network Vulnerability Scanning

Another important distinction:

The integrated Defender Vulnerability Management scanner focuses on vulnerabilities on the machine itself.

It does not function as a general network-vulnerability scanner that scans the entire network for network-device vulnerabilities.

Therefore:

“Find vulnerable software installed on this VM”

is a Defender Vulnerability Management use case.

Whereas:

“Scan the entire network for vulnerable network devices”

is a different security requirement.


23. Relationship Between Vulnerability Management and EDR

Endpoint Detection and Response (EDR) and vulnerability management address different security problems.

Defender for Endpoint / EDR

Focuses on detecting and responding to threats.

Examples include:

  • Suspicious behavior
  • Malware
  • Attacks
  • Endpoint incidents
  • Security alerts

Defender Vulnerability Management

Focuses on exposure and weaknesses.

Examples include:

  • Vulnerable software
  • Missing security updates
  • Vulnerable applications
  • Security recommendations
  • Risk prioritization

Defender for Servers integrates these capabilities to provide a more comprehensive security solution for protected machines.


24. A Practical Configuration Strategy

A good implementation strategy can be summarized as follows.

Step 1 — Enable Defender for Cloud

Ensure the Azure subscription is onboarded to Defender for Cloud.

Step 2 — Select Defender for Servers

Determine whether the organization needs:

  • Plan 1
  • Plan 2

Step 3 — Determine the scanning approach

Decide whether vulnerability assessment should use:

  • Agent-based scanning
  • Agentless scanning
  • A supported BYOL solution

Step 4 — Configure vulnerability assessment

Use Defender for Cloud Environment settings to configure vulnerability assessment for the appropriate subscription.

Step 5 — Validate machine coverage

Review the affected VMs and ensure vulnerability scanning is active.

Step 6 — Review findings

Analyze:

  • CVEs
  • Severity
  • Affected software
  • Affected machines
  • Remediation guidance

Step 7 — Prioritize

Prioritize vulnerabilities based on actual organizational risk, not simply CVSS score.

Step 8 — Remediate

Apply patches, update applications, modify configurations, or apply other compensating controls.

Step 9 — Handle accepted risks

Where remediation is not currently possible, use the appropriate recommendation-exemption mechanism according to current Defender for Cloud functionality.

Step 10 — Consider Plan 2 capabilities

For higher-security environments, evaluate:

  • Agentless scanning
  • Security baseline assessment
  • Vulnerable application blocking
  • Other premium Defender Vulnerability Management capabilities

25. Common Mistakes to Avoid

Mistake 1: Assuming Plan 1 provides agentless vulnerability scanning

It does not.

Agentless vulnerability scanning is associated with Plan 2.

Mistake 2: Assuming Plan 2 eliminates agent-based scanning

It does not.

Plan 2 supports both agent-based and agentless approaches.

Mistake 3: Confusing vulnerability management with EDR

Vulnerability management identifies weaknesses.

EDR detects and responds to active threats.

Mistake 4: Treating CVSS as the only prioritization factor

CVSS is important, but modern vulnerability management also considers contextual risk.

Mistake 5: Assuming every vulnerability should immediately be remediated

Some vulnerabilities may require documented risk acceptance or compensating controls.

Mistake 6: Confusing vulnerability assessment with network scanning

Defender Vulnerability Management focuses on vulnerabilities associated with the machine and its software.

Mistake 7: Forgetting resource scope

Defender for Servers and vulnerability assessment can be configured at subscription level, while resource-level configurations can be used for specific scenarios.

Mistake 8: Using outdated disable-rule assumptions

Microsoft is transitioning away from disable rules toward recommendation exemptions for managing exceptions.


26. SC-500 Exam-Focused Comparison

Requirement in the scenarioMost relevant concept
Scan VM vulnerabilities using Defender for EndpointAgent-based MDVM
Scan VMs without relying on an endpoint agentAgentless scanning
Enable agentless vulnerability scanningDefender for Servers Plan 2
Obtain premium MDVM capabilitiesDefender for Servers Plan 2
Assess security configuration against baselinesSecurity baseline assessment
Prevent vulnerable applications from runningVulnerable application blocking
View vulnerability informationSecurity Reader can view findings
Deploy scanner/configurationAppropriate administrative permissions, including Owner at required scope
Identify known software vulnerabilitiesMDVM
Detect active endpoint threatsDefender for Endpoint/EDR
Use an existing Qualys or Rapid7 solutionBYOL vulnerability assessment
Identify a known vulnerabilityCVE
Assess vulnerability severityCVSS and contextual risk
Manage accepted exceptionsRecommendation exemptions

27. Key Takeaways

For the SC-500 exam, remember these core concepts:

  1. Microsoft Defender Vulnerability Management is integrated with Defender for Servers.
  2. Defender for Servers Plan 1 supports agent-based vulnerability scanning.
  3. Defender for Servers Plan 2 supports both agent-based and agentless vulnerability scanning.
  4. Agentless vulnerability scanning is a major Plan 2 capability.
  5. If both agent-based and agentless results are available, agent-based results are generally preferred because of their freshness.
  6. Defender Vulnerability Management identifies software vulnerabilities and provides remediation information.
  7. CVEs identify known vulnerabilities; CVSS helps communicate severity.
  8. Risk prioritization should consider organizational context rather than relying exclusively on CVSS.
  9. Security baseline assessment is different from vulnerability assessment.
  10. Premium Defender Vulnerability Management capabilities, including security baseline assessment and vulnerable application blocking, are associated with Defender for Servers Plan 2.
  11. Qualys and Rapid7 are examples of supported BYOL vulnerability-assessment solutions.
  12. Vulnerability assessment is not the same thing as network vulnerability scanning.
  13. Defender Vulnerability Management complements Defender for Endpoint/EDR rather than replacing it.
  14. Current Defender for Cloud functionality is moving toward recommendation exemptions rather than older disable-rule mechanisms.

The most important mental model is:

Defender for Servers provides the server-protection framework; Defender Vulnerability Management identifies and prioritizes vulnerabilities; Defender for Endpoint provides endpoint protection and threat detection; Plan 2 adds agentless scanning and premium vulnerability-management capabilities.


Practice Exam Questions

Question 1

An organization has 500 Azure virtual machines protected by Microsoft Defender for Servers. The security team wants to identify software vulnerabilities but does not want the vulnerability assessment process to depend on installing an agent on every VM.

Which capability should the organization use?

A. Agentless vulnerability scanning with Defender for Servers Plan 2

B. Defender for Endpoint Plan 1 only

C. Microsoft Sentinel analytics rules

D. Azure Network Watcher

Answer: A

Explanation

A is correct. Defender for Servers Plan 2 supports agentless vulnerability scanning, which allows Defender Vulnerability Management to assess supported machines without relying on the traditional agent-based vulnerability-scanning approach. Agentless scanning is a key distinction between Plan 1 and Plan 2.

B is incorrect because Defender for Endpoint is associated with the agent-based approach and does not provide the requested agentless architecture.

C is incorrect because Microsoft Sentinel is primarily a SIEM/security analytics platform rather than a VM vulnerability scanner.

D is incorrect because Network Watcher provides network monitoring and diagnostics, not software vulnerability assessment.


Question 2

A company has enabled Defender for Servers Plan 1 for its Azure VMs. The security team wants to use Defender Vulnerability Management to identify vulnerabilities in installed software.

Which statement is correct?

A. Vulnerability Management requires Plan 2 and cannot be used with Plan 1.

B. Vulnerability Management is available only through Microsoft Sentinel.

C. Plan 1 supports agent-based vulnerability scanning through the Defender for Endpoint integration.

D. Plan 1 provides agentless vulnerability scanning but not agent-based scanning.

Answer: C

Explanation

C is correct. Defender for Servers Plan 1 supports agent-based vulnerability scanning through the Defender for Endpoint integration. Plan 2 expands the available capabilities by adding agentless scanning and premium Defender Vulnerability Management functionality.

A is incorrect because Plan 1 does support vulnerability assessment.

B is incorrect because Defender Vulnerability Management is integrated with Defender for Servers rather than requiring Sentinel.

D is incorrect because agentless scanning is a Plan 2 capability, whereas Plan 1 supports the agent-based approach.


Question 3

A security administrator is reviewing a vulnerability finding for an Azure VM. The finding includes a CVE identifier and a CVSS score.

What is the primary purpose of the CVE identifier?

A. To identify the Azure subscription containing the VM

B. To uniquely identify a publicly known vulnerability

C. To identify the severity category assigned by the organization’s security team

D. To identify the Defender for Servers billing plan

Answer: B

Explanation

B is correct. A Common Vulnerabilities and Exposures (CVE) identifier provides a standardized identifier for a publicly known vulnerability.

A is incorrect because Azure subscription identifiers are unrelated to CVEs.

C is incorrect because CVSS is used to communicate vulnerability severity; the CVE identifies the vulnerability itself.

D is incorrect because CVEs have nothing to do with Defender for Servers licensing.


Question 4

An organization has Defender for Servers Plan 2 enabled. Both agent-based Defender Vulnerability Management scanning and agentless scanning are available for the same VM.

Which result should an administrator generally expect Defender for Cloud to prioritize?

A. Agentless results because they always have higher accuracy

B. Results from whichever scanner has the highest CVSS score

C. Results from the scanner that was enabled most recently

D. Agent-based results because they generally provide better data freshness

Answer: D

Explanation

D is correct. When both agent-based and agentless scanning are available, Defender for Cloud generally uses the agent-based results because they provide better data freshness.

A is incorrect because agentless scanning does not automatically take precedence when both methods are available.

B is incorrect because CVSS does not determine which scanning source is selected.

C is incorrect because scanner selection is not based simply on which method was enabled most recently.


Question 5

A security team wants to evaluate whether Azure VMs conform to defined security configuration baselines. They are not merely interested in identifying known software vulnerabilities.

Which Defender Vulnerability Management capability addresses this requirement?

A. CVSS scoring

B. Security baseline assessment

C. Network vulnerability scanning

D. Microsoft Sentinel workbook analysis

Answer: B

Explanation

B is correct. Security baseline assessment evaluates machine configuration against defined security baseline profiles. It answers a different question from conventional vulnerability assessment. Current Microsoft documentation identifies this capability with Defender for Servers Plan 2.

A is incorrect because CVSS communicates vulnerability severity rather than evaluating configuration baselines.

C is incorrect because Defender Vulnerability Management’s integrated machine scanning is not a general network vulnerability scanner.

D is incorrect because Sentinel is not the service providing this MDVM capability.


Question 6

A security administrator needs to enable vulnerability assessment for machines across an Azure subscription.

Which location should the administrator use in Microsoft Defender for Cloud?

A. Environment settings for the subscription and the Defender for Servers settings

B. Azure Network Watcher

C. Microsoft Sentinel Analytics rules

D. Azure Key Vault access policies

Answer: A

Explanation

A is correct. Vulnerability assessment can be configured through Defender for Cloud → Environment settings → relevant subscription → Defender for Servers settings. Current guidance identifies vulnerability assessment for machines as a configurable Defender for Servers setting.

B is incorrect because Network Watcher handles network monitoring and diagnostics.

C is incorrect because Sentinel analytics rules detect and correlate security events rather than enabling VM vulnerability scanning.

D is incorrect because Key Vault access policies control access to Key Vault resources.


Question 7

An organization already uses a supported third-party vulnerability-management product and wants to integrate its findings into Microsoft Defender for Cloud instead of switching entirely to Microsoft’s integrated scanner.

Which approach should the organization consider?

A. Azure Bastion

B. Microsoft Sentinel data connectors

C. Azure Policy guest configuration

D. A supported Bring Your Own License vulnerability-assessment solution

Answer: D

Explanation

D is correct. Defender for Cloud supports Bring Your Own License (BYOL) vulnerability-assessment solutions, including supported partner solutions such as Qualys and Rapid7.

A is incorrect because Azure Bastion provides secure administrative access to VMs.

B is incorrect because Sentinel connectors are used for security-data ingestion rather than implementing the vulnerability scanner.

C is incorrect because Azure Policy guest configuration addresses configuration compliance rather than serving as the third-party vulnerability scanner.


Question 8

A security team wants to reduce exploitation risk by preventing vulnerable applications from running on protected servers when supported by the Defender Vulnerability Management capability.

Which Defender for Servers plan should they evaluate?

A. Defender for Servers Plan 1

B. Foundational CSPM only

C. Defender for Servers Plan 2

D. Azure Network Watcher

Answer: C

Explanation

C is correct. Vulnerable application blocking is among the premium Defender Vulnerability Management capabilities associated with Defender for Servers Plan 2.

A is incorrect because Plan 1 provides the basic Defender for Servers capabilities and agent-based vulnerability scanning but not the premium MDVM functionality described here.

B is incorrect because Foundational CSPM is focused on security posture management rather than providing the premium server vulnerability-management capability in the scenario.

D is incorrect because Network Watcher is a network diagnostic service.


Question 9

A security analyst has Security Reader permissions and needs to investigate vulnerability findings on Azure VMs. Another administrator will be responsible for deploying or changing the vulnerability scanner configuration.

Which statement best describes the permissions required?

A. Security Reader can view findings, while stronger permissions such as Owner at the required resource-group scope are needed to deploy the scanner.

B. Security Reader must be granted Global Administrator before findings can be viewed.

C. Contributor permissions are always required just to view vulnerability findings.

D. No Azure RBAC permissions are required for vulnerability information.

Answer: A

Explanation

A is correct. Current guidance specifies that Security Reader can view vulnerability findings, while Owner at the resource-group level is required to deploy the scanner.

This is an important least-privilege concept: viewing security information should not automatically require deployment-level permissions.

B is incorrect because Global Administrator is not required for viewing Defender for Cloud vulnerability findings.

C is incorrect because Contributor is not required merely to view the findings.

D is incorrect because Azure RBAC controls access to Defender for Cloud resources and findings.


Question 10

An organization determines that a particular vulnerability cannot currently be remediated because the affected application is business-critical and the organization has implemented compensating controls. The security team wants to manage the finding as an accepted exception using current Defender for Cloud functionality.

Which approach should the team favor?

A. Delete the vulnerability record

B. Use a recommendation exemption

C. Disable Microsoft Defender for Endpoint

D. Turn off Defender for Servers

Answer: B

Explanation

B is correct. Current Microsoft guidance is transitioning away from older disable rules toward recommendation exemptions for managing accepted exceptions.

The important security principle is that an accepted risk should be explicitly documented and governed rather than hiding the vulnerability by disabling the entire security capability.

A is incorrect because administrators should not attempt to delete vulnerability records to manage accepted risk.

C is incorrect because disabling Defender for Endpoint would remove important security capabilities rather than properly documenting the exception.

D is incorrect because disabling Defender for Servers would eliminate the broader server-protection capabilities and would not be an appropriate way to manage an individual accepted vulnerability.


Final Word

A key exam distinction to keep in mind is Plan 1 = agent-based vulnerability scanning; Plan 2 = agent-based + agentless scanning plus premium MDVM capabilities. Also watch for questions that distinguish vulnerability assessment, security-baseline assessment, EDR, and network scanning—they are deliberately different concepts.


Go to the SC-500 Exam Prep Hub main page

Discover unprotected assets and vulnerabilities by using Microsoft Defender External Attack Surface Management (EASM) (SC-500 Exam Prep)

This post is a part of the "SC-500: Implementing End-to-End Security Controls for Cloud and AI Workloads" Exam Prep Hub.
This topic falls under these sections:
Manage and monitor security posture (20–25%)
   --> Manage security posture by using Defender for Cloud
      --> Discover unprotected assets and vulnerabilities by using Microsoft Defender External Attack Surface Management (EASM)


Note that there are 10 practice questions (with answers) at the end of each section to help you solidify your knowledge of the material. Also, there are 4 practice tests with 30 questions each available from the hub's main page below the exam topics section.

Introduction

Modern organizations rarely have a completely static IT environment.

Applications are deployed across Azure and other clouds. Developers create new internet-facing services. Acquisitions introduce unfamiliar domains and infrastructure. Third-party providers host applications and content. Old systems remain online after their owners have forgotten about them. Certificates, DNS records, IP addresses, and web applications continually change.

This creates a security problem:

How can an organization secure assets that it doesn’t even know it owns or exposes to the internet?

Microsoft Defender External Attack Surface Management (Defender EASM) addresses this problem by providing an outside-in view of an organization’s internet-exposed infrastructure.

Rather than starting with an Azure subscription or a known cloud resource, Defender EASM starts with known organizational assets—called discovery seeds—and recursively discovers related infrastructure. The resulting information is organized into an inventory that can expose unknown assets, third-party dependencies, vulnerabilities, and other security risks.

An important exam distinction is that Defender EASM uses an outside-in view of the internet to discover assets that may be unknown or unmanaged, complementing the resource-centric view provided by other Defender capabilities. The current Defender for Cloud integration also provides external attack-surface-management capabilities through Defender CSPM without requiring a separate Defender EASM license or special configuration.

For the SC-500 exam, this topic is particularly important because you need to understand:

  • What Defender EASM is
  • What an external attack surface is
  • How EASM differs from traditional vulnerability scanning
  • How discovery seeds work
  • How recursive discovery finds unknown assets
  • What types of assets EASM discovers
  • How assets are classified
  • The difference between approved, candidate, dependency, monitor-only, and investigation-required assets
  • How EASM identifies vulnerabilities and security-hygiene issues
  • How dashboards and inventory are used to prioritize risk
  • How EASM complements Defender for Cloud and Defender CSPM
  • How EASM can contribute to attack-path analysis
  • How organizations can manage discovered assets
  • How to distinguish EASM from Defender for Cloud’s cloud inventory and Defender Vulnerability Management

1. What Is Microsoft Defender External Attack Surface Management?

Microsoft Defender External Attack Surface Management (EASM) continuously discovers and maps an organization’s digital attack surface from an external perspective.

The key phrase to remember is:

Outside-in

EASM looks at the organization’s infrastructure from the perspective of what can be discovered from the internet.

This allows security teams to identify:

  • Unknown internet-facing infrastructure
  • Previously unmonitored assets
  • Web applications
  • Domains
  • Hosts
  • IP addresses
  • IP address blocks
  • SSL certificates
  • Third-party dependencies
  • Potential vulnerabilities
  • Security-hygiene problems
  • Suspicious or potentially malicious infrastructure relationships

Microsoft describes Defender EASM as providing visibility that helps organizations identify unknowns, prioritize risk, eliminate threats, and extend vulnerability and exposure management beyond the firewall.

The fundamental problem EASM solves

Traditional security programs often begin with assets that the organization already knows about.

For example:

“Show me all the virtual machines in this Azure subscription.”

That is useful, but it doesn’t answer:

“What internet-facing infrastructure associated with our organization exists that we don’t know about?”

EASM is designed to help answer the second question.


2. What Is an External Attack Surface?

An organization’s external attack surface consists broadly of infrastructure and services that are exposed or discoverable from the public internet.

Examples include:

  • Public websites
  • Internet-facing applications
  • Public IP addresses
  • DNS domains
  • Hosts
  • Web pages
  • SSL certificates
  • Publicly exposed services
  • Third-party infrastructure supporting organizational applications

The external attack surface changes constantly.

For example:

New application deployed
↓
New DNS record
↓
New public hostname
↓
New SSL certificate
↓
New internet-facing service
↓
New potential attack surface

A security team that relies entirely on manually maintained asset inventories may not discover every change.

Defender EASM continuously monitors and updates its understanding of the organization’s externally exposed infrastructure.


3. Why External Attack Surface Management Matters

Security controls are only effective when organizations know what they need to protect.

Consider an organization that believes it has:

  • 50 public-facing websites
  • 100 public IP addresses
  • 20 internet-facing applications

EASM might discover additional infrastructure associated with those known assets.

For example:

Known corporate domain
|
+--- Web host
| |
| +--- Web application
| +--- SSL certificate
|
+--- Related IP block
| |
| +--- Additional host
|
+--- WHOIS contact
|
+--- Additional organization asset

The newly discovered infrastructure may represent:

  • Legitimate infrastructure
  • A third-party dependency
  • A forgotten asset
  • A development environment
  • Shadow IT
  • An incorrectly categorized asset
  • An asset requiring further investigation

This is one of the major security benefits of EASM.


4. How Defender EASM Discovery Works

The core concept behind EASM discovery is recursive discovery.

The process begins with assets that are known to belong to the organization.

These are called:

Discovery seeds

Defender EASM analyzes the known assets and observes relationships between them and other internet infrastructure.

It then follows those relationships to discover additional assets.

The process can be represented as:

Known Asset
↓
Discovery Seed
↓
Observe relationships
↓
Discover connected infrastructure
↓
Analyze newly discovered assets
↓
Follow additional relationships
↓
Build attack-surface inventory

Microsoft’s proprietary discovery technology recursively searches through observed connections to known legitimate assets and uses those connections to infer relationships between infrastructure.


5. What Is a Discovery Seed?

A discovery seed is a known asset that Defender EASM uses as a starting point for discovering additional infrastructure.

Examples include:

  • Domain names
  • Hosts
  • IP addresses or IP ranges
  • Autonomous System Numbers (ASNs)
  • Email addresses
  • WHOIS organization information

For example, suppose a company owns:

contoso.com

The organization can use that known domain as a discovery seed.

Defender EASM can then investigate relationships involving that domain and potentially identify:

contoso.com
↓
www.contoso.com
↓
public IP address
↓
IP block
↓
additional host
↓
related certificate

The objective is not simply to scan the original domain.

The objective is to understand the broader infrastructure connected to it.


6. Automated Discovery vs. Custom Discovery

Defender EASM supports automated attack-surface discovery as well as customized discovery.

Automated discovery

Microsoft has preconfigured attack surfaces for many organizations.

When starting with Defender EASM, Microsoft recommends searching for the organization’s existing attack surface before immediately creating a custom attack surface.

This allows an organization to take advantage of infrastructure that has already been identified and then allow Defender EASM to continue refreshing and expanding the inventory.

Custom discovery

Custom discovery is useful when an organization wants to investigate infrastructure that may not be sufficiently connected to its primary known assets.

For example:

  • A recently acquired company
  • A newly established business unit
  • A subsidiary
  • A newly purchased domain
  • A known IP range
  • An infrastructure relationship not discovered through the primary attack surface

Custom discoveries use selected seeds as starting points.


7. Discovery Seeds Cannot Be Private IP Addresses

An important exam detail is that Defender EASM is designed to provide an external perspective.

Therefore, private IP addresses cannot be used as discovery seeds.

The discovery process focuses on infrastructure that can be observed from the internet rather than internal-only addressing.

Exam scenario

If a question asks:

An administrator wants to create an EASM discovery group using an internal private IP address as the seed. What should the administrator do?

The correct concept is:

Use an externally discoverable asset instead.


8. Types of Assets Defender EASM Can Discover

Defender EASM’s inventory can contain several asset types.

Important asset types include:

Asset typeExample
Domainscontoso.com
Hostswww.contoso.com
PagesWeb pages associated with hosts
IP addressesPublic IP addresses
IP blocksPublic address ranges
ASNsAutonomous System Numbers
SSL certificatesCertificates associated with internet-facing services
WHOIS contactsRegistration/contact information

Microsoft’s current EASM documentation identifies domains, IP address blocks, hosts, email contacts, ASNs, and WHOIS organizations as core discovery asset types; the inventory also includes pages, IP addresses, and SSL certificates.

Exam tip

If a question asks which technology can help discover an organization’s:

“unknown internet-facing domains, hosts, IP addresses, and related infrastructure”

think:

Defender EASM


9. The Defender EASM Inventory

Discovered assets are indexed into the Defender EASM inventory.

The inventory acts as a dynamic record of the organization’s externally visible infrastructure.

This is important because the attack surface is not static.

An asset might:

  • Appear
  • Disappear
  • Change ownership
  • Change infrastructure
  • Become inactive
  • Become associated with a new application
  • Develop a new vulnerability

Defender EASM tracks these changes as part of its continuously updated attack-surface view.


10. Asset States

One of the most important SC-500 exam concepts is that not every discovered asset is automatically treated as an organizational asset.

Defender EASM uses different asset states to help organizations categorize discovered infrastructure.

Current asset states include:

  • Approved Inventory
  • Dependency
  • Monitor Only
  • Candidate
  • Requires Investigation

Understanding these states is important for exam questions involving asset ownership and classification.


11. Approved Inventory

Approved Inventory represents an asset that has been determined to belong to the organization’s attack surface and for which the organization is directly responsible.

For example:

Company-owned website
↓
Approved Inventory

This means the organization should normally consider the asset part of its managed security scope.


12. Dependency

A Dependency is infrastructure owned by another party but used to support the organization’s attack surface.

For example, a company may have a website hosted by a third-party provider.

The company owns the website and domain, but the underlying hosting infrastructure may belong to the provider.

The external infrastructure may therefore be classified as a dependency.

This distinction is important because:

The asset can be relevant to your attack surface even though you don’t directly own or control it.

Microsoft gives third-party hosting as an example of infrastructure that can be classified as a dependency.


13. Monitor Only

Monitor Only is useful when an asset is relevant to the organization’s attack surface but isn’t directly controlled by the organization and isn’t a technical dependency.

For example:

  • An independently operated franchise
  • A related organization
  • An asset belonging to a related company

The organization may want visibility into the asset without treating it as directly owned infrastructure.


14. Candidate

A Candidate asset has a relationship to known organizational assets but does not have a strong enough relationship for Defender EASM to automatically classify it as approved inventory.

A security administrator should review the asset and determine its appropriate classification.

For example:

Known company domain
↓
Related host discovered
↓
Relationship uncertain
↓
Candidate
↓
Manual review

This is an important distinction.

A discovered asset does not necessarily mean:

“This definitely belongs to our organization.”

Instead, Defender EASM provides evidence and relationship information so security teams can make the determination.


15. Requires Investigation

Requires Investigation is another state that identifies assets requiring additional human analysis.

Defender EASM uses internally generated confidence information to determine whether relationships between assets are sufficiently strong.

A Requires Investigation designation means:

The relationship needs further validation.

It does not necessarily mean the asset is malicious.

It means the organization should investigate its relationship to the known attack surface.


16. Understanding the Discovery Chain

The discovery chain helps security professionals understand why Defender EASM believes an asset is related to the organization.

For example:

Known domain
↓
WHOIS contact
↓
IP block
↓
IP address
↓
Host

The discovery chain provides evidence about the relationships connecting a discovered asset to a known seed.

This is extremely useful when investigating potentially unknown infrastructure.

Rather than simply saying:

“We found this IP address.”

Defender EASM can help answer:

“Why does Defender EASM believe this IP address is related to our organization?”


17. Asset Approval

Some discovered assets can be automatically approved when Defender EASM determines that the relationship to the known seed is sufficiently strong.

Other assets require manual review.

The current discovery information distinguishes between:

Approved inventory

and

Candidate

based on the strength of the relationship and approval process.

Exam scenario

If an asset is discovered but there isn’t enough evidence to automatically establish ownership, don’t assume it is automatically approved.

Think:

Candidate → investigate/approve appropriately.


18. Vulnerability Discovery

Defender EASM isn’t only an asset-discovery tool.

It also provides information that can help security teams identify vulnerabilities and other risks associated with externally exposed infrastructure.

For example, EASM can surface:

  • Vulnerabilities
  • CVEs
  • Weak security configurations
  • SSL/TLS issues
  • Exposed services
  • Security-hygiene problems
  • Potentially risky infrastructure

These insights help organizations prioritize which parts of their external attack surface require attention.


19. EASM and CVEs

Defender EASM can associate known vulnerabilities with externally discovered assets.

For example:

Internet-facing host
↓
Detected software
↓
Known vulnerability
↓
CVE
↓
Risk prioritization
↓
Remediation

This provides a useful external perspective on vulnerability exposure.

However, remember that EASM is fundamentally concerned with the external attack surface.

It is not simply another name for Defender Vulnerability Management.


20. Defender EASM vs. Defender Vulnerability Management

This distinction is highly relevant to SC-500.

CapabilityDefender EASMDefender Vulnerability Management
Primary focusExternal attack surfaceVulnerability/exposure management
PerspectiveOutside-inPrimarily workload/endpoint-oriented
Unknown internet-facing assetsStrong capabilityNot its primary purpose
Discover domains and hostsYesNot its primary purpose
Discover public IP infrastructureYesNot its primary purpose
Identify software vulnerabilitiesYes, as part of external attack-surface insightsCore capability
Endpoint software inventoryNot primaryStrong capability
Defender for Endpoint integrationNot its primary purposeYes
Azure VM vulnerability assessmentNot its primary purposeYes

A useful mental model is:

EASM asks, “What can the internet see that belongs to us?”

while:

Defender Vulnerability Management asks, “What vulnerabilities exist on the systems we’re managing?”

These capabilities complement one another.


21. Defender EASM vs. Defender for Cloud Inventory

Another important distinction is between EASM and the Defender for Cloud cloud inventory.

Defender for Cloud’s inventory provides a resource-centric view of connected cloud resources, including Azure, AWS, and GCP resources.

For example:

Azure subscription
↓
VM
Storage account
SQL database
Container
AI service

EASM takes a different approach:

Internet
↓
Known public asset
↓
Related infrastructure
↓
Unknown external assets
↓
External attack surface

Defender for Cloud inventory is therefore useful for understanding the security state of known connected cloud resources, while EASM helps uncover internet-facing infrastructure that may not be represented in the organization’s cloud-resource inventory.


22. EASM and Defender CSPM

Defender EASM is particularly important in conjunction with Defender Cloud Security Posture Management (Defender CSPM).

Current Defender for Cloud functionality integrates external attack-surface-management capabilities through Defender EASM.

This integration allows organizations to improve their security posture by incorporating an external view of attack-surface exposure.

Importantly, Microsoft currently states that the external attack-surface-management capability integrated into Defender CSPM is included with the Defender CSPM plan and doesn’t require a separate Defender EASM license or special configuration.

Exam tip

Don’t automatically assume:

“Defender EASM always requires a separate EASM license.”

The current Defender CSPM integration changes this distinction.


23. EASM and Attack Path Analysis

EASM findings can also complement attack path analysis.

The SC-500 training specifically calls out the integration of EASM findings with Defender CSPM for attack-path analysis.

The significance is that an organization can move beyond simply asking:

“What assets are exposed?”

and begin asking:

“Which exposed assets create meaningful attack paths into important resources?”

For example:

Internet-facing asset
↓
Vulnerability
↓
Compromised workload
↓
Lateral movement
↓
Sensitive resource

Attack-path analysis helps security teams focus on exposures that could contribute to meaningful attack scenarios.


24. EASM Dashboards

Defender EASM provides dashboards designed to help organizations understand their attack surface.

Dashboard insights can focus on areas such as:

  • Vulnerabilities
  • Security hygiene
  • Compliance
  • Infrastructure
  • Asset exposure

These dashboards help security teams prioritize the areas presenting the greatest risk rather than reviewing every discovered asset individually.


25. Security Hygiene

Not every security problem is necessarily a traditional software vulnerability.

For example, an organization might have:

  • An expired or weak SSL certificate
  • Unexpected exposed ports
  • Unnecessary internet-facing infrastructure
  • An outdated service
  • An unexpected host
  • An unmanaged domain

These conditions can contribute to an organization’s overall security hygiene.

EASM dashboards and inventory capabilities help surface these conditions so organizations can investigate and remediate them.


26. IP Reputation

Defender EASM also provides IP reputation information.

The IP reputation information can identify potential threats associated with an IP address, including evidence that the address has appeared on threat lists.

For example, an IP address could have been associated with suspicious activity or a known malicious host.

This information provides additional context when evaluating an externally exposed asset.

Important distinction

An IP appearing in threat intelligence does not automatically prove that the organization’s current system is compromised.

It is an indicator that warrants investigation.


27. Connected Assets

The Defender EASM asset details experience provides a Connected assets view.

This allows security professionals to understand other assets connected to a particular asset.

For example:

Domain
|
+-- Host
|
+-- IP address
|
+-- SSL certificate
|
+-- Web page

Understanding connected assets is valuable because a security issue involving one component may reveal additional infrastructure that needs investigation.


28. JavaScript and Web Resources

Defender EASM can also provide visibility into resources associated with web assets.

For example, it can identify JavaScript resources associated with pages or hosts.

Information can include:

  • Resource URL
  • Resource host
  • MD5 hash
  • First-seen date
  • Last-seen date

This provides another layer of visibility into the technologies and resources used by externally exposed web applications.


29. SSL Certificate Visibility

SSL certificates are another important component of the external attack surface.

Certificates can provide relationships between:

  • Domains
  • Hosts
  • Infrastructure
  • Organizations

An unexpected certificate can sometimes reveal infrastructure that wasn’t present in a manually maintained inventory.

For this reason, certificate information can be valuable during external attack-surface discovery.


30. Managing EASM Inventory Assets

Defender EASM doesn’t just discover assets.

Security teams can also manage the inventory.

Current capabilities include:

  • Changing asset states
  • Adding labels
  • Assigning external IDs
  • Removing labels
  • Marking observations as not applicable
  • Removing assets from inventory
  • Managing assets discovered through specific seeds
  • Tracking changes through Task Manager

For example, an organization can label an asset according to an internal classification such as:

Production
Development
Acquisition
Third-party
Critical
Requires Review

Labels provide additional organizational context.


31. Marking an Observation as Not Applicable

An important management capability is the ability to mark certain observations as not applicable.

For example, a security team may investigate a vulnerability or other observation and determine that it does not apply to the organization’s specific situation.

Rather than ignoring the issue informally, the organization can manage the observation within the EASM inventory.

This helps maintain more accurate reporting.


32. Removing Assets

Defender EASM also provides mechanisms for removing assets from inventory.

For example, when removing a discovery seed, an administrator can choose to remove assets that were discovered through a connection to that seed.

This is useful when an organization determines that:

  • A seed no longer belongs to it
  • An acquisition has been divested
  • An infrastructure relationship is no longer relevant
  • The inventory needs to be corrected


33. EASM and Shadow IT

One of the strongest practical use cases for EASM is discovering shadow IT and previously unknown external infrastructure.

Consider this scenario:

A development team launches:

test-new-app.company-example.com

The security team isn’t informed.

The application becomes publicly accessible.

Traditional security inventory:

Unknown

EASM:

Internet discovery
↓
Related domain discovered
↓
Host discovered
↓
Application identified
↓
Potential vulnerability detected

This provides security teams with visibility into infrastructure that may have bypassed normal inventory and security-review processes.


34. EASM for Mergers and Acquisitions

EASM can also be valuable during mergers and acquisitions.

Suppose Company A acquires Company B.

Company A may receive:

  • New domains
  • Public IP ranges
  • Websites
  • Web applications
  • Certificates
  • Hosts
  • Third-party dependencies

The acquiring organization’s existing asset inventory may not immediately contain all of this infrastructure.

EASM can help establish an external view of the acquired organization’s attack surface.


35. EASM and Third-Party Dependencies

An organization may depend on infrastructure it doesn’t directly own.

For example:

Company website
↓
Third-party hosting provider
↓
External infrastructure

That external infrastructure may be classified as a Dependency.

This is important because:

Security responsibility may differ from ownership.

An organization can have a security exposure resulting from a third party even when the organization doesn’t directly manage the underlying infrastructure.


36. A Typical EASM Investigation

Consider an organization that believes all of its public infrastructure is known.

Step 1 — Start with known assets

Provide known:

  • Domains
  • Hosts
  • IP blocks
  • Other supported identifiers

Step 2 — Run discovery

Defender EASM recursively examines relationships among internet-facing infrastructure.

Step 3 — Review the inventory

The security team examines discovered assets.

Step 4 — Classify assets

Assets may be:

  • Approved Inventory
  • Dependency
  • Monitor Only
  • Candidate
  • Requires Investigation

Step 5 — Investigate unknown assets

The security team examines:

  • Discovery chains
  • Connected assets
  • IP reputation
  • Vulnerabilities
  • Web resources
  • Certificates

Step 6 — Prioritize risk

Security teams use dashboards and vulnerability information to identify the most important exposures.

Step 7 — Remediate

Examples include:

  • Remove unnecessary public exposure
  • Patch vulnerable software
  • Replace certificates
  • Secure misconfigured services
  • Remove abandoned infrastructure
  • Transfer remediation to the appropriate third-party owner

Step 8 — Continue monitoring

The organization continues monitoring its changing external attack surface.


37. EASM Outside-In vs. Traditional Inside-Out Security

This is perhaps the most important conceptual distinction for the exam.

Traditional cloud security

Starts with:

Known Azure resource
↓
Configuration
↓
Security posture
↓
Recommendations

Defender EASM

Starts with:

Internet
↓
Known organizational asset
↓
Related infrastructure
↓
Unknown assets
↓
External vulnerabilities
↓
Attack-surface risk

Neither approach replaces the other.

They answer different questions.


38. EASM Does Not Replace Defender for Cloud

It is important not to interpret EASM as a replacement for Defender for Cloud.

Instead, think of the technologies as complementary.

Security questionAppropriate capability
What Azure resources do we have?Defender for Cloud inventory
What security recommendations affect our Azure resources?Defender for Cloud
What vulnerabilities exist on protected VMs?Defender Vulnerability Management
What internet-facing infrastructure belongs to us?Defender EASM
What unknown domains/hosts/IP infrastructure exists?Defender EASM
What externally exposed vulnerabilities exist?Defender EASM
What attack paths involve external exposure?Defender CSPM + EASM integration

39. Permissions

Defender EASM uses Azure RBAC.

Current documentation identifies the following general roles:

Owner

An Owner can:

  • Create EASM resources
  • Delete resources
  • Edit resources
  • Manage inventory assets
  • Use EASM capabilities

Contributor

A Contributor can also create, delete, and edit EASM resources and inventory assets.

Reader

A Reader can:

  • View Defender EASM data

but cannot create, delete, or edit resources or inventory assets.

Exam tip

If the question says:

“The user only needs to view EASM data.”

Think:

Reader

If the user needs to modify inventory or resources:

Contributor or Owner, depending on the required scope and operation.


40. Current Defender CSPM Integration

A particularly important current-platform consideration is the integration between Defender EASM and Defender CSPM.

Microsoft currently describes external attack-surface-management functionality in Defender for Cloud as being provided through integration with Defender EASM.

The capability is included with the Defender CSPM plan by default and does not require a separate Defender EASM license or special configuration for that integrated capability.

This makes external attack-surface visibility part of a broader cloud-security-posture strategy.


41. Security Copilot Integration

Current Defender EASM also supports integration with Microsoft Security Copilot.

Security Copilot can be used to interact with Defender EASM data using natural-language prompts.

For example, security teams can ask questions about:

  • External attack surface
  • Critical risks
  • CVEs
  • SSL certificates
  • Exposed ports
  • Specific assets

It can also help with attack-surface curation, including working with labels, external IDs, and asset states.

For SC-500, however, the foundational concept remains:

EASM provides external attack-surface discovery and visibility.


42. Common EASM Misconceptions

Misconception 1: EASM is just another vulnerability scanner

Not exactly.

Vulnerability discovery is an important capability, but the primary purpose is to understand the external attack surface.


Misconception 2: EASM only scans Azure

Incorrect.

EASM is concerned with internet-facing infrastructure and can discover assets across an organization’s external digital environment rather than limiting itself to Azure resource types.


Misconception 3: Every discovered asset belongs to the organization

Incorrect.

Assets can be classified as:

  • Approved Inventory
  • Dependency
  • Monitor Only
  • Candidate
  • Requires Investigation

Misconception 4: Candidate means malicious

Incorrect.

Candidate means the relationship to the organization requires review.


Misconception 5: Dependency means the organization owns the infrastructure

Incorrect.

A dependency can be infrastructure owned by another organization but supporting the organization’s attack surface.


Misconception 6: EASM replaces Defender Vulnerability Management

Incorrect.

EASM and Defender Vulnerability Management provide complementary capabilities.


Misconception 7: EASM only looks at internal Azure inventory

Incorrect.

Its defining characteristic is the external, outside-in perspective.


Misconception 8: Private IP addresses can be used as discovery seeds

Incorrect.

Private IP addresses cannot be used as Defender EASM discovery seeds.


43. SC-500 Exam-Focused Comparison

ScenarioThink
Discover unknown public domainsDefender EASM
Discover unknown internet-facing hostsDefender EASM
Discover external IP infrastructureDefender EASM
Map relationships between known and unknown public assetsEASM discovery
Start discovery from a known domainDiscovery seed
Determine why an asset was associated with the organizationDiscovery chain
Asset ownership uncertainCandidate / Requires Investigation
Third-party infrastructure supporting an applicationDependency
Related but independently controlled organization infrastructureMonitor Only
Asset directly owned and managed by organizationApproved Inventory
Find vulnerabilities associated with externally exposed assetsDefender EASM
Scan Azure VM software for vulnerabilitiesDefender Vulnerability Management
Get cloud-resource inventoryDefender for Cloud Inventory
Use external attack-surface information for attack-path analysisDefender CSPM + EASM
View EASM information without modifying itReader
Modify EASM inventoryContributor/Owner
Use a private IP as a discovery seedNot supported

44. Key Takeaways

For the SC-500 exam, remember the following:

  1. Defender EASM provides an outside-in view of an organization’s internet-exposed attack surface.
  2. EASM uses discovery seeds as starting points.
  3. Discovery is recursive—Defender EASM follows observed relationships to discover additional infrastructure.
  4. Discovery seeds can include known domains, hosts, IP ranges, ASNs, email information, and WHOIS-related identifiers.
  5. Private IP addresses cannot be used as discovery seeds.
  6. EASM can discover assets such as domains, hosts, pages, IP addresses, IP blocks, ASNs, SSL certificates, and WHOIS-related information.
  7. Discovered assets are maintained in the Defender EASM inventory.
  8. Important asset states include:
    • Approved Inventory
    • Dependency
    • Monitor Only
    • Candidate
    • Requires Investigation
  9. A Candidate asset requires additional review before being treated as approved organizational infrastructure.
  10. A Dependency can be owned by a third party but still be relevant to the organization’s attack surface.
  11. The discovery chain helps explain why Defender EASM believes an asset is connected to the organization.
  12. EASM can surface vulnerabilities, CVEs, IP reputation information, SSL-related issues, and other security-hygiene concerns.
  13. EASM is not simply another name for Defender Vulnerability Management.
  14. Defender Vulnerability Management focuses primarily on vulnerability management for managed workloads/endpoints, whereas EASM emphasizes the organization’s externally observable attack surface.
  15. Defender EASM complements Defender for Cloud rather than replacing it.
  16. Current Defender CSPM functionality integrates external attack-surface management through Defender EASM without requiring a separate EASM license for that integrated capability.
  17. EASM findings can complement Defender CSPM attack-path analysis.
  18. The fundamental EASM question is:

“What can the internet see that belongs to our organization?”

  1. The fundamental vulnerability-management question is:

“What vulnerabilities exist on the systems we’re managing?”

  1. For the exam, remember:

Known asset → Discovery seed → Recursive discovery → External attack-surface inventory → Classify assets → Identify vulnerabilities/exposures → Prioritize risk → Remediate.


Practice Exam Questions

Question 1

A security team is concerned that developers may have deployed internet-facing applications that are not included in the organization’s official asset inventory. The team wants to discover unknown public-facing domains, hosts, and related infrastructure associated with the organization.

Which Microsoft solution is most appropriate?

A. Azure Policy

B. Microsoft Defender for Endpoint

C. Microsoft Defender External Attack Surface Management

D. Microsoft Sentinel

Answer: C

Explanation

A is correct. Defender EASM is specifically designed to provide an external, outside-in view of an organization’s internet-facing attack surface. Its recursive discovery capabilities can uncover previously unknown and unmonitored infrastructure connected to known organizational assets.

B is incorrect because Defender for Endpoint primarily provides endpoint protection, detection, and response capabilities.

C is incorrect because Azure Policy governs Azure resources and configurations rather than discovering an organization’s unknown public internet infrastructure.

D is incorrect because Sentinel is a SIEM/SOAR platform rather than an external attack-surface discovery service.


Question 2

An administrator wants to create a custom Defender EASM discovery group. The administrator has identified a known company-owned domain that should be used as the starting point for discovery.

What should the administrator configure?

A. A private IP address

B. A security recommendation

C. The company-owned domain as a discovery seed

D. An Azure Resource Graph query

Answer: C

Explanation

C is correct. A discovery seed is a known organizational asset that Defender EASM uses as a starting point for recursive discovery. Domains, hosts, IP ranges, and other supported identifiers can be used as seeds.

A is incorrect because private IP addresses cannot be used as Defender EASM discovery seeds.

B is incorrect because a security recommendation isn’t a discovery seed.

D is incorrect because Azure Resource Graph is used to query Azure resource information and isn’t the mechanism for defining EASM discovery seeds.


Question 3

Defender EASM discovers an IP address associated with a known corporate domain. The security team wants to understand why EASM determined that the IP address is related to the organization.

Which capability should the team examine?

A. Security baseline assessment

B. Discovery chain

C. Azure Policy compliance

D. CVSS score

Answer: B

Explanation

B is correct. The discovery chain provides information about the observed relationships between a discovery seed and a discovered asset. It helps security professionals understand why Defender EASM associated an asset with their organization.

A is incorrect because security baseline assessment evaluates machine configuration rather than EASM asset relationships.

C is incorrect because Azure Policy compliance doesn’t explain EASM discovery relationships.

D is incorrect because CVSS relates to vulnerability severity rather than asset discovery relationships.


Question 4

A Defender EASM discovery operation identifies an external host that appears to be related to the organization. However, the relationship isn’t strong enough for the asset to be automatically classified as part of the organization’s approved inventory.

What asset state should the security team expect?

A. Approved Inventory

B. Dependency

C. Monitor Only

D. Candidate

Answer: D

Explanation

D is correct. A Candidate asset has a relationship to known organizational assets but doesn’t have sufficient evidence to be automatically treated as approved inventory. It requires manual review to determine the appropriate classification.

A is incorrect because Approved Inventory indicates that the asset has been established as part of the organization’s owned attack surface.

B is incorrect because Dependency is used when infrastructure owned by another party supports the organization’s attack surface.

C is incorrect because Monitor Only is intended for relevant assets that aren’t directly controlled and aren’t necessarily technical dependencies.


Question 5

A company hosts its public web application with a third-party provider. Defender EASM identifies the third-party infrastructure as being directly associated with the company’s externally exposed application, but the company does not own the underlying hosting infrastructure.

How should this infrastructure generally be classified?

A. Candidate

B. Dependency

C. Approved Inventory

D. Requires Investigation

Answer: B

Explanation

B is correct. A Dependency represents infrastructure owned by a third party that directly supports the organization’s attack surface. Third-party hosting is a typical example.

A is incorrect because Candidate is primarily used when the relationship to the organization requires additional ownership validation.

C is incorrect because the scenario explicitly states that the organization does not own the infrastructure.

D is incorrect because the scenario provides sufficient information to establish that the infrastructure supports the organization’s attack surface as a third-party dependency.


Question 6

A security architect needs a tool that can provide an external view of the organization’s public-facing infrastructure and discover previously unknown hosts, domains, and IP addresses.

Which characteristic most directly distinguishes Defender EASM from a traditional cloud-resource inventory?

A. EASM begins with an outside-in perspective of internet-exposed infrastructure

B. EASM only inventories Azure virtual machines

C. EASM requires every discovered asset to be an Azure resource

D. EASM can only discover resources that are manually entered by administrators

Answer: A

Explanation

A is correct. The defining characteristic of EASM is its outside-in perspective. It starts with known external assets and recursively discovers related internet-facing infrastructure.

B is incorrect because EASM isn’t limited to Azure VMs.

C is incorrect because EASM discovers externally exposed infrastructure that does not necessarily correspond to Azure resource objects.

D is incorrect because the purpose of recursive discovery is precisely to identify infrastructure that administrators may not have manually entered.


Question 7

A security analyst wants to investigate whether a public IP address associated with an organization’s attack surface has previously been associated with suspicious or malicious activity.

Which Defender EASM capability should the analyst examine?

A. Discovery seed configuration

B. Asset state

C. Azure RBAC

D. IP reputation

Answer: D

Explanation

D is correct. Defender EASM provides an IP reputation view that can identify potential threats and suspicious activity associated with an IP address, including appearances on threat lists.

A is incorrect because discovery seeds determine where discovery starts.

B is incorrect because asset state describes how the organization categorizes an asset.

C is incorrect because Azure RBAC controls access to resources and data; it doesn’t provide IP reputation information.


Question 8

A security team wants to understand the difference between Defender EASM and Microsoft Defender Vulnerability Management.

Which statement is most accurate?

A. EASM is primarily an endpoint detection and response system, while Defender Vulnerability Management is primarily a SIEM.

B. EASM and Defender Vulnerability Management are identical capabilities with different names.

C. EASM focuses on discovering and understanding internet-facing attack-surface exposure, while Defender Vulnerability Management focuses on vulnerability management for managed workloads and endpoints.

D. Defender Vulnerability Management discovers unknown public domains, while EASM scans operating-system vulnerabilities on Azure VMs.

Answer: C

Explanation

C is correct. EASM’s primary purpose is to discover and understand an organization’s external attack surface, including unknown internet-facing infrastructure. Defender Vulnerability Management focuses on identifying, assessing, and prioritizing vulnerabilities on managed systems and endpoints.

A is incorrect because neither description is accurate.

B is incorrect because the two technologies serve complementary but distinct purposes.

D is incorrect because it reverses the primary responsibilities of the two technologies.


Question 9

An organization uses Defender CSPM and wants external attack-surface information to contribute to its overall cloud security posture and attack-path analysis.

Which integration should the organization use?

A. Defender EASM integration with Defender CSPM

B. Azure Bastion integration with Microsoft Sentinel

C. Azure Key Vault integration with Defender for Endpoint

D. Azure Policy integration with Defender Vulnerability Management

Answer: A

Explanation

A is correct. Defender EASM integrates with Defender CSPM to provide external attack-surface information that can contribute to security-posture analysis and attack-path analysis. The current Defender for Cloud implementation provides this external attack-surface capability through the Defender EASM integration.

B, C, and D are incorrect because those combinations do not provide the EASM external attack-surface integration described in the scenario.


Question 10

A security analyst has been given access to a Defender EASM resource. The analyst only needs to view the organization’s attack-surface information and must not be able to modify resources or inventory assets.

Which Azure RBAC role is most appropriate?

A. Owner

B. Contributor

C. Reader

D. Global Administrator

Answer: C

Explanation

C is correct. The Defender EASM documentation identifies the Reader role as providing the ability to view Defender EASM data without allowing the user to create, delete, or edit resources or inventory assets.

A is incorrect because Owner provides extensive management permissions beyond the analyst’s requirement.

B is incorrect because Contributor can create, delete, and edit EASM resources and inventory assets.

D is incorrect because Global Administrator is a Microsoft Entra directory role and is not the appropriate least-privilege choice for simply viewing Defender EASM data.


Final Word

For this exam objective, place some emphasis on discovery seeds → recursive discovery → inventory → asset states → vulnerabilities/exposure → risk prioritization. Those concepts are more important for the SC-500 exam than memorizing portal navigation. The distinction between Candidate, Dependency, Monitor Only, and Approved Inventory is especially worth studying because it lends itself naturally to scenario-based exam questions.


Go to the SC-500 Exam Prep Hub main page

Create and connect workspaces in Microsoft Sentinel (SC-500 Exam Prep)

This post is a part of the "SC-500: Implementing End-to-End Security Controls for Cloud and AI Workloads" Exam Prep Hub.
This topic falls under these sections:
Manage and monitor security posture (20–25%)
   --> Implement activity and event collection in Microsoft Sentinel
      --> Create and connect workspaces in Microsoft Sentinel

Note that there are 10 practice questions (with answers) at the end of each section to help you solidify your knowledge of the material. Also, there are 4 practice tests with 30 questions each available from the hub's main page below the exam topics section.

Introduction

Microsoft Sentinel is a cloud-native Security Information and Event Management (SIEM) platform that collects security data from cloud, on-premises, and other environments and uses that data for detection, investigation, threat hunting, and response.

A fundamental part of implementing Microsoft Sentinel is understanding its workspace architecture. Microsoft Sentinel is deployed to a Log Analytics workspace, which provides the underlying data store for the logs and events that Sentinel analyzes.

For the SC-500 exam, you should understand not only how to create a workspace, but also how to decide on an appropriate workspace architecture, how Microsoft Sentinel is connected to a workspace, how permissions affect access, and when multiple workspaces or tenants may be appropriate.

Microsoft’s current training module specifically identifies three core objectives for this area:

  • Describe Microsoft Sentinel workspace architecture.
  • Onboard a Microsoft Sentinel workspace to Microsoft Defender.
  • Manage a Microsoft Sentinel workspace in Microsoft Defender.

1. Understanding the Microsoft Sentinel Workspace

The most important concept to remember is:

Microsoft Sentinel is added to a Log Analytics workspace.

A Log Analytics workspace is an Azure resource that stores and organizes log data. Microsoft Sentinel adds SIEM capabilities to that workspace, allowing security teams to analyze the collected data and build security operations processes around it.

A simplified architecture looks like this:

                    Data Sources
                         |
          +--------------+--------------+
          |              |              |
       Azure          Microsoft      On-premises
      Resources       Services        Systems
          |              |              |
          +--------------+--------------+
                         |
                         v
                Data Connectors
                         |
                         v
              +----------------------+
              |  Log Analytics      |
              |     Workspace       |
              |                      |
              |  Logs / Events       |
              |  Tables              |
              |  Security Data       |
              +----------+-----------+
                         |
                  Microsoft Sentinel
                         |
          +--------------+--------------+
          |              |              |
       Analytics       Incidents      Hunting
         Rules                        & KQL
          |              |              |
          +--------------+--------------+
                         |
                  Investigation &
                     Response

The workspace therefore provides the underlying location for Sentinel data, while Sentinel supplies the security operations capabilities.

Microsoft’s current onboarding guidance confirms that Microsoft Sentinel must be added to a Log Analytics workspace. An existing Log Analytics workspace can be used, or a new one can be created before Sentinel is enabled.


2. Why Workspace Architecture Matters

The choice of workspace architecture can have a major impact on:

  • Security operations
  • Data isolation
  • Access control
  • Data residency
  • Regulatory requirements
  • Retention requirements
  • Cost
  • Administration
  • Cross-workspace monitoring
  • Cross-tenant operations

For many organizations, a single workspace is sufficient and simpler to manage.

However, there are circumstances in which multiple workspaces make sense.

Microsoft’s current deployment guidance recommends evaluating factors such as the number of tenants, compliance and data-storage requirements, access-control requirements, and the organization’s data sources before determining the appropriate architecture.

Example

Consider a company with three business divisions:

Contoso Corporation
|
+-----+-----+
| |
Finance Healthcare
| |
Workspace A Workspace B
+
|
Retail
|
Workspace C

The organization might decide to use separate workspaces because different divisions have:

  • Different regulatory requirements
  • Different data-retention requirements
  • Different security teams
  • Different access requirements

However, multiple workspaces introduce additional management complexity.

Exam Tip: If a question does not provide a compelling reason for multiple workspaces, do not automatically assume that multiple workspaces are the better design.


3. Single-Workspace Architecture

A single-workspace architecture places the organization’s Microsoft Sentinel data into one Log Analytics workspace.

For example:

Azure Resources
Microsoft 365
On-premises Servers
Network Devices
Third-party Applications
|
v
+-------------------------+
| Log Analytics Workspace |
| |
| Microsoft Sentinel |
+-------------------------+

Advantages

A single workspace can simplify:

  • Data management
  • KQL queries
  • Analytics rules
  • Incident investigation
  • Workbooks
  • Automation
  • Permissions
  • Administration

Microsoft currently recommends a single-workspace environment when practical, while recognizing that specific organizational requirements can justify multiple workspaces.

When it is especially attractive

A single workspace is often appropriate when:

  • The organization has a single Microsoft Entra tenant.
  • Security teams need centralized visibility.
  • Data does not need to be separated for regulatory reasons.
  • Different business units do not require strong data isolation.
  • A common retention strategy is acceptable.

4. Multiple-Workspace Architecture

Some organizations need multiple Log Analytics workspaces with Microsoft Sentinel enabled.

Examples include:

  • Large enterprises
  • Managed Security Service Providers (MSSPs)
  • Organizations with multiple Microsoft Entra tenants
  • Organizations with different regulatory boundaries
  • Organizations requiring different retention policies
  • Organizations requiring strong separation between business units

Microsoft supports cross-workspace and cross-tenant Sentinel architectures for these scenarios.

For example:

                 Central SOC
                     |
        +------------+------------+
        |            |            |
        v            v            v
   Workspace A  Workspace B  Workspace C
     Finance      Retail       Europe

The security operations team can maintain centralized visibility while allowing each environment to retain its own workspace.


5. Primary and Secondary Workspaces

Current Microsoft Sentinel architecture in the Microsoft Defender portal supports a primary workspace and multiple secondary workspaces for a tenant.

Microsoft defines a workspace in this context as a Log Analytics workspace with Microsoft Sentinel enabled.

This distinction is important because some tenant-level Microsoft security integrations operate through the primary workspace.

For example, in a multiple-workspace environment, the Microsoft Defender XDR connector is connected to the primary workspace. Certain standalone Microsoft security-product connectors are consequently handled differently in secondary workspaces to prevent duplicate tenant-based alerts.

Exam Tip

If a question asks about the primary workspace, think about the workspace that provides the central Sentinel context for the tenant, particularly for supported Microsoft security integrations.


6. Creating a Log Analytics Workspace

Before Microsoft Sentinel can be deployed, you need a Log Analytics workspace.

At a high level, the process is:

  1. Select the Azure subscription.
  2. Select or create a resource group.
  3. Specify the Log Analytics workspace name.
  4. Select an appropriate region.
  5. Configure the required workspace settings.
  6. Validate the configuration.
  7. Create the workspace.

Microsoft’s current onboarding process explicitly follows this model: create or select a Log Analytics workspace, choose its subscription/resource group and region, and deploy it before adding Microsoft Sentinel.

Workspace location matters

The workspace’s Azure region can matter for:

  • Data residency
  • Regulatory requirements
  • Performance
  • Organizational policies
  • Integration requirements

Therefore, selecting the region should be treated as an architectural decision rather than simply choosing the closest Azure region.


7. Adding Microsoft Sentinel to the Workspace

Once the Log Analytics workspace exists, Microsoft Sentinel can be added to it.

Conceptually:

Step 1
Create Log Analytics Workspace
|
v
Step 2
Add Microsoft Sentinel
|
v
Step 3
Configure Data Connectors
|
v
Step 4
Configure Security Content
|
v
Step 5
Begin Monitoring

The resulting relationship is:

Log Analytics Workspace
|
+-- Microsoft Sentinel
|
+-- Logs
+-- Tables
+-- Security Events
+-- Data

Microsoft’s current quickstart describes this as adding Microsoft Sentinel to an existing Log Analytics workspace.


8. Connecting a Workspace to Microsoft Defender

Microsoft Sentinel can be accessed and managed through the Microsoft Defender portal, providing a unified security operations experience.

For a single-workspace deployment, the prerequisite is a Log Analytics workspace with Microsoft Sentinel enabled, together with the appropriate permissions.

In the Defender portal, administrators can connect an existing Sentinel workspace.

The current workflow includes:

  1. Open the Microsoft Defender portal.
  2. Navigate to the Microsoft Sentinel settings.
  3. View the available Sentinel workspaces.
  4. Select the workspace.
  5. Connect the workspace.
  6. Where applicable, designate it as the primary workspace.

For current Defender-portal deployments, Microsoft describes a workspace as a Log Analytics workspace with Microsoft Sentinel enabled.


9. Azure Portal Versus Microsoft Defender Portal

This is an important current-state exam consideration.

Microsoft is transitioning Microsoft Sentinel toward the Microsoft Defender portal.

Microsoft currently states that after March 31, 2027, Microsoft Sentinel will no longer be supported in the Azure portal and will be available only through the Microsoft Defender portal. Microsoft also recommends that organizations using Sentinel in the Azure portal begin planning the transition.

Therefore, you may encounter documentation and questions involving both experiences during the transition.

The underlying architectural concept remains the same:

Microsoft Sentinel operates on top of a Log Analytics workspace.


10. Workspace Resource Groups

A resource group can be used to organize the Azure resources associated with Microsoft Sentinel.

For example:

Security Resource Group
|
+-- Log Analytics Workspace
|
+-- Microsoft Sentinel
|
+-- Supporting Security Resources
|
+-- Workbooks
|
+-- Other Sentinel Resources

Keeping Sentinel-related resources organized can simplify:

  • RBAC assignments
  • Resource management
  • Governance
  • Administration
  • Lifecycle management

Microsoft’s current unified security operations deployment guidance recommends placing Microsoft Sentinel-related resources in a common security resource group when appropriate and assigning Sentinel permissions at the resource-group level to simplify administration.


11. Microsoft Sentinel Roles and Permissions

Security teams should use Azure role-based access control (RBAC) to provide users with only the access they need.

Common Sentinel-specific roles include:

RoleGeneral purpose
Microsoft Sentinel ReaderView Sentinel resources and data
Microsoft Sentinel ResponderRespond to incidents and perform appropriate response actions
Microsoft Sentinel ContributorManage Sentinel resources and security content
Microsoft Sentinel Playbook OperatorManage or execute applicable playbook operations
Log Analytics ReaderRead Log Analytics data
Log Analytics ContributorManage Log Analytics resources and configurations

The exact permissions required depend on the operation being performed.

For example, an analyst who only needs to view Sentinel information should not automatically be given Contributor permissions.

Microsoft’s current guidance identifies the Microsoft Sentinel Reader role as the minimum Sentinel-specific permission for an analyst who only needs to view Microsoft Sentinel data.


12. Least Privilege Is Important

The principle of least privilege is particularly important in a SIEM because Sentinel can expose highly sensitive security information.

Consider these users:

UserAppropriate access
SOC analystReader or appropriate incident-response permissions
Incident responderResponder
Sentinel administratorContributor
Security architectPermissions based on required administrative duties
AuditorRead-only access

Avoid giving every security employee Contributor or Owner permissions.

Exam Tip: When a question asks how to give an analyst access while minimizing privileges, look for a read-oriented RBAC role, not Owner or Contributor.


13. Connecting Data Sources

Creating a workspace does not automatically populate it with security data.

You must configure data connectors to ingest data from the systems you want Microsoft Sentinel to monitor.

Examples include:

  • Azure resources
  • Microsoft Entra ID
  • Microsoft Defender products
  • Windows systems
  • Linux systems
  • Network devices
  • Third-party security products
  • Cloud platforms
  • Applications

Conceptually:

Microsoft Entra ID ----+
Azure Activity --------+
Microsoft Defender ----+
Windows ---------------+----> Microsoft Sentinel
Linux -----------------+
Firewall --------------+
Third-party Apps ------+

Data connectors establish the path by which security data enters the Sentinel environment.


14. Data Retention

Retention is another important workspace design consideration.

Organizations should determine how long security data needs to remain available for:

  • Threat investigation
  • Threat hunting
  • Incident response
  • Compliance
  • Forensics
  • Historical analysis

Retention requirements can differ between organizations and even between different categories of data.

Microsoft’s current Sentinel onboarding guidance notes that organizations should configure appropriate data-retention and archive policies in Azure Monitor Logs.

Important distinction

Do not confuse:

  • Workspace retention
  • Archive/long-term retention
  • Data ingestion
  • Data connector configuration

These are related but separate concepts.


15. Managing Multiple Tenants

Large organizations and MSSPs may need to monitor Sentinel workspaces across multiple Microsoft Entra tenants.

Azure Lighthouse can provide delegated management capabilities across tenants.

For example:

                    Central SOC
                        |
                  Azure Lighthouse
                        |
        +---------------+---------------+
        |               |               |
        v               v               v
    Tenant A         Tenant B        Tenant C
        |               |               |
    Sentinel         Sentinel        Sentinel
    Workspace        Workspace       Workspace

This can be useful for:

  • MSSPs
  • Global organizations
  • Organizations with multiple Entra tenants
  • Central security operations teams

Azure Lighthouse supports management of multiple Sentinel workspaces across tenants, including scenarios involving cross-workspace queries, workbooks, and security operations.


16. When Should You Use Multiple Workspaces?

A common exam scenario is determining whether an organization should use one workspace or several.

Consider multiple workspaces when there is a meaningful requirement such as:

Regulatory separation

Different jurisdictions may have different data requirements.

Different security boundaries

Separate business units may need strict separation.

Different retention requirements

One organization might require different retention periods for different data sets.

Multiple tenants

A global organization may operate multiple Microsoft Entra tenants.

MSSP scenarios

An MSSP may manage Sentinel environments belonging to multiple customers.

Data ownership

Different organizations or subsidiaries may need to maintain control over their own security data.

Microsoft’s current guidance highlights scenarios such as MSSPs, global SOCs, multiple tenants, granular access control, data privacy, and regulatory compliance as reasons a multiple-workspace architecture may be appropriate.


17. When Should You Avoid Multiple Workspaces?

Multiple workspaces introduce complexity.

They can complicate:

  • Queries
  • Analytics rules
  • Workbooks
  • Data management
  • Permissions
  • Administration
  • Investigations
  • Content deployment

Therefore, don’t create separate workspaces simply because different departments exist.

Instead, ask:

Is there a security, compliance, operational, or architectural reason to separate the data?

If the answer is no, a single workspace may be simpler.


18. Workspace Architecture Decision Matrix

RequirementLikely approach
Small organization with centralized SOCSingle workspace
One tenant and centralized securitySingle workspace
Different regulatory boundariesMultiple workspaces may be appropriate
Multiple Entra tenantsMultiple workspaces may be appropriate
MSSP managing customer environmentsMultiple workspaces/tenants
Different data-retention requirementsMultiple workspaces may be appropriate
Need strict business-unit isolationMultiple workspaces may be appropriate
No compelling separation requirementPrefer simpler single-workspace design

The important exam principle is:

Choose the simplest architecture that satisfies the organization’s requirements.


19. Workspace Manager

For organizations operating multiple Sentinel workspaces, Microsoft provides capabilities to manage workspaces at scale.

Workspace Manager can be used to centrally manage member workspaces and organize them into groups based on factors such as:

  • Business unit
  • Geography
  • Organizational structure
  • Other operational requirements

Microsoft’s current documentation describes onboarding member workspaces and organizing them into workspace-manager groups for centralized management.

This is different from simply creating multiple workspaces. The purpose is to make the resulting environment easier to manage consistently.


20. Multiple-Workspace Incident Management

Security teams may need to investigate incidents across multiple Sentinel workspaces.

Microsoft provides multiple-workspace capabilities for this purpose.

For example:

Workspace A ----+
Workspace B ----+----> Central SOC
Workspace C ----+
Workspace D ----+

Current multiple-workspace functionality allows security teams to view incidents from multiple workspaces and, where supported, across tenants. Microsoft currently documents a maximum of 100 concurrently displayed workspaces in the multiple-workspace incident view.

However, permissions still matter. A user needs the appropriate permissions on the workspaces involved in an operation.


21. Connecting Versus Ingesting Data

One of the most important conceptual distinctions is:

Connecting a workspace to Microsoft Sentinel is not the same thing as connecting a data source to Sentinel.

For example:

Log Analytics Workspace
|
+-- Microsoft Sentinel
|
+-- Data Connector: Azure Activity
+-- Data Connector: Entra ID
+-- Data Connector: Defender XDR
+-- Data Connector: Firewall

The workspace provides the foundation.

Data connectors bring security information into that foundation.

This distinction frequently appears in certification questions.


22. A Typical Deployment Sequence

A practical deployment can follow this sequence:

Step 1 — Plan the architecture

Determine:

  • Number of tenants
  • Number of workspaces
  • Data residency
  • Regulatory requirements
  • Retention
  • Access control
  • Security operations structure

Step 2 — Create or identify a Log Analytics workspace

Select:

  • Subscription
  • Resource group
  • Region
  • Workspace configuration

Step 3 — Enable Microsoft Sentinel

Add Microsoft Sentinel to the Log Analytics workspace.

Step 4 — Connect the workspace to Microsoft Defender

For organizations using the unified Defender experience, connect the workspace and configure its role in the Defender portal.

Step 5 — Configure permissions

Apply appropriate Azure RBAC roles.

Step 6 — Configure data connectors

Connect the required data sources.

Step 7 — Configure retention

Set appropriate retention and archive policies.

Step 8 — Deploy security content

Configure:

  • Analytics rules
  • Workbooks
  • Automation rules
  • Playbooks
  • Watchlists
  • Other Sentinel content

Step 9 — Validate data ingestion

Confirm that expected events are arriving in the workspace.


23. Common Mistakes

Mistake 1: Assuming Sentinel is a standalone Log Analytics replacement

It isn’t.

Microsoft Sentinel is added to a Log Analytics workspace.


Mistake 2: Creating a new workspace without evaluating existing ones

An organization may already have an appropriate Log Analytics workspace.

Creating unnecessary workspaces can increase operational complexity.


Mistake 3: Assuming one workspace is always correct

Single-workspace architecture is often simpler, but regulatory, organizational, tenant, or operational requirements can justify multiple workspaces.


Mistake 4: Giving analysts excessive permissions

An analyst who only needs to view data does not necessarily need Contributor or Owner permissions.


Mistake 5: Assuming that enabling Sentinel automatically collects all security data

Data connectors must be configured for the relevant data sources.


Mistake 6: Confusing workspace architecture with data connectors

Workspace architecture determines where Sentinel data is organized and managed.

Data connectors determine how particular data sources send data to Sentinel.


Mistake 7: Ignoring data residency

The workspace’s region can be an important architectural and compliance consideration.


24. Key Exam Comparisons

ConceptRemember
Log Analytics workspaceUnderlying workspace used by Sentinel
Microsoft SentinelSIEM/security operations capabilities
Data connectorBrings data from a source into Sentinel
Analytics ruleDetects patterns or conditions in data
IncidentSecurity case generated from alerts/detections
Single workspaceSimpler centralized architecture
Multiple workspacesUsed when separation or organizational requirements justify it
Primary workspaceCentral Sentinel workspace in supported Defender portal multi-workspace scenarios
Azure LighthouseHelps manage resources across tenants
RBACControls user access to Sentinel resources/data
RetentionDetermines how long data remains available
Defender portalCurrent unified experience for Microsoft security operations

25. Exam-Focused Scenario

Scenario

A multinational company has:

  • Three Microsoft Entra tenants
  • Separate security teams for each tenant
  • Different regulatory requirements
  • A central SOC that needs visibility across all environments

Which architecture is most appropriate?

The strongest answer would generally involve multiple Sentinel workspaces aligned with the tenant/security requirements, combined with centralized management capabilities.

Why?

Because the organization has legitimate architectural reasons for separation:

  • Multiple tenants
  • Different security boundaries
  • Regulatory requirements
  • Centralized SOC requirements

This is substantially different from a company with one tenant and one centralized security team that has no data-isolation requirements.


26. SC-500 Exam Tips

Exam Tip 1: Remember the relationship:

Log Analytics workspace → Microsoft Sentinel

Exam Tip 2: If the question asks where Sentinel stores/analyzes its collected log data, think Log Analytics workspace.

Exam Tip 3: If the question asks how data enters Sentinel, think data connectors.

Exam Tip 4: If the question asks whether to use one or multiple workspaces, look for requirements involving regulatory boundaries, data residency, access isolation, multiple tenants, MSSP operations, or different retention requirements.

Exam Tip 5: If the requirement is simply centralized security operations without a compelling separation requirement, a single workspace is often the simpler design.

Exam Tip 6: Remember that Microsoft Sentinel can be managed through the Microsoft Defender portal, and Microsoft’s current roadmap is moving Sentinel away from the Azure portal experience.

Exam Tip 7: Don’t confuse Azure Lighthouse with Microsoft Sentinel itself. Lighthouse provides delegated management capabilities across tenants; it is not the Sentinel data store.

Exam Tip 8: Apply least privilege. A user who only needs to view Sentinel data generally shouldn’t receive Contributor or Owner access.


27. Key Takeaways

The most important concepts to remember for the SC-500 exam are:

  1. Microsoft Sentinel is added to a Log Analytics workspace.
  2. A Log Analytics workspace provides the underlying location for Sentinel data.
  3. Sentinel provides SIEM and security operations capabilities on that data.
  4. Data connectors bring data from individual sources into Sentinel.
  5. A single workspace is often the simplest architecture.
  6. Multiple workspaces can be appropriate for regulatory, security, organizational, tenant, or operational reasons.
  7. Microsoft Defender supports managing Sentinel workspaces through its unified security operations experience.
  8. Azure Lighthouse can help manage Sentinel environments across multiple tenants.
  9. Azure RBAC should be used to implement least-privilege access.
  10. Workspace region, data retention, and data residency should be considered during architecture planning.
  11. Creating a workspace and configuring data connectors are separate activities.
  12. Current Microsoft Sentinel architecture supports primary and secondary workspace concepts in the Defender portal for applicable multi-workspace scenarios.
  13. Avoid unnecessary workspace proliferation because multiple workspaces increase operational complexity.

Practice Exam Questions

Question 1

A company is implementing Microsoft Sentinel for the first time. The security team wants to use an existing Azure Monitor Logs environment as the foundation for Sentinel.

What should the team use?

A. An existing Log Analytics workspace

B. An Azure Storage account

C. An Azure Key Vault

D. An Azure Data Explorer cluster

Answer: A

Explanation

Microsoft Sentinel is added to a Log Analytics workspace. The organization does not need to create a separate Sentinel-specific data store. An existing suitable Log Analytics workspace can be used.

Azure Storage, Key Vault, and Azure Data Explorer serve different purposes and are not the underlying workspace required for a standard Microsoft Sentinel deployment.


Question 2

An organization has one Microsoft Entra tenant, one centralized SOC, no special regulatory separation requirements, and no requirement for separate data-retention policies.

Which workspace architecture should the security architect consider first?

A. One workspace for every Azure subscription

B. One workspace for every department

C. A single Microsoft Sentinel workspace

D. A separate workspace for every data connector

Answer: C

Explanation

There is no stated requirement that justifies separating the environment. A single workspace generally provides a simpler architecture for centralized security operations.

Creating unnecessary workspaces increases administrative and operational complexity. Microsoft currently recommends a single-workspace environment when practical.


Question 3

A multinational organization has separate Microsoft Entra tenants for its European and North American operations. The organization also has different regulatory requirements governing security data in each environment.

What is the strongest reason to consider multiple Microsoft Sentinel workspaces?

A. To allow users to run different versions of KQL

B. To provide appropriate separation for tenant and regulatory requirements

C. To eliminate the need for data connectors

D. To prevent Microsoft Sentinel from using Log Analytics

Answer: B

Explanation

Multiple tenants and different regulatory requirements are legitimate reasons to consider multiple workspaces. Workspace architecture can provide separation of data, access, and operational boundaries while still allowing centralized security operations where appropriate.

The other answers incorrectly describe the purpose of multiple workspaces.


Question 4

A security administrator creates a new Log Analytics workspace but cannot find any security events in Microsoft Sentinel.

What should the administrator do next?

A. Create an Azure Storage account

B. Assign every analyst the Owner role

C. Configure the appropriate Microsoft Sentinel data connectors

D. Delete and recreate the Log Analytics workspace

Answer: C

Explanation

Creating the workspace and enabling Sentinel does not automatically cause every desired security data source to send data to Sentinel. The appropriate data connectors must be configured.

For example, Azure Activity data requires the corresponding connector and configuration to begin sending events to Sentinel.


Question 5

A security analyst only needs to view Microsoft Sentinel data and investigate information without administering Sentinel configuration.

Which approach best follows least-privilege principles?

A. Assign Azure Owner

B. Assign Microsoft Sentinel Reader

C. Assign Microsoft Sentinel Contributor

D. Assign Subscription Administrator

Answer: B

Explanation

The Microsoft Sentinel Reader role is designed for read access and is appropriate when the user needs to view Sentinel information without requiring broad administrative permissions.

Giving the analyst Owner, Contributor, or subscription-level administrative permissions would provide substantially more access than required. Microsoft’s current unified security operations guidance identifies Sentinel Reader as the minimum Sentinel-specific permission for an analyst who only needs to view Sentinel data.


Question 6

A company is deciding whether to create separate Sentinel workspaces for each business unit. All business units:

  • Use the same Microsoft Entra tenant.
  • Have the same regulatory requirements.
  • Use the same retention requirements.
  • Are monitored by the same SOC.

What should the architect generally do?

A. Prefer a single workspace unless another requirement justifies separation

B. Create a workspace for every business unit

C. Create a workspace for every data source

D. Create a workspace for every security analyst

Answer: A

Explanation

There is no stated requirement for data or security separation. A single workspace can simplify queries, administration, security operations, and data management.

Multiple workspaces should be introduced when there is a meaningful architectural reason, rather than simply because an organization has multiple departments.


Question 7

An MSSP needs to manage Microsoft Sentinel workspaces belonging to multiple customer Microsoft Entra tenants. The MSSP wants delegated cross-tenant management capabilities.

Which Azure service is most appropriate?

A. Azure Key Vault

B. Azure Policy

C. Microsoft Entra ID Protection

D. Azure Lighthouse

Answer: D

Explanation

Azure Lighthouse provides delegated management capabilities across Azure tenants and can be used to manage multiple Microsoft Sentinel environments at scale.

This is particularly relevant to MSSP scenarios in which a central SOC needs to manage Sentinel environments belonging to multiple customers.


Question 8

Which statement best describes the relationship between Microsoft Sentinel and a Log Analytics workspace?

A. Microsoft Sentinel replaces the Log Analytics workspace

B. A Log Analytics workspace is optional when Sentinel is deployed

C. Microsoft Sentinel is enabled on a Log Analytics workspace

D. Log Analytics is only used for storing archived Sentinel data

Answer: C

Explanation

Microsoft Sentinel is added to a Log Analytics workspace. The workspace provides the underlying environment for the data Sentinel analyzes.

This relationship is fundamental to Sentinel architecture and is one of the most important concepts to remember for the exam.


Question 9

An organization has several Sentinel workspaces because of regulatory and organizational requirements. The central SOC needs to monitor incidents across those workspaces.

Which capability is designed for this scenario?

A. Multiple-workspace capabilities

B. Azure Key Vault

C. Azure Bastion

D. Microsoft Defender Vulnerability Management

Answer: A

Explanation

Microsoft Sentinel provides multiple-workspace capabilities that allow security teams to work across multiple Sentinel workspaces. Current functionality supports viewing incidents across selected workspaces and, in supported scenarios, across tenants.

The other services address different security requirements.


Question 10

An organization has connected its Sentinel workspace to the Microsoft Defender portal. The security team now wants to start receiving logs from Microsoft Entra ID.

Which statement is correct?

A. Connecting the workspace automatically enables every available security data source

B. The appropriate data connector must be configured

C. A second Sentinel workspace must be created

D. Azure Lighthouse must be configured

Answer: B

Explanation

Connecting or onboarding the Sentinel workspace establishes the Sentinel environment, but individual data sources still need to be configured appropriately.

Data connectors provide the mechanisms for bringing data from services and applications into Microsoft Sentinel.

Therefore, the team should configure the appropriate Microsoft Entra ID data connector rather than create another workspace or configure Azure Lighthouse.


Go to the SC-500 Exam Prep Hub main page

Implement and configure Microsoft Entra Private Access (SC-500 Exam Prep)

This post is a part of the "SC-500: Implementing End-to-End Security Controls for Cloud and AI Workloads" Exam Prep Hub.
This topic falls under these sections:
Secure storage, databases, and networking (25–30%)
   --> Implement security for Azure network services
      --> Implement and configure Microsoft Entra Private Access


Note that there are 10 practice questions (with answers) at the end of each section to help you solidify your knowledge of the material. Also, there are 4 practice tests with 30 questions each available from the hub's main page below the exam topics section.

Overview

Microsoft Entra Private Access is a cloud-delivered, identity-centric Zero Trust Network Access solution that allows users to access private applications and network resources without requiring a traditional VPN. It uses the Global Secure Access client on user devices and private network connectors deployed inside the organization’s network.

Instead of granting a user broad network-level access after connecting to a VPN, Microsoft Entra Private Access allows administrators to define which private resources users can access and apply Microsoft Entra ID-based controls such as user and group assignments, Conditional Access, multifactor authentication, and device compliance requirements.

Microsoft Entra Private Access is particularly useful for:

  • Remote access to on-premises applications.
  • Access to private applications hosted in Azure or other cloud environments.
  • Replacing or reducing reliance on traditional remote-access VPNs.
  • Applying different access policies to different applications.
  • Implementing least-privilege access to internal resources.
  • Supporting hybrid and distributed workforces.

1. Understanding the Microsoft Entra Private Access Architecture

Microsoft Entra Private Access includes several major components.

Microsoft Entra ID

Microsoft Entra ID provides the identity and access control layer. It determines:

  • Which users and groups can access private resources.
  • Whether Conditional Access requirements are satisfied.
  • Whether multifactor authentication is required.
  • Whether the device must be compliant or managed.
  • Which private applications are available to the user.

Microsoft Entra Private Access does not simply trust a user because the user is connected to a corporate network. Access is evaluated using identity and policy.

Global Secure Access Client

The Global Secure Access client is installed on supported end-user devices. It identifies traffic destined for configured private resources and forwards that traffic to the Global Secure Access service.

The client is responsible for acquiring the appropriate traffic and establishing the secure connection to the service. At the time of the current implementation guidance, Windows is the primary client platform used in the Private Access configuration tutorials.

Global Secure Access Service

The Global Secure Access service receives traffic from the client and brokers access to the configured private resources. The service applies the applicable traffic-forwarding and access policies before sending traffic toward the private network.

Private Network Connector

A Private Network Connector is a lightweight agent installed on a Windows Server inside the organization’s network. It creates outbound connections to the Microsoft service and provides access to private resources that the connector server can reach.

The connector does not require inbound firewall ports to be opened for users on the internet. The connector initiates outbound communication to the service, which reduces the need to expose internal resources directly to the public internet.

Private Resources

Private resources can include:

  • Internal websites.
  • Remote Desktop Protocol servers.
  • SSH servers.
  • File shares.
  • Internal application servers.
  • Private IP addresses.
  • Fully qualified domain names.
  • Private applications hosted in on-premises or cloud networks.

The connector server must be able to resolve and reach the private resource through the organization’s internal network.


2. Microsoft Entra Private Access Versus a Traditional VPN

A traditional VPN generally provides network-level connectivity. Once connected, a user may receive access to a broad address range or subnet.

Microsoft Entra Private Access is designed to provide more granular, application-aware access.

Traditional VPNMicrosoft Entra Private Access
Often grants broad network accessGrants access to configured resources
Usually depends on VPN credentials or certificatesUses Microsoft Entra identity and policy
Frequently requires inbound VPN infrastructureUses outbound private network connectors
Access is commonly based on network locationAccess is based on identity, device, and policy
Can expose many internal routes after connectionCan restrict access to specific applications
Often requires separate VPN client infrastructureUses the Global Secure Access client

Microsoft Entra Private Access is not automatically a complete replacement for every VPN scenario. It is best suited to private application and resource access where identity-based, least-privilege access is preferred.


3. Quick Access and Per-App Access

Microsoft Entra Private Access provides two primary ways to define private resources:

  1. Quick Access.
  2. Global Secure Access applications, also called per-app access.

Quick Access

Quick Access is used to define a broad collection of private resources that should be routed through Microsoft Entra Private Access.

Administrators can configure:

  • Fully qualified domain names.
  • Individual IP addresses.
  • IP ranges.
  • Private subnets.

Quick Access is useful when an organization is beginning a VPN replacement project or needs to provide access to a broad set of internal resources.

However, Quick Access can provide wider access than is desirable in a mature Zero Trust environment. Microsoft recommends using Quick Access as a transition stage and moving toward more granular per-application access where practical.

Per-App Access

Per-app access uses a dedicated Microsoft Entra enterprise application to represent a specific private application or group of related application segments.

For example, an organization could create separate private applications for:

  • Human resources.
  • Finance.
  • Internal customer support.
  • Development environments.
  • Production administration.
  • Corporate file services.

Each application can have its own:

  • User and group assignments.
  • Connector group.
  • Application segments.
  • Conditional Access policies.
  • Access lifecycle.

Per-app access supports least privilege because a user can be granted access to one private application without automatically receiving access to other resources on the network.

Quick Access and Per-App Access Comparison

FeatureQuick AccessPer-App Access
ScopeBroad group of private resourcesSpecific application or application segment
Primary useVPN transition and broad private accessGranular Zero Trust access
Policy separationMore limitedStronger policy separation
Typical configurationFQDNs, IP addresses, and rangesEnterprise application segments
Least-privilege alignmentModerateStrong
Recommended long-term approachUse selectivelyPrefer where practical

4. Traffic Forwarding Profiles

Traffic forwarding profiles determine which traffic is captured and sent through Global Secure Access.

The Private Access traffic forwarding profile identifies traffic destined for configured private resources. Traffic is forwarded only when it matches the configured private access destinations.

The traffic-forwarding process evaluates traffic against the applicable profiles. Traffic that does not match the configured profiles is not automatically forwarded through Global Secure Access.

For Microsoft Entra Private Access, the administrator must configure both:

  1. The private resources that should be accessed.
  2. The Private Access traffic forwarding profile.

Enabling the Private Access profile alone does not grant access to every private resource. The destinations must also be configured through Quick Access or a Global Secure Access application, and the appropriate users or groups must be assigned.


5. Prerequisites

Before implementing Microsoft Entra Private Access, verify the following requirements.

Licensing

The Private Access profile requires:

  • Microsoft Entra ID P1 or P2.
  • Microsoft Entra Private Access or Microsoft Entra Suite.

The exact licensing requirements should be verified before deployment because licensing and feature availability can change.

Administrative Roles

Depending on the operation, administrators may require roles such as:

  • Global Secure Access Administrator.
  • Application Administrator.
  • Security Administrator.
  • Global Administrator for certain initial registration tasks.

Use the least-privileged administrative role that supports the required operation. Privileged Identity Management can be used to provide temporary elevation for administrative tasks.

End-User Device

The user device must:

  • Run a supported operating system.
  • Have the Global Secure Access client installed.
  • Have internet connectivity.
  • Be appropriately registered or joined to Microsoft Entra ID, depending on the deployment scenario.
  • Be assigned to the relevant traffic profile or application.

Connector Server

The connector server must:

  • Run a supported version of Windows Server.
  • Be able to make outbound connections to the required Microsoft service endpoints.
  • Allow outbound traffic over the required ports, commonly ports 80 and 443.
  • Resolve the private resource’s DNS name.
  • Reach the private resource through the internal network.
  • Have sufficient capacity for expected traffic.
  • Be monitored and maintained.

Private Resource

The target resource must be reachable from the connector server. If the connector cannot resolve or reach the resource, Microsoft Entra Private Access cannot successfully broker the connection.


6. Configure a Private Network Connector

A Private Network Connector is the bridge between the Global Secure Access service and the private network.

Step 1: Prepare the Connector Server

Select a Windows Server located in a network that can reach the private applications.

The server should have:

  • Reliable network connectivity.
  • DNS resolution for internal resources.
  • Outbound connectivity to Microsoft services.
  • Appropriate security hardening.
  • Monitoring and maintenance procedures.

The connector does not need to be placed in a perimeter network solely for security purposes. Because the connector initiates outbound connections, inbound access from the internet is not required.

Step 2: Install the Connector

In the Microsoft Entra admin center:

  1. Open Global Secure Access.
  2. Navigate to the connectors and sensors area.
  3. Download the Private Network Connector.
  4. Install the connector software on the Windows Server.
  5. Register the connector with the tenant.
  6. Verify that the connector appears as active.

The first connector registration may require Global Administrator permissions. Subsequent registrations can generally use more limited administrative roles, depending on the operation.

Step 3: Validate Connector Diagnostics

Use the connector diagnostics tools to verify:

  • Outbound connectivity.
  • Required service endpoint access.
  • DNS resolution.
  • Connector registration.
  • Connectivity to private resources.
  • Connector health.

A connector can appear registered while still being unable to reach the target application. Therefore, registration status alone is not sufficient validation.


7. Use Connector Groups for Segmentation and High Availability

Every connector belongs to a connector group. Connectors in the same group operate together for load balancing and high availability.

A connector group can be associated with specific applications or environments.

Examples include:

  • North America connector group.
  • Europe connector group.
  • Production connector group.
  • Development connector group.
  • Corporate data center connector group.
  • Azure-hosted application connector group.

Use connector groups to:

  • Keep traffic close to the target resources.
  • Separate production and nonproduction applications.
  • Improve application segmentation.
  • Simplify troubleshooting.
  • Reduce latency.
  • Provide redundancy.

Microsoft recommends using at least two connectors in a group for high availability. If one connector becomes unavailable, another connector in the group can continue serving the application.

Example

An organization has two internal applications:

  • A production finance application in the primary data center.
  • A development application in a separate network.

The organization can create:

  • A production connector group containing two connectors that can reach the finance application.
  • A development connector group containing two connectors that can reach the development application.

The production application is then associated only with the production connector group. This reduces the risk of routing production traffic through an inappropriate connector.


8. Configure Quick Access

Quick Access is appropriate when an organization needs to provide access to a broad set of internal resources.

A typical Quick Access implementation includes:

  1. Configure a private network connector.
  2. Create or select a connector group.
  3. Define private FQDNs, IP addresses, and ranges.
  4. Assign users and groups.
  5. Link Conditional Access policies.
  6. Enable the Private Access traffic forwarding profile.
  7. Install and configure the Global Secure Access client.
  8. Test access from an assigned device.

Quick Access should be configured carefully. Broad IP ranges can unintentionally provide access to more resources than intended.

Example

An organization wants remote employees to access:

  • intranet.contoso.com
  • files.contoso.com
  • 10.20.10.0/24

The administrator can define these destinations in Quick Access. However, the administrator should confirm that the subnet does not contain sensitive systems that should require separate authorization.


9. Configure Per-App Access

Per-app access provides a more granular alternative to broad Quick Access configuration.

Step 1: Create a Connector Group

Create a connector group containing connectors that can reach the target application.

Step 2: Create a Global Secure Access Enterprise Application

Create an enterprise application representing the private application.

Step 3: Configure Application Segments

Define the application’s private destinations, such as:

  • FQDNs.
  • IP addresses.
  • Ports.
  • Protocols.
  • Application-specific network segments.

The exact application segment options depend on the supported Private Access configuration.

Step 4: Assign Users and Groups

Assign only the users and groups that require access.

Avoid assigning all users by default unless broad access is explicitly required and approved.

Step 5: Configure Conditional Access

Apply policies that can require:

  • Multifactor authentication.
  • Compliant devices.
  • Approved client applications, where supported.
  • Specific user or group conditions.
  • Sign-in risk controls.
  • Location or network conditions.
  • Authentication strength.

Step 6: Enable Private Access and Test

Enable the Private Access traffic forwarding profile, install the Global Secure Access client, and verify that assigned users can access the application while unauthorized users cannot.

Per-app access allows network requests to be routed to the configured application segment without providing unrestricted access to other resources on the private network.


10. Configure Conditional Access

Conditional Access is a major security control for Microsoft Entra Private Access.

A Conditional Access policy can require users to satisfy conditions before accessing a private application.

Common requirements include:

  • Require multifactor authentication.
  • Require a compliant device.
  • Block access from risky sign-ins.
  • Restrict access to specific user groups.
  • Require an approved authentication strength.
  • Block legacy authentication scenarios.
  • Apply different policies to different private applications.

Example Policy

A company publishes an internal payroll application through Microsoft Entra Private Access.

The company creates a Conditional Access policy that:

  • Targets the payroll enterprise application.
  • Includes the payroll department group.
  • Requires multifactor authentication.
  • Requires a compliant device.
  • Blocks access when the sign-in risk is high.

This approach is more secure than allowing anyone connected to the corporate VPN to access the payroll application.

Important Distinction

Microsoft Entra Private Access provides network access to configured resources, but the application itself may still require its own authentication and authorization.

Private Access does not eliminate the need for:

  • Application-level permissions.
  • Database permissions.
  • File-system permissions.
  • Operating system security.
  • Resource-specific authorization.

Network access and application authorization are separate security layers.


11. Configure the Global Secure Access Client

After the administrator configures the service, the client must be installed on user devices.

The deployment process generally includes:

  1. Install the Global Secure Access client.
  2. Sign in with the user’s Microsoft Entra account.
  3. Confirm that the device is registered or joined as required.
  4. Verify that the user is assigned to the Private Access profile or application.
  5. Confirm that the client is running.
  6. Test access to a configured private resource.

The client forwards traffic only for destinations included in the applicable Private Access configuration. It does not automatically send all network traffic through Private Access.


12. Configure Private DNS

Private Access relies on correct name resolution when applications are accessed by FQDN.

For example, if an application is published as:

hrapp.contoso.com

the connector server must be able to resolve that name to the correct private IP address.

Verify:

  • The connector server uses the correct DNS servers.
  • Internal DNS zones are available.
  • Split-brain DNS is configured correctly, if used.
  • The FQDN in the application segment exactly matches the destination used by the client.
  • The resolved IP address is reachable from the connector server.

A common troubleshooting mistake is to verify DNS from the administrator’s workstation while failing to verify DNS from the connector server. The connector’s DNS resolution is what matters for the connection to the private resource.


13. Security Best Practices

Use Least Privilege

Assign access to specific users and groups rather than granting broad access to all users.

Prefer per-app access when the organization needs granular authorization.

Use Conditional Access

Require MFA and compliant devices for sensitive applications. Consider stronger authentication requirements for administrative resources.

Use Separate Connector Groups

Separate production, development, and geographically distinct resources into different connector groups.

Deploy Multiple Connectors

Use at least two connectors in each connector group to reduce the risk of service interruption.

Avoid Overly Broad Address Ranges

Do not publish an entire subnet if users only need access to one application.

Broad ranges can unintentionally expose unrelated systems.

Harden Connector Servers

Apply:

  • Security updates.
  • Endpoint protection.
  • Administrative access restrictions.
  • Monitoring.
  • Backup and recovery procedures.
  • Least-privilege local administration.

Monitor Access and Connector Health

Review:

  • Connector status.
  • Authentication events.
  • Application access.
  • Conditional Access results.
  • Failed connections.
  • DNS failures.
  • Network connectivity.
  • Unexpected access patterns.

Use PIM for Administrative Roles

Use Microsoft Entra Privileged Identity Management to provide just-in-time administrative access where appropriate. This reduces standing privilege for administrators.

Treat Private Access as One Security Layer

Private Access should be combined with:

  • Application authentication.
  • Resource authorization.
  • Network segmentation.
  • Endpoint security.
  • Data protection.
  • Logging and monitoring.

14. Troubleshooting Microsoft Entra Private Access

Problem: The Client Is Installed but Traffic Is Not Forwarded

Check:

  • Whether the Private Access profile is enabled.
  • Whether the user or group is assigned.
  • Whether the client is signed in.
  • Whether the destination matches a configured FQDN or IP address.
  • Whether the client is running the expected version.
  • Whether the device is properly registered.

Problem: The Connector Is Offline

Check:

  • Windows Server availability.
  • Connector service status.
  • Outbound ports 80 and 443.
  • Firewall and proxy configuration.
  • Required Microsoft service endpoints.
  • Connector diagnostics.
  • Server resource utilization.

Problem: The Connector Is Online but the Application Is Unreachable

Check:

  • DNS resolution from the connector server.
  • Routing from the connector server to the private resource.
  • Firewall rules.
  • Application listening ports.
  • Network security groups, if the resource is in Azure.
  • Whether the application is associated with the correct connector group.

Problem: Users Receive Access Denied

Check:

  • User and group assignments.
  • Conditional Access policies.
  • Device compliance status.
  • MFA requirements.
  • Application segment configuration.
  • Whether the user is using the correct Microsoft Entra account.

Problem: Only Some Applications Work

This may indicate:

  • An incomplete application segment.
  • Incorrect FQDNs or IP addresses.
  • Missing ports or protocols.
  • Different DNS behavior between applications.
  • The application is associated with the wrong connector group.
  • The connector can reach one application but not another.

Problem: The Application Works by IP Address but Not by Name

This usually indicates a DNS or name-matching issue.

Verify:

  • The FQDN is correctly configured.
  • The connector server can resolve the FQDN.
  • The application uses the same name configured in Private Access.
  • Internal DNS records are correct.

15. Common SC-500 Exam Traps

Trap 1: Enabling the Profile Grants Access to Everything

Incorrect. Enabling the Private Access traffic forwarding profile does not automatically grant access to every private resource. The destinations must be configured and the users must be assigned.

Trap 2: Private Access Requires Inbound Ports

Incorrect. Private Network Connectors initiate outbound connections to the Microsoft service. Inbound internet access to the connector is not required.

Trap 3: Quick Access Is Always the Best Long-Term Design

Incorrect. Quick Access is useful for broad access and VPN transition scenarios, but per-app access generally provides stronger segmentation and least-privilege control.

Trap 4: Connector Registration Guarantees Application Connectivity

Incorrect. The connector must also be able to resolve and reach the private resource.

Trap 5: Private Access Replaces Application Authorization

Incorrect. Private Access provides network access. The application, operating system, database, and file system may still enforce their own permissions.

Trap 6: One Connector Is Sufficient for Production

Incorrect. Use multiple connectors in a connector group for high availability.

Trap 7: All Private Traffic Is Automatically Forwarded

Incorrect. Traffic must match the configured Private Access destinations and applicable forwarding policies.

Trap 8: A Private Application Should Always Use the Default Connector Group

Incorrect. Dedicated connector groups can improve segmentation, routing, performance, and troubleshooting.


Practice Exam Questions

Question 1

An organization wants remote employees to access several internal applications without connecting to a traditional VPN. The organization wants access decisions to be based on Microsoft Entra users, groups, and Conditional Access policies.

Which solution should the organization implement?

A. Azure ExpressRoute only
B. Azure Bastion
C. Microsoft Entra Private Access with the Global Secure Access client
D. Azure Firewall without private application configuration

Correct answer: C

Explanation: Microsoft Entra Private Access provides identity-centric access to private resources through the Global Secure Access client and private network connectors. Azure Bastion is primarily used for secure management access to Azure virtual machines, while ExpressRoute and Azure Firewall do not independently provide this application access model.


Question 2

A security engineer is configuring Microsoft Entra Private Access. The engineer has enabled the Private Access traffic forwarding profile but users still cannot access an internal application.

What should the engineer configure next?

A. A public IP address for the internal application
B. A Quick Access configuration or Global Secure Access application containing the private destination
C. An inbound internet rule to the connector server
D. An Azure VPN gateway in every user’s network

Correct answer: B

Explanation: Enabling the traffic forwarding profile alone does not identify which private resources should be routed through Private Access. The administrator must configure the destination through Quick Access or a Global Secure Access application and assign the appropriate users or groups.


Question 3

An organization has two internal applications. One is hosted in the production data center, and the other is hosted in a development network. The security team wants to prevent the development connector from being used to access production applications.

What should the organization configure?

A. One connector group containing every connector
B. A separate Conditional Access policy for the Global Secure Access client only
C. Separate connector groups associated with the appropriate applications
D. A public load balancer for each application

Correct answer: C

Explanation: Connector groups allow administrators to associate applications with specific connectors. Separate groups can improve segmentation and help ensure that production applications use only connectors that can appropriately reach the production network.


Question 4

A company wants to provide access to one internal finance application but does not want users to access other systems on the same subnet.

Which configuration best supports this requirement?

A. Add the entire subnet to Quick Access
B. Assign all employees to the Private Access profile
C. Publish the entire data center through one connector group
D. Create a dedicated Global Secure Access application with a specific application segment

Correct answer: D

Explanation: Per-app access allows the organization to define a specific private application segment rather than granting broad subnet access. This supports least privilege and application-level segmentation.


Question 5

A Private Network Connector is registered and appears online. However, users cannot connect to an internal website through Microsoft Entra Private Access.

What should be checked first on the connector server?

A. Whether the connector server can resolve and reach the internal website
B. Whether the user has an Azure subscription
C. Whether the website has a public IP address
D. Whether the user has an Azure VPN Gateway

Correct answer: A

Explanation: The connector server must be able to resolve the private resource’s DNS name and reach the resource over the internal network. A registered connector can still be unable to access a specific application.


Question 6

An organization wants to require multifactor authentication and device compliance before users can access a private payroll application.

Which control should be used?

A. Conditional Access applied to the private application
B. A public network security group rule
C. A DNS forwarding rule
D. A connector server local firewall rule only

Correct answer: A

Explanation: Conditional Access can require MFA, compliant devices, and other conditions before access to the private application is permitted. Network and firewall rules alone do not provide identity-aware access decisions.


Question 7

An organization is deploying Microsoft Entra Private Access for a business-critical application. The organization wants the application to remain available if one connector server fails.

What should the organization do?

A. Install the connector on the user’s workstation
B. Publish the application through a public IP address
C. Use only Quick Access
D. Deploy multiple connectors in the same connector group

Correct answer: D

Explanation: Connectors in the same connector group provide load balancing and high availability. Deploying multiple connectors reduces the risk that a single connector failure will interrupt application access.


Question 8

Users can access an internal application by IP address but cannot access it by its fully qualified domain name.

What is the most likely issue?

A. The user must be assigned to Azure Firewall
B. The connector server cannot correctly resolve the application’s DNS name
C. The application requires an Azure VPN gateway
D. The Global Secure Access client only supports public DNS names

Correct answer: B

Explanation: When access works by IP address but not by name, DNS resolution or FQDN configuration is a likely cause. The connector server must be able to resolve the configured FQDN to the correct private address.


Question 9

An organization is beginning a VPN replacement project and needs to provide access to a broad set of internal resources while it develops a more granular Zero Trust design.

Which configuration is most appropriate as an initial transition?

A. Quick Access
B. Azure Bastion
C. Azure DDoS Protection
D. Microsoft Defender for Storage

Correct answer: A

Explanation: Quick Access can define a broad set of private FQDNs, IP addresses, and ranges. It is useful as a transition stage, although per-app access should be considered for more granular long-term segmentation.


Question 10

A security engineer wants to ensure that users assigned to Microsoft Entra Private Access cannot automatically access every application on the internal network.

Which statement is correct?

A. Private Access always grants full subnet access
B. The Global Secure Access client automatically bypasses Conditional Access
C. Private Access can route only configured destinations, and access still depends on assignments and policies
D. Private Access disables application-level authentication

Correct answer: C

Explanation: Microsoft Entra Private Access is destination-aware and identity-aware. Users must be assigned to the relevant profile or application, and Conditional Access policies can further restrict access. Private Access does not eliminate application-level authentication or authorization.


Key Takeaways

For the SC-500 exam, remember these core principles:

  • Microsoft Entra Private Access provides identity-centric access to private resources without requiring a traditional VPN.
  • The Global Secure Access client runs on user devices and forwards traffic for configured private destinations.
  • Private Network Connectors are installed inside the private network and initiate outbound connections.
  • Quick Access provides broad private resource access and is useful during VPN transition.
  • Per-app access provides more granular, least-privilege segmentation.
  • Connector groups support application association, geographic placement, segmentation, load balancing, and high availability.
  • Enabling the Private Access profile alone does not grant access to private resources.
  • Conditional Access can require MFA, compliant devices, and other access conditions.
  • The connector server must be able to resolve and reach the private resource.
  • Private Access provides network access but does not replace application-level authorization.
  • Multiple connectors should be deployed for production availability.
  • Avoid publishing unnecessarily broad IP ranges or subnets.

Go to the SC-500 Exam Prep Hub main page

Configure Azure Private Link services to secure access to network resources (SC-500 Exam Prep)

This post is a part of the "SC-500: Implementing End-to-End Security Controls for Cloud and AI Workloads" Exam Prep Hub.
This topic falls under these sections:
Secure storage, databases, and networking (25–30%)
   --> Implement security for Azure network services
      --> Configure Azure Private Link services to secure access to network resources


Note that there are 10 practice questions (with answers) at the end of each section to help you solidify your knowledge of the material. Also, there are 4 practice tests with 30 questions each available from the hub's main page below the exam topics section.

Introduction

This topic belongs to the Secure storage, databases, and networking section of the SC-500 exam, under Implement security for Azure network services.

The focus is on configuring Azure Private Link services so that consumers can access privately hosted applications or network resources without exposing those resources through a public endpoint.


What is Azure Private Link?

Azure Private Link provides private connectivity between a consumer’s virtual network and a service. Traffic travels through Azure’s private network rather than across the public internet.

Private Link supports two related scenarios:

  • Private endpoints allow consumers to privately access supported Azure platform as a service (PaaS) resources.
  • Private Link services allow service providers to publish their own applications or services privately to consumers.

A private endpoint is created in the consumer’s virtual network. It receives a private IP address from that virtual network and connects to a specific resource or Private Link service.

A Private Link service is created by the service provider and exposes an application running behind an Azure Standard Load Balancer. Consumers then create private endpoints in their own virtual networks to connect to that service.


What is an Azure Private Link service?

An Azure Private Link service is the provider-side component of Azure Private Link.

It enables an organization to publish an application or network service running in its own virtual network so that authorized consumers can access it privately from their own virtual networks.

For example, a company might operate a custom payment-processing application behind an internal Standard Load Balancer. Rather than requiring business partners to connect through a public IP address, the company can publish the application through a Private Link service.

The partners create private endpoints in their own virtual networks. Their applications then connect to the private endpoint’s IP address, while Azure privately transports the traffic to the provider’s service.

A Private Link service:

  • Is associated with an Azure Standard Load Balancer.
  • Uses a selected frontend IP configuration of that load balancer.
  • Provides a private connectivity path for consumers.
  • Can be accessed by private endpoints in different virtual networks.
  • Can support consumers from different subscriptions or Microsoft Entra tenants.
  • Allows the service provider to approve or reject connection requests.
  • Uses provider-side NAT IP addresses for traffic arriving at the service.

Private Link service architecture

A typical architecture contains the following components:

  1. Provider virtual network
    Contains the application or network resource being published.
  2. Backend application or service
    Runs on virtual machines, virtual machine scale sets, or other supported network resources.
  3. Azure Standard Load Balancer
    Distributes traffic to the backend application.
  4. Private Link service
    References the Standard Load Balancer frontend IP configuration.
  5. Consumer virtual network
    Contains the private endpoint used by the consumer application.
  6. Private endpoint
    Provides a private IP address in the consumer’s virtual network.
  7. Private DNS configuration
    Allows applications to resolve the service name to the private endpoint’s IP address when name-based access is required.

The simplified traffic flow is:

Consumer application
|
v
Private endpoint
(private IP in consumer VNet)
|
v
Azure Private Link
|
v
Provider Private Link service
|
v
Standard Load Balancer
|
v
Backend application

The consumer does not need direct network-level access to the provider’s virtual network. The private endpoint provides the connection boundary between the consumer and the published service.


Important distinction: Private Link service versus private endpoint

These terms are closely related but serve different roles.

ComponentPrimary purposeManaged by
Private Link servicePublishes a provider-owned service for private accessService provider
Private endpointProvides private access to a Private Link service or supported Azure resourceService consumer
Standard Load BalancerFronts and distributes traffic to the provider applicationService provider
Private DNS zoneResolves service names to private endpoint IP addressesUsually consumer or central network team

A common exam mistake is to assume that a Private Link service itself is the private IP address used by consumers. The consumer actually connects to the private endpoint, which has a private IP address in the consumer’s virtual network.


Requirements for an Azure Private Link service

For the standard Private Link service deployment model, the provider must have:

  • An application or service running in an Azure virtual network.
  • An Azure Standard Load Balancer.
  • A frontend IP configuration on that load balancer.
  • A subnet from which the Private Link service can obtain NAT IP addresses.
  • Appropriate permissions to create and manage the Private Link service.
  • A connection approval process for consumer requests.

Azure Private Link service is supported with Standard Load Balancer, not Basic Load Balancer. The standard load balancer backend pool must use network interfaces rather than IP-address-based backend configuration. Private Link service also supports IPv4 and TCP/UDP traffic in the standard deployment model.


How traffic is processed

When a consumer connects to a Private Link service:

  1. The consumer application connects to the private endpoint.
  2. The private endpoint forwards the traffic through Azure Private Link.
  3. The traffic reaches the provider’s Private Link service.
  4. The Private Link service performs destination-side NAT.
  5. The traffic is delivered to the selected frontend IP configuration of the Standard Load Balancer.
  6. The load balancer distributes the traffic to a healthy backend resource.

The provider normally sees incoming consumer traffic as originating from the Private Link service’s configured NAT IP address pool.

This is important because the provider should not assume that the original consumer IP address will always be visible to the backend application. If the application needs additional connection information, the provider may need to configure and process TCP Proxy Protocol version 2, where supported.


Configure an Azure Private Link service

Step 1: Prepare the provider application

The application must be reachable through an Azure Standard Load Balancer.

The provider should:

  • Deploy the application in a virtual network.
  • Create or identify the backend pool.
  • Configure a health probe.
  • Configure a load-balancing rule.
  • Select the frontend IP configuration that will receive Private Link traffic.
  • Confirm that the application is listening on the required port and protocol.

The load balancer frontend selected for the Private Link service is the entry point for traffic destined for the published service.


Step 2: Prepare the NAT subnet

A Private Link service requires a subnet for its NAT IP configurations.

The NAT IP addresses are used when traffic from consumers reaches the provider’s service. Microsoft recommends planning sufficient address capacity, with at least eight NAT IP addresses available in the subnet as a general recommendation for scalability.

The NAT subnet must be configured appropriately for Private Link service use. In particular, the subnet’s privateLinkServiceNetworkPolicies setting must be disabled for the subnet used by the Private Link service NAT configuration.

A dedicated subnet is not strictly required, but using a dedicated subnet can simplify:

  • Network security group management.
  • IP address planning.
  • Monitoring.
  • Troubleshooting.
  • Separation of provider networking components.

Step 3: Create the Private Link service

In the Azure portal, the general process is:

  1. Search for Private link services.
  2. Select Create.
  3. Select the subscription and resource group.
  4. Specify the region.
  5. Select the Standard Load Balancer.
  6. Select the load balancer frontend IP configuration.
  7. Select the source NAT subnet.
  8. Configure the required NAT IP settings.
  9. Configure access security and approval settings.
  10. Review and create the Private Link service.

The Private Link service must be deployed in the same region as the provider virtual network and Standard Load Balancer.

After creation, Azure provides an alias for the Private Link service. The provider can share this alias with consumers so that they can create private endpoints without requiring direct access to the provider’s subscription or resource hierarchy.


Private Link service aliases

A Private Link service receives a globally unique alias.

The alias can be shared with consumers who need to establish a connection. Consumers can use the alias or the resource ID when creating a private endpoint.

Using an alias is especially useful when:

  • The consumer is in another subscription.
  • The consumer is in another Microsoft Entra tenant.
  • The provider does not want to grant the consumer broad access to the provider’s Azure resources.
  • The service is offered to multiple customers or business partners.

The alias identifies the published Private Link service, but it does not automatically authorize every connection. The provider still controls connection visibility, approval, and access policies.


Control access to a Private Link service

A Private Link service provides private connectivity, but the provider must still control who can connect.

Connection approval

When a consumer creates a private endpoint connection, the provider can:

  • Approve the request.
  • Reject the request.
  • Leave the request pending until it is reviewed.

Manual approval is useful when the service is exposed to external organizations or cross-tenant consumers.

The provider should validate:

  • The consumer organization.
  • The consumer subscription.
  • The intended application.
  • The business relationship.
  • The requested access scope.
  • The expected network and security requirements.

A pending connection does not mean that the consumer has completed access. The provider must approve the connection before the private endpoint can use the service.


Automatic approval

Private Link service supports an auto-approval list based on subscriptions.

Subscriptions included in the auto-approval list can have their private endpoint connections approved automatically.

Automatic approval should be used carefully. It is appropriate only when the provider trusts the listed subscriptions and has a reliable process for managing the list.

For external consumers, manual approval is generally safer because it prevents an unexpected subscription from automatically connecting to the service.


Visibility settings

The provider can control which subscriptions are allowed to request connections.

This helps limit the exposure of the Private Link service and prevents arbitrary consumers from requesting access.

Visibility and auto-approval are different:

  • Visibility controls who can discover or request access.
  • Auto-approval controls which requests are approved automatically.
  • Connection approval determines whether a specific connection is allowed.

Private Link service and cross-tenant access

A Private Link service can be consumed by private endpoints in:

  • Different virtual networks.
  • Different subscriptions.
  • Different resource groups.
  • Different Microsoft Entra tenants.

This makes Private Link useful for:

  • Business-to-business applications.
  • Managed service providers.
  • SaaS platforms.
  • Shared services.
  • Centralized application platforms.
  • Partner integrations.

Cross-tenant connectivity should be governed carefully. The provider should use restricted visibility, explicit approval, least-privilege administrative roles, and clear ownership of DNS and network configuration.

Private Link does not eliminate the need for application authentication and authorization. A consumer that can connect to the service must still be authorized by the application itself.


DNS considerations

Private Link connectivity and DNS name resolution are separate concerns.

A consumer application may connect to a private endpoint by IP address, but most applications use a fully qualified domain name. The DNS name must resolve to the correct private endpoint IP address.

For Azure PaaS private endpoints, this is commonly handled through Azure Private DNS zones. For a custom Private Link service, the provider and consumer must agree on how the service name will resolve.

A typical DNS design may include:

  • A private DNS zone.
  • An A record that maps the service name to the private endpoint IP address.
  • A virtual network link to the consumer VNet.
  • DNS forwarding for on-premises or hybrid clients.

In hub-and-spoke or hybrid environments, Azure Private DNS Resolver can help forward DNS queries between on-premises networks and Azure without requiring custom DNS forwarder virtual machines.

DNS troubleshooting example

Suppose an application connects to:

orders.contoso.com

If the name resolves to a public IP address, the application may bypass the intended private endpoint.

The expected behavior is:

orders.contoso.com
|
v
Private endpoint IP address
|
v
Private Link service

Useful validation commands include:

nslookup orders.contoso.com

or:

dig orders.contoso.com

The result should be checked from the actual client network, not only from an administrator’s workstation.


Network security controls

Private Link is a network isolation mechanism, but it should be combined with other security controls.

Network security groups

Network security group support for private endpoint subnets is disabled by default. If the organization needs NSG rules to apply to private endpoint traffic, network policies must be enabled for the subnet.

NSGs can be used to restrict:

  • Which client subnets can reach the private endpoint.
  • Which ports are allowed.
  • Which protocols are allowed.
  • Which application security groups can communicate with the endpoint.

When NSG support is enabled, verify that the rules do not unintentionally block required Private Link traffic.

Application security groups can simplify NSG management by grouping private endpoints according to application or security function.


Route tables and firewalls

Private Link traffic should be tested with the organization’s routing and inspection architecture.

Depending on the design, the organization may use:

  • Network security groups.
  • Azure Firewall.
  • Network virtual appliances.
  • User-defined routes.
  • Azure Monitor.
  • Flow logs or equivalent network diagnostics.

Do not assume that all traffic will automatically traverse a centralized firewall. Private Link is a private connectivity service, and its traffic behavior must be evaluated against the organization’s routing and inspection requirements.


Disable public exposure where appropriate

Private Link provides a private access path, but it does not automatically disable public access to the provider application.

If the application should be accessible only through Private Link, the provider should:

  • Remove unnecessary public IP addresses.
  • Restrict public inbound access.
  • Configure the application firewall appropriately.
  • Use NSGs and load balancer rules to limit traffic.
  • Validate private connectivity.
  • Disable public network access where the service supports that setting.

For supported Azure PaaS resources, Microsoft recommends disabling public network access after private connectivity has been validated.

For a custom application behind a load balancer, the provider must secure the load balancer and backend application separately. Creating a Private Link service does not automatically secure every other path to the application.


Private Link does not replace identity security

A private connection does not automatically mean that the caller is trusted.

The application should still use appropriate authentication and authorization, such as:

  • Microsoft Entra authentication.
  • Managed identities.
  • Mutual TLS, where appropriate.
  • Application tokens.
  • Role-based authorization.
  • API keys or certificates when required by the application.
  • Tenant or customer-level authorization.

For example, a partner may successfully connect to a private endpoint but still be denied by the application because the partner does not have permission to access a particular API or dataset.

Private Link provides network-level privacy. It does not replace application-level access control.


Private Link does not replace encryption

Private Link keeps traffic on Azure’s private network path, but it does not automatically guarantee that the application protocol is encrypted.

The provider should still use:

  • HTTPS for web applications.
  • TLS for database connections.
  • Secure application protocols.
  • Valid certificates.
  • Strong cipher suites.
  • Appropriate certificate rotation procedures.

Private Link does not change the underlying encryption behavior of the application or service.


Monitoring and governance

Private Link services should be governed like other sensitive network resources.

Recommended controls include:

  • Azure Policy to audit or enforce Private Link configurations.
  • Resource locks to prevent accidental deletion.
  • Activity logs for creation, modification, approval, and deletion.
  • Monitoring of private endpoint connection states.
  • Monitoring of Standard Load Balancer health.
  • Monitoring of backend application availability.
  • Documentation of approved consumers.
  • Periodic review of visibility and auto-approval settings.
  • Alerts for unexpected connection requests.
  • Infrastructure-as-code deployment for repeatability.

A Private Link service can be deleted only after its associated private endpoint connections have been handled. Before deletion, the provider should reject or remove active connections and verify that dependent consumers have been notified.


Common configuration problems

The Private Link service cannot be created

Possible causes include:

  • The load balancer is a Basic Load Balancer.
  • The load balancer backend pool uses unsupported IP-based configuration.
  • The load balancer and Private Link service are in different regions.
  • The NAT subnet has incorrect network policy settings.
  • The selected frontend IP configuration is invalid.
  • The administrator lacks required permissions.

The consumer cannot connect

Check the following:

  • The private endpoint connection has been approved.
  • The private endpoint is in a connected state.
  • The consumer subnet has appropriate routing.
  • NSG rules allow the required traffic.
  • The application is listening on the expected port.
  • The Standard Load Balancer health probe is healthy.
  • The load-balancing rule points to the correct backend pool.
  • The provider firewall or application firewall is not blocking the traffic.
  • The DNS name resolves to the private endpoint IP address.

DNS resolves to a public address

Possible causes include:

  • The private DNS zone is missing.
  • The zone is not linked to the consumer VNet.
  • The client uses an on-premises DNS server that does not forward queries correctly.
  • The DNS record points to the wrong address.
  • DNS caching is returning an old result.
  • The application uses a hostname that is not configured for private resolution.

The backend sees unexpected source IP addresses

Private Link service traffic is normally translated through the provider’s NAT IP configuration.

The backend may therefore see the NAT IP address rather than the original consumer IP address.

If the application needs connection metadata, consider whether TCP Proxy Protocol version 2 is appropriate and supported for the deployment. Ensure that the application and load balancer configuration are compatible with the selected proxy protocol behavior.


Private Link service versus service endpoints

Private Link services and virtual network service endpoints are not the same.

FeaturePrivate Link serviceService endpoint
Primary purposePrivately publish a provider-owned serviceSecure access from a subnet to supported Azure services
Consumer connectionPrivate endpointService endpoint on a subnet
Consumer receives private IP for serviceYes, through the private endpointNo
Supports custom provider applicationsYes, behind Standard Load BalancerNo
Cross-tenant provider publishingSupportedNot the primary design
Resource-level mappingMaps to a specific Private Link serviceRestricts service access from a subnet
Public exposureCan provide private access without requiring public accessService remains a public Azure service endpoint
Typical useSaaS, partner services, custom applicationsStorage, SQL, and other supported Azure services

Service endpoints provide optimized connectivity from a subnet to supported Azure services and allow service-level network restrictions. Private Link is generally preferred when the requirement is to provide a private IP-based connection to a specific resource or service.


Exam-focused facts to remember

  • A Private Link service is the provider-side component.
  • A private endpoint is the consumer-side component.
  • A Private Link service normally requires an Azure Standard Load Balancer.
  • Basic Load Balancer is not supported.
  • The Private Link service references a load balancer frontend IP configuration.
  • Consumer traffic reaches the provider through the Private Link service’s NAT IP configuration.
  • The provider can approve or reject private endpoint connection requests.
  • Visibility and auto-approval settings control who can request or automatically receive access.
  • Private Link can support cross-subscription and cross-tenant consumers.
  • Private Link does not automatically disable public access.
  • Private Link does not replace application authentication.
  • Private Link does not replace TLS or application encryption.
  • DNS must resolve the application name to the private endpoint’s IP address.
  • NSG policies for private endpoint subnets are disabled by default.
  • The Private Link service NAT subnet requires appropriate private link service network policy settings.
  • A private endpoint connects to a specific published resource or service, not automatically to every resource in the provider’s environment.

Practice Exam Questions

Question 1

An organization hosts a custom application behind an Azure Standard Load Balancer. Business partners must access the application privately from their own virtual networks.

What should the organization create?

A. An Azure service endpoint on the provider subnet
B. An Azure Private Link service associated with the Standard Load Balancer
C. An Azure VPN gateway in the provider virtual network
D. A public load balancer with a public IP address

Answer: B

Explanation: An Azure Private Link service publishes a provider-owned application for private access. The service is associated with a frontend IP configuration of an Azure Standard Load Balancer. Consumers then create private endpoints in their own virtual networks.


Question 2

A company wants to publish an application through Azure Private Link service. The application is currently behind a Basic Load Balancer.

What should the company do?

A. Enable a service endpoint on the Basic Load Balancer
B. Add a public IP address to the Basic Load Balancer
C. Configure Azure Bastion for the application
D. Replace or migrate the Basic Load Balancer to a supported Standard Load Balancer

Answer: D

Explanation: Standard Azure Private Link service deployments require an Azure Standard Load Balancer. Basic Load Balancer is not supported.


Question 3

A consumer creates a private endpoint to connect to a provider’s Private Link service. The private endpoint connection remains in a pending state.

What is the most likely explanation?

A. The provider has not approved the private endpoint connection
B. The consumer must create a public IP address for the private endpoint
C. The provider must configure a service endpoint instead
D. The consumer must disable all NSGs in the provider virtual network

Answer: A

Explanation: Private endpoint connections to a Private Link service may require provider approval. Until the provider approves the request, the connection can remain pending.


Question 4

A Private Link service provider wants only approved subscriptions to be able to connect automatically. Other subscriptions must require manual review.

Which configuration should the provider use?

A. A route table on the provider subnet
B. A network security group on the load balancer
C. Visibility restrictions and an auto-approval subscription list
D. A public IP prefix attached to the consumer VNet

Answer: C

Explanation: Private Link service visibility controls which subscriptions can request access, while the auto-approval list identifies subscriptions whose requests can be approved automatically. Other requests can be reviewed manually.


Question 5

A provider creates a Private Link service and shares its alias with a partner in another Microsoft Entra tenant.

Which statement is correct?

A. The partner can create a private endpoint using the alias, subject to the provider’s connection controls
B. Cross-tenant private endpoints are not supported
C. The provider must give the partner Owner access to the provider subscription
D. The partner must deploy the Private Link service in the provider’s virtual network

Answer: A

Explanation: Private Link service supports consumers from different subscriptions and Microsoft Entra tenants. The provider can share the service alias without granting broad subscription access. The connection remains subject to visibility and approval settings.


Question 6

A provider wants to control traffic reaching private endpoints using network security groups. The private endpoints are located in a subnet where private endpoint network policies are disabled.

What should the provider do?

A. Enable public network access on the Private Link service
B. Replace the private endpoints with service endpoints
C. Add a public IP address to each private endpoint
D. Enable network policies for private endpoints in the subnet

Answer: D

Explanation: Network policies for private endpoints are disabled by default. They must be enabled on the subnet for NSG rules and supported route-table policies to apply to private endpoint traffic.


Question 7

A consumer application connects to a Private Link service by using a DNS name. The name resolves to a public IP address instead of the private endpoint’s IP address.

What should be investigated first?

A. Whether the provider has enabled TCP Proxy Protocol version 2
B. Whether private DNS records and virtual network links are configured correctly
C. Whether the provider has added a second Standard Load Balancer
D. Whether the consumer has configured a public IP prefix

Answer: B

Explanation: Private Link connectivity depends on correct name resolution. The DNS name should resolve to the private endpoint’s private IP address. Missing private DNS zones, missing VNet links, or incorrect hybrid DNS forwarding can cause the name to resolve publicly.


Question 8

Which statement best describes the source address seen by a backend application behind a Private Link service?

A. It is always the original public IP address of the consumer
B. It is always the private IP address of the consumer’s virtual machine
C. It normally appears to originate from the Private Link service’s NAT IP address pool
D. It is always the public IP address of the Standard Load Balancer

Answer: C

Explanation: Private Link service performs destination-side NAT, and consumer traffic normally appears to originate from the NAT IP configuration associated with the Private Link service.


Question 9

An organization creates a Private Link service for a sensitive application. The application is still reachable through another public load balancer frontend.

What is the best security conclusion?

A. Private Link automatically blocks all public access
B. The application is secure because private endpoints always require Microsoft Entra authentication
C. The public frontend is acceptable because Private Link encrypts all application traffic
D. The organization must separately restrict or disable the unnecessary public access path

Answer: D

Explanation: Creating a Private Link service does not automatically remove other access paths. Public load balancer frontends, public IP addresses, firewall rules, and application access controls must be secured separately.


Question 10

A provider wants to ensure that consumers connecting through Private Link are also authorized to use specific application functions.

Which control is required in addition to Private Link?

A. Application-level authentication and authorization
B. A second private endpoint in the provider VNet
C. A service endpoint on the consumer subnet
D. A public IP address for the backend application

Answer: A

Explanation: Private Link provides private network connectivity, but it does not determine whether a caller is authorized to use the application. The application must still enforce authentication and authorization, such as Microsoft Entra authentication, tokens, roles, certificates, or other appropriate controls.


Go to the SC-500 Exam Prep Hub main page

Implement and configure Azure Firewall (SC-500 Exam Prep)

This post is a part of the "SC-500: Implementing End-to-End Security Controls for Cloud and AI Workloads" Exam Prep Hub.
This topic falls under these sections:
Secure storage, databases, and networking (25–30%)
   --> Implement security for Azure network services
      --> Implement and configure Azure Firewall


Note that there are 10 practice questions (with answers) at the end of each section to help you solidify your knowledge of the material. Also, there are 4 practice tests with 30 questions each available from the hub's main page below the exam topics section.

Introduction

Azure Firewall is used to centrally inspect and control network traffic entering, leaving, and moving between Azure networks. The exam focus includes deploying Azure Firewall, configuring firewall policies and rules, routing traffic through the firewall, enabling threat protection, and selecting the appropriate firewall SKU.


What is Azure Firewall?

Azure Firewall is a fully stateful, managed network security service for Azure. It provides centralized traffic filtering and inspection without requiring the organization to deploy and maintain firewall virtual machines.

Azure Firewall can inspect:

  • North-south traffic, such as traffic entering or leaving Azure.
  • East-west traffic, such as traffic moving between Azure virtual networks or subnets.
  • Layer 3 and Layer 4 traffic using network rules.
  • Layer 7 application traffic using application rules.
  • Inbound traffic using destination network address translation (DNAT).
  • Traffic associated with known malicious IP addresses and domains through threat intelligence filtering.

Azure Firewall includes built-in high availability and automatically scales within the limits of the selected SKU and deployment architecture.


Azure Firewall deployment models

Azure Firewall can be deployed in two primary architectures.

Hub virtual network deployment

In a hub-and-spoke architecture:

  • Azure Firewall is deployed in a central hub virtual network.
  • Spoke virtual networks contain application workloads.
  • User-defined routes direct traffic from the spokes to the firewall.
  • The firewall inspects the traffic before forwarding it to the destination.

A common design is:

Spoke VNet A
|
| User-defined route
v
Hub VNet
Azure Firewall
|
v
Internet, on-premises, or another VNet

This model is useful when an organization wants centralized security controls for multiple virtual networks.

Secured virtual hub deployment

Azure Firewall can also be deployed in an Azure Virtual WAN secured virtual hub.

In this model:

  • Virtual WAN provides the hub networking architecture.
  • Azure Firewall provides centralized inspection.
  • Virtual WAN routing capabilities simplify traffic forwarding.
  • Azure Firewall Manager can centrally manage policies across secured virtual hubs.

A secured virtual hub is useful for larger environments that require centralized connectivity and security across branches, virtual networks, and hybrid locations.


Azure Firewall subnet requirements

For a traditional virtual network deployment, Azure Firewall must be placed in a dedicated subnet named:

AzureFirewallSubnet

The subnet must be at least /26. The subnet should not contain other resources.

The firewall subnet should be treated as an infrastructure subnet rather than an application subnet. Workload route tables should normally be associated with workload subnets, not with the firewall subnet, unless a documented forced-tunneling design requires otherwise.

Example hub virtual network

Hub VNet: 10.0.0.0/16
AzureFirewallSubnet: 10.0.0.0/26
GatewaySubnet: 10.0.1.0/27
Management subnet: 10.0.2.0/24

The actual address ranges depend on the organization’s network plan. The important exam concepts are that the firewall requires a dedicated subnet and that the subnet must provide sufficient address space.


Azure Firewall SKUs

Azure Firewall is available in three SKUs:

  • Basic
  • Standard
  • Premium

Azure Firewall Basic

Basic is intended for smaller environments with simpler requirements.

Important characteristics include:

  • Designed for small and medium-sized businesses.
  • Recommended for environments with estimated throughput up to approximately 250 Mbps.
  • Fixed scale capacity.
  • Threat intelligence alert mode only.
  • Does not provide the complete feature set available in Standard and Premium.

Azure Firewall Standard

Standard provides:

  • Stateful Layer 3–Layer 7 filtering.
  • Network and application rules.
  • Threat intelligence filtering.
  • Threat intelligence alert and deny mode.
  • Web categories.
  • FQDN filtering.
  • Centralized firewall policy management.

Azure Firewall Premium

Premium provides the advanced capabilities of Standard plus features such as:

  • Intrusion detection and prevention system (IDPS).
  • TLS inspection.
  • URL filtering.
  • Additional advanced threat protection capabilities.

Premium should be selected when the organization needs deeper inspection of encrypted traffic or advanced signature-based threat detection.

SKU selection summary

RequirementAppropriate choice
Small environment with basic firewall requirementsBasic
Standard centralized network and application filteringStandard
Threat intelligence alert and deny modeStandard or Premium
IDPSPremium
TLS inspectionPremium
Advanced URL filteringPremium
Web categoriesStandard or Premium

The exact available features and limitations should always be checked against the current SKU comparison because Azure Firewall capabilities can change.


Azure Firewall versus network security groups

Azure Firewall and network security groups (NSGs) provide different types of protection.

FeatureAzure FirewallNetwork security group
ScopeCentralized network security serviceSubnet or network interface
InspectionLayer 3–Layer 7, depending on rule typePrimarily Layer 3–Layer 4
FQDN filteringSupportedNot a general equivalent
Centralized policySupportedDistributed across subnets and interfaces
Threat intelligenceSupportedNot built in as a comparable firewall feature
Application rulesSupportedNot supported
DNATSupportedNot supported
Typical purposeCentralized inspection and egress/inbound controlBasic segmentation and traffic filtering

NSGs should still be used for subnet and network-interface-level segmentation. Azure Firewall should be used when centralized inspection, application filtering, threat intelligence, or DNAT is required.

These services are complementary rather than mutually exclusive.


Azure Firewall rule types

Azure Firewall policies organize rules into three main categories:

  1. DNAT rules
  2. Network rules
  3. Application rules

DNAT rules

DNAT rules control inbound traffic arriving through a firewall public IP address.

A DNAT rule translates a public destination IP address and port into a private destination IP address and port.

For example:

Internet client
|
| Firewall public IP: 203.0.113.10:443
v
Azure Firewall DNAT
|
| Translated destination: 10.2.1.10:443
v
Internal web server

DNAT rules are useful when publishing an internal application through a firewall public IP address.

A DNAT rule normally specifies:

  • Source address.
  • Destination firewall public IP.
  • Destination port.
  • Protocol.
  • Translated destination address.
  • Translated destination port.

DNAT should be used carefully because it creates an inbound access path into the network. The organization should restrict source addresses whenever possible and ensure that the destination application has its own authentication and authorization controls.


Network rules

Network rules operate at the network and transport layers.

They can filter traffic based on:

  • Source IP address.
  • Destination IP address.
  • Source IP group.
  • Destination IP group.
  • Protocol.
  • Destination port.
  • Fully qualified domain name, where supported with the appropriate DNS configuration.

Typical examples include:

  • Allowing TCP traffic from an application subnet to a database server on port 1433.
  • Allowing UDP DNS traffic to an approved DNS server.
  • Allowing HTTPS traffic to a specific destination IP.
  • Blocking traffic between two application segments.

Network rules are appropriate when the requirement is based on IP addresses, ports, or protocols rather than the content or URL of an application request.


Application rules

Application rules operate at Layer 7 and can filter outbound or east-west traffic based on application-level information.

They can use:

  • HTTP.
  • HTTPS.
  • Fully qualified domain names.
  • URLs.
  • Web categories, depending on the SKU and configuration.

For example, an application rule can allow a workload to access:

https://api.contoso.com

while denying access to other internet destinations.

Application rules are useful for controlling web traffic based on the destination hostname rather than only on destination IP addresses.


Firewall policy structure

An Azure Firewall Policy is a top-level resource containing firewall security and operational settings.

The policy hierarchy is:

Firewall Policy
|
+-- Rule collection group
|
+-- Rule collection
|
+-- Individual rules

Rule collection groups

Rule collection groups are the first level processed by the firewall. They have priorities that determine their processing order.

The default rule collection groups are:

Rule collection groupDefault priority
Default DNAT100
Default Network200
Default Application300

Custom rule collection groups can be created with custom priorities. When custom groups are used to define processing logic, the organization should plan the priority order carefully and avoid creating confusing overlaps between default and custom groups.

Rule collections

A rule collection belongs to a rule collection group and contains rules of the same type.

Each rule collection has:

  • A collection type.
  • A priority.
  • An action, such as allow or deny.

The action applies to the rules in the collection.

Individual rules

Individual rules define the actual traffic conditions, such as:

  • Source.
  • Destination.
  • Protocol.
  • Port.
  • FQDN.
  • URL.
  • Web category.

Rules within a collection are evaluated in a top-down manner. If no rule allows the traffic, the traffic is denied by default.


Rule processing order

Azure Firewall processes traffic according to the firewall policy hierarchy.

At a high level:

  1. Threat intelligence filtering is evaluated.
  2. DNAT rules are processed for applicable inbound traffic.
  3. Network rules are evaluated.
  4. Application rules are evaluated.
  5. Traffic that is not allowed is denied by default.

Threat intelligence rules are processed before NAT, network, and application rules.

The exact processing behavior can vary based on traffic type and rule configuration, so administrators should avoid relying only on the apparent order of rules in the portal. They should understand the rule collection group priorities and test the resulting behavior.


Default deny behavior

Azure Firewall uses a default-deny approach.

If traffic does not match an applicable allow rule, it is denied.

This supports a least-privilege network design:

  1. Identify the required traffic.
  2. Create narrowly scoped allow rules.
  3. Avoid broad source and destination ranges.
  4. Deny unnecessary traffic.
  5. Monitor denied traffic.
  6. Add exceptions only when justified.

A common mistake is to create a broad allow rule such as:

Source: Any
Destination: Any
Protocol: Any
Port: Any
Action: Allow

Such a rule defeats much of the value of centralized firewall filtering and should be avoided unless there is a carefully documented reason.


Threat intelligence filtering

Azure Firewall can use Microsoft threat intelligence feeds to identify traffic associated with known malicious:

  • IP addresses.
  • Fully qualified domain names.
  • URLs.

Threat intelligence can operate in different modes:

  • Off.
  • Alert only.
  • Alert and deny.

In alert-only mode, the firewall generates alerts but does not block the matching traffic.

In alert and deny mode, the firewall blocks matching traffic and generates alerts.

Basic supports alert mode only, while Standard and Premium support alert and deny mode. Threat intelligence rules are evaluated before NAT, network, and application rules.

Threat intelligence allowlist

False positives can occur. Azure Firewall supports an allowlist for approved IP addresses or ranges.

The allowlist should be managed carefully. Adding an address to the allowlist bypasses threat intelligence filtering for that address, so entries should be:

  • Justified.
  • Documented.
  • Reviewed periodically.
  • Removed when no longer required.

DNS proxy and FQDN filtering

FQDN-based filtering depends on reliable DNS resolution.

Azure Firewall can provide DNS proxy functionality so that clients use the firewall for DNS resolution. This helps ensure that the firewall and the client use consistent DNS answers when evaluating FQDN-based rules.

DNS proxy is especially important when:

  • Network rules use FQDNs.
  • Application rules depend on hostname resolution.
  • Private DNS zones are used.
  • DNS responses differ between clients and the firewall.
  • The organization uses custom DNS servers.

Without a consistent DNS design, a rule may appear correct but fail because the client or firewall resolves the destination differently.

Azure Firewall can also use:

  • FQDN tags for commonly required Azure and Microsoft services.
  • Service tags in network rules.
  • FQDN filtering in network rules when the required DNS proxy configuration is enabled.

Managed tags reduce the need to manually maintain changing Microsoft service IP ranges.


Routing traffic through Azure Firewall

Creating a firewall does not automatically cause all workload traffic to pass through it.

The organization must configure routing.

User-defined routes

In a hub-and-spoke architecture, a route table can direct traffic from a spoke subnet to the firewall’s private IP address.

For example:

Address prefix: 0.0.0.0/0
Next hop type: Virtual appliance
Next hop IP: Azure Firewall private IP

This route directs internet-bound traffic through the firewall.

Additional routes may be required for:

  • Traffic between spoke virtual networks.
  • Traffic to on-premises networks.
  • Traffic to other regions.
  • Traffic to private endpoints.
  • Forced-tunneling scenarios.

Important routing considerations

When configuring routes:

  • Avoid routing loops.
  • Ensure return traffic has a valid path.
  • Verify that peering settings support the intended architecture.
  • Confirm that the firewall can reach the destination.
  • Avoid associating workload routes with the firewall subnet unless required by the design.
  • Test both directions of communication.

A firewall rule cannot permit traffic that never reaches the firewall. Conversely, routing traffic through the firewall does not guarantee that the firewall will allow it.

Both routing and firewall policy must be correct.


Inbound traffic and DNAT

To publish an internal service through Azure Firewall:

  1. Assign a public IP address to the firewall.
  2. Create a DNAT rule.
  3. Specify the public destination port.
  4. Specify the private translated destination address.
  5. Specify the translated destination port.
  6. Ensure the backend application is reachable.
  7. Restrict source addresses where possible.
  8. Monitor the resulting traffic.

Example:

Public firewall IP: 203.0.113.20
Public port: 443
Private server IP: 10.2.1.20
Private port: 443
Protocol: TCP

The firewall translates traffic destined for 203.0.113.20:443 to 10.2.1.20:443.

The backend server should not be considered secure merely because it is behind DNAT. It should still use:

  • Host-based firewall rules.
  • NSGs.
  • Secure configuration.
  • Application authentication.
  • TLS.
  • Patching.
  • Monitoring.

Outbound traffic and SNAT

Azure Firewall can perform source network address translation (SNAT) for outbound traffic.

This allows internal workloads to access external destinations through the firewall’s public IP address.

High-volume outbound workloads can exhaust available SNAT ports. To address this, organizations can consider:

  • Additional firewall public IP addresses.
  • Azure NAT Gateway integration, where supported by the deployment architecture.
  • NAT Gateway V2 for appropriate zone-redundant designs.

NAT Gateway should not be combined with secured virtual hub firewalls in architectures where that combination is unsupported. SNAT capacity should be planned based on the number of concurrent outbound connections and the behavior of the workloads.


Forced tunneling

Forced tunneling routes internet-bound traffic through an on-premises security appliance or another centralized inspection path instead of allowing the firewall to send it directly to the internet.

Forced tunneling may be required when:

  • Corporate security appliances must inspect internet traffic.
  • Internet access must originate from on-premises.
  • Regulatory requirements require centralized egress.
  • The organization uses a hybrid security architecture.

Azure Firewall forced tunneling uses a management network interface and a dedicated:

AzureFirewallManagementSubnet

This separates firewall management traffic from customer traffic.

Forced tunneling must be designed carefully because incorrect routes can interrupt firewall management or create routing loops.


TLS inspection

Azure Firewall Premium supports TLS inspection.

TLS inspection allows the firewall to decrypt, inspect, and re-encrypt supported encrypted traffic so that security controls can evaluate traffic that would otherwise remain encrypted.

TLS inspection requires:

  • Azure Firewall Premium.
  • Appropriate certificate configuration.
  • Certificate storage and management, commonly using Azure Key Vault.
  • Correct client trust configuration.
  • Careful handling of applications that use certificate pinning or do not support interception.

TLS inspection should be used only where justified because it introduces additional complexity and can affect privacy, compatibility, and performance.

Private connectivity alone does not make encrypted inspection unnecessary. If the security requirement is to inspect HTTPS content, TLS inspection or an equivalent application-layer control may be required.


IDPS in Azure Firewall Premium

Azure Firewall Premium includes a signature-based intrusion detection and prevention system.

IDPS can identify suspicious or malicious network activity using Microsoft-managed signatures.

Organizations can:

  • Detect known attack patterns.
  • Block high-confidence threats.
  • Tune signature behavior.
  • Investigate alerts.
  • Reduce false positives.
  • Monitor attack attempts against workloads.

IDPS is particularly useful when the organization needs more than basic IP, port, protocol, and hostname filtering.


Web categories and URL filtering

Azure Firewall Standard and Premium support web category filtering.

Web categories allow administrators to control access to groups of websites, such as:

  • Gambling.
  • Social networking.
  • Malware.
  • Adult content.
  • Streaming media.
  • Newly registered domains.

Premium provides additional URL filtering capabilities.

Web categories can reduce administrative effort compared with maintaining large lists of individual domains. However, category-based filtering should be combined with threat intelligence, application rules, and an acceptable-use policy.


Azure Firewall Manager

Azure Firewall Manager provides centralized management for Azure Firewall policies.

It can be used to:

  • Create and manage firewall policies.
  • Apply common rules to multiple firewalls.
  • Manage firewalls across subscriptions.
  • Manage firewalls in virtual networks.
  • Manage firewalls in secured virtual hubs.
  • Establish policy inheritance.

A parent policy can contain common organizational rules, while child policies can add environment-specific rules.

For example:

Parent policy
|
+-- Block known malicious destinations
+-- Require threat intelligence
+-- Allow approved DNS
|
+-- Child policy: Production
| +-- Production-specific rules
|
+-- Child policy: Development
+-- Development-specific rules

Policy inheritance can improve consistency, but administrators must understand how parent and child settings interact before deploying changes to production.


Monitoring Azure Firewall

Azure Firewall should be monitored continuously.

Useful monitoring sources include:

  • Azure Monitor metrics.
  • Diagnostic settings.
  • Log Analytics.
  • Resource logs.
  • Azure Activity Log.
  • Firewall Policy Analytics.
  • Microsoft Defender for Cloud.
  • Microsoft Sentinel.

Important events to monitor include:

  • Allowed traffic.
  • Denied traffic.
  • DNAT traffic.
  • Threat intelligence detections.
  • IDPS alerts.
  • Policy changes.
  • Firewall configuration changes.
  • Backend connectivity failures.
  • Unexpected outbound destinations.
  • SNAT port exhaustion.
  • Firewall health and capacity.

Diagnostic logs should be sent to an appropriate Log Analytics workspace when centralized investigation and correlation are required.


Azure Policy and governance

Azure Policy can help enforce organizational requirements for Azure Firewall.

Examples include policies that:

  • Require threat intelligence to be enabled.
  • Require multi-Availability Zone deployment.
  • Require Firewall Policy Analytics.
  • Restrict firewall configurations.
  • Require encrypted traffic.
  • Identify virtual networks that should have Azure Firewall deployed.
  • Encourage migration from classic rules to Firewall Policy.

Azure Policy can use effects such as:

  • Audit.
  • Deny.
  • DeployIfNotExists.
  • Modify.

A policy should be tested in audit mode before using deny in production, especially when existing deployments may not comply with the new requirement.


Security best practices

Use a centralized policy

Use Firewall Policy rather than maintaining inconsistent classic rules across individual firewalls.

Apply least privilege

Allow only the required:

  • Sources.
  • Destinations.
  • Ports.
  • Protocols.
  • FQDNs.
  • URLs.

Enable threat intelligence

Use alert and deny mode when supported and appropriate.

Use Premium when advanced inspection is required

Choose Premium when the organization needs:

  • IDPS.
  • TLS inspection.
  • Advanced URL filtering.

Enable DNS proxy for relevant FQDN filtering

Ensure that the firewall and clients use a consistent DNS resolution path.

Use NSGs in addition to Azure Firewall

NSGs provide local segmentation and defense in depth.

Secure management access

Limit who can:

  • Create firewalls.
  • Modify policies.
  • Add public IP addresses.
  • Change DNAT rules.
  • Approve network changes.
  • Configure threat intelligence exceptions.

Use Microsoft Entra ID, Azure RBAC, privileged identity management, and just-in-time administrative access where appropriate.

Protect firewall configuration

Use:

  • Azure Policy.
  • Resource locks.
  • Infrastructure as code.
  • Change control.
  • Activity logs.
  • Policy versioning.
  • Backup and recovery procedures.

Avoid unnecessary public exposure

Do not publish internal services through DNAT unless there is a documented business requirement. When inbound publication is necessary, restrict source addresses and secure the backend service.


Common troubleshooting scenarios

Traffic is not reaching the firewall

Check:

  • The workload subnet’s route table.
  • The next-hop IP address.
  • Virtual network peering.
  • Effective routes.
  • Return routing.
  • Network security groups.
  • Whether the traffic type is supported by the intended route.

Traffic reaches the firewall but is denied

Check:

  • Rule collection group priority.
  • Rule collection priority.
  • Source and destination values.
  • Protocol and port.
  • FQDN resolution.
  • Threat intelligence mode.
  • Whether the rule is in the correct rule collection type.
  • Whether a deny rule is evaluated first.

FQDN rules do not work

Check:

  • DNS proxy configuration.
  • DNS server settings.
  • DNS forwarding.
  • Firewall DNS resolution.
  • Whether the application uses the expected hostname.
  • Whether the destination is resolved to changing IP addresses.

DNAT does not work

Check:

  • Firewall public IP address.
  • DNAT rule.
  • Translated destination address.
  • Translated port.
  • Backend service availability.
  • NSG rules.
  • Operating system firewall.
  • Load balancer configuration.
  • Return routing.

Clients cannot access the internet

Check:

  • Default route.
  • Firewall application or network rules.
  • DNS resolution.
  • SNAT configuration.
  • Firewall public IP availability.
  • Threat intelligence detections.
  • NAT port exhaustion.
  • Forced-tunneling routes.

Firewall management becomes unavailable

Check:

  • Forced-tunneling configuration.
  • Management subnet.
  • Management route.
  • Network security rules.
  • Firewall subnet changes.
  • User-defined routes applied to infrastructure subnets.

Common exam traps

  • Azure Firewall is stateful; NSGs are not a replacement for centralized firewall inspection.
  • Creating Azure Firewall does not automatically route traffic through it.
  • A route to the firewall does not automatically allow traffic.
  • A firewall rule does not help if routing bypasses the firewall.
  • DNAT is used for inbound destination translation.
  • SNAT is used for outbound source translation.
  • Application rules are Layer 7 rules.
  • Network rules are primarily Layer 3 and Layer 4 rules.
  • Threat intelligence is processed before NAT, network, and application rules.
  • Basic supports threat intelligence alert mode only.
  • Premium is required for IDPS and TLS inspection.
  • FQDN filtering depends on correct DNS behavior.
  • The firewall subnet must be dedicated and named AzureFirewallSubnet.
  • A private connection does not eliminate the need for TLS or application authentication.
  • Azure Firewall and NSGs are complementary controls.
  • Firewall Policy provides centralized organization of rule collection groups, rule collections, and rules.
  • Azure Firewall Manager can manage policies across multiple firewalls and secured virtual hubs.
  • Public DNAT exposure must be secured separately from the firewall configuration.

Practice Exam Questions

Question 1

An organization has three spoke virtual networks and wants all internet-bound traffic from the spokes to be centrally inspected.

What should the organization configure?

A. A service endpoint on each spoke subnet
B. A user-defined route from each spoke subnet to the Azure Firewall private IP address
C. A public IP address on each virtual machine
D. A network security group allowing outbound internet traffic

Answer: B

Explanation: Azure Firewall does not automatically receive all workload traffic. User-defined routes can direct traffic from spoke subnets to the firewall’s private IP address for inspection.


Question 2

A company needs to inspect encrypted HTTPS traffic and detect malicious network patterns using signature-based detection.

Which Azure Firewall SKU should it select?

A. Basic
B. Standard
C. Basic with threat intelligence enabled
D. Premium

Answer: D

Explanation: Azure Firewall Premium provides advanced capabilities including TLS inspection and IDPS. Basic and Standard do not provide the complete set of Premium inspection features.


Question 3

A security administrator wants to allow an application subnet to access only api.contoso.com over HTTPS.

Which rule type is most appropriate?

A. Application rule
B. DNAT rule
C. Network security group rule only
D. Resource lock

Answer: A

Explanation: Application rules operate at Layer 7 and can filter HTTP and HTTPS traffic using fully qualified domain names.


Question 4

An administrator creates an allow rule for outbound traffic, but the traffic never reaches Azure Firewall.

What is the most likely cause?

A. Routing does not direct the traffic through the firewall
B. The firewall policy contains an application rule
C. Threat intelligence is enabled
D. The firewall is stateful

Answer: A

Explanation: Firewall rules apply only to traffic that reaches the firewall. A route table or other routing configuration must direct the workload traffic to the firewall.


Question 5

A company wants to publish an internal web server through an Azure Firewall public IP address.

Which configuration should be used?

A. DNAT rule
B. Application rule
C. Service endpoint
D. Private DNS zone only

Answer: A

Explanation: DNAT rules translate traffic arriving at a firewall public IP address to a private destination address and port.


Question 6

An organization wants Azure Firewall to block traffic to known malicious IP addresses and domains rather than only generate alerts.

Which configuration is required?

A. Threat intelligence disabled
B. Threat intelligence alert-only mode
C. A network security group on the firewall subnet
D. Threat intelligence alert and deny mode on Standard or Premium

Answer: D

Explanation: Alert and deny mode blocks traffic associated with known malicious destinations. Basic supports alert mode only, while Standard and Premium support alert and deny mode.


Question 7

A firewall application rule uses an FQDN, but traffic is not consistently filtered because the firewall and clients receive different DNS responses.

What should the administrator investigate?

A. DNS proxy and DNS forwarding configuration
B. DNAT port translation
C. Resource locks
D. The firewall’s public IP prefix

Answer: A

Explanation: FQDN filtering depends on consistent DNS resolution. DNS proxy can help ensure that the firewall and clients use consistent DNS answers.


Question 8

Which rule type should be used to allow TCP traffic from an application subnet to a database server on port 1433?

A. Application rule
B. DNAT rule
C. Network rule
D. Threat intelligence rule

Answer: C

Explanation: Network rules filter traffic using network and transport information such as source, destination, protocol, and port.


Question 9

An organization needs to manage firewall policies across multiple subscriptions and secured virtual hubs.

Which service should it use?

A. Azure Bastion
B. Azure Private DNS
C. Azure Network Watcher
D. Azure Firewall Manager

Answer: D

Explanation: Azure Firewall Manager provides centralized management of Azure Firewall policies across supported firewall deployments, including virtual network firewalls and secured virtual hubs.


Question 10

A company wants to require that all Azure Firewall policies have threat intelligence enabled.

Which service is best suited to enforce this requirement consistently?

A. Azure Policy
B. Azure Load Balancer
C. Azure VPN Gateway
D. Azure Private Link

Answer: A

Explanation: Azure Policy can audit or deny noncompliant Azure Firewall configurations and can be used to enforce organizational security standards such as enabling threat intelligence.


Go to the SC-500 Exam Prep Hub main page

Identify overexposure of data in SharePoint (SC-500 Exam Prep)

This post is a part of the "SC-500: Implementing End-to-End Security Controls for Cloud and AI Workloads" Exam Prep Hub.
This topic falls under these sections:
Secure compute (20–25%)
   --> Implement security for AI
      --> Identify overexposure of data in SharePoint


Note that there are 10 practice questions (with answers) at the end of each section to help you solidify your knowledge of the material. Also, there are 4 practice tests with 30 questions each available from the hub's main page below the exam topics section.

Overview

SharePoint is commonly used to store documents, collaboration content, business records, and information accessed by Microsoft 365 Copilot and other AI applications. Although SharePoint permissions determine what users can access, poorly configured permissions and sharing links can expose information to a much broader audience than intended.

For the SC-500 exam, security engineers should understand how to use Microsoft Purview Data Security Posture Management for AI, SharePoint data access governance reports, and related SharePoint controls to identify potentially overshared content and prioritize remediation.

The central security principle is:

AI applications generally respect the permissions of the user making the request. However, if SharePoint content is incorrectly shared with a broad audience, that content may become available to Copilot or other authorized AI experiences through the user’s existing access.


What Is SharePoint Data Overexposure?

Data overexposure occurs when information is accessible to more people, groups, applications, or AI experiences than the organization intended.

Overexposure can result from:

  • Excessive SharePoint site permissions.
  • Broad Microsoft 365 group membership.
  • Broken permission inheritance.
  • Sharing links that are too permissive.
  • Files shared with Everyone.
  • Files or sites shared with Everyone except external users.
  • Anonymous or “Anyone” links.
  • Content shared with large internal groups.
  • Former employees or inappropriate groups retaining access.
  • Sensitive files stored in broadly accessible collaboration sites.
  • Inadequate review of site ownership and permissions.

Oversharing does not necessarily mean that a file is publicly available on the Internet. A file shared with Everyone except external users may be accessible to every authenticated user in the organization, which can still represent a significant security risk.


Why SharePoint Overexposure Matters for AI

Microsoft 365 Copilot and other AI experiences can use organizational content that the current user is authorized to access. Copilot does not need a separate permission assignment to every document. Instead, it can use the user’s existing Microsoft 365 permissions.

This creates an important relationship:

  1. A SharePoint file is shared with a broad audience.
  2. A user receives access through that broad permission.
  3. The user asks Copilot a question.
  4. Copilot may use the accessible content when generating a response.

Therefore, an organization may unintentionally expose sensitive information through AI without directly configuring Copilot to share that information.

Examples include:

  • Human resources documents shared with all employees.
  • Financial forecasts accessible to a broad department.
  • Customer records stored in a site with excessive membership.
  • Legal documents shared through an “Anyone” link.
  • Executive meeting notes accessible through a large internal group.
  • Confidential project files inherited from a parent site.

The security issue is usually not that Copilot bypasses SharePoint security. The issue is that the underlying SharePoint permissions are too broad.


Microsoft Purview Data Security Posture Management for AI

Microsoft Purview Data Security Posture Management for AI, often abbreviated as DSPM for AI, helps organizations identify risks involving sensitive data and AI usage.

For SharePoint, DSPM can help security teams:

  • Discover potentially overshared content.
  • Identify sites containing sensitive information.
  • Review sharing links and permission exposure.
  • Understand how data may be used as AI grounding data.
  • Prioritize remediation.
  • Apply sensitivity labels.
  • Notify site owners.
  • Remove inappropriate sharing links.
  • Track and review data exposure over time.

The relevant DSPM capability is the data risk assessment. Microsoft Purview provides default assessments and allows administrators to create custom assessments for selected users or SharePoint sites.


Accessing Data Risk Assessments

A typical workflow is:

  1. Open the Microsoft Purview portal.
  2. Navigate to Data Security Posture Management.
  3. Select Discover.
  4. Open Data risk assessments.
  5. Select the Microsoft 365 assessment area.
  6. Review an existing assessment or create a custom assessment.
  7. Examine potentially overshared sites and items.
  8. Prioritize remediation based on sensitivity and exposure.

The default assessment automatically runs weekly for the top SharePoint sites based on usage. Custom assessments can be used when the organization needs to evaluate particular sites, users, or business areas.


Default and Custom Data Risk Assessments

Default assessments

Default assessments provide a recurring view of oversharing risks in frequently used SharePoint sites.

They are useful for:

  • Establishing an initial baseline.
  • Finding high-usage sites with potential exposure.
  • Identifying sites that should be reviewed before or during Copilot deployment.
  • Monitoring common oversharing patterns.

The default assessment is not a guarantee that every risky file in the organization has been identified. It focuses on the supported scope of the assessment and its scanning limits.

Custom assessments

Custom assessments allow an administrator to target specific:

  • SharePoint sites.
  • Users.
  • Business units.
  • Sensitive data locations.
  • High-risk collaboration areas.

Custom assessments are useful when:

  • A department is preparing to deploy Copilot.
  • A site contains regulated information.
  • A security incident involves a specific location.
  • A business owner requests a permission review.
  • A previous assessment identifies a high-risk site.
  • The organization wants to validate remediation.

After a custom assessment runs, results may take time to become available. Assessment results should therefore not be treated as real-time permission telemetry.


Potentially Overshared Items

For supported Microsoft 365 assessments, Purview can identify items that are potentially overshared based on sharing links for:

  • External users.
  • Anonymous users.
  • Broadly accessible audiences.

The item-level results can show information such as:

  • The potentially overshared item.
  • The SharePoint site containing the item.
  • The item owner.
  • The applied sensitivity label.
  • The type of sharing link or exposure identified.

This allows security teams to investigate individual files rather than reviewing every document in a site manually.

Important distinction

A potentially overshared item is not automatically confirmed to be a security incident.

For example:

  • A public marketing brochure may legitimately use an “Anyone” link.
  • A confidential financial forecast should not normally use an “Anyone” link.
  • A project file may be intentionally shared with external partners.
  • A file may have an overly broad link but contain no sensitive information.

The correct response is to evaluate the item’s business purpose, sensitivity, audience, and sharing method.


SharePoint Data Access Governance Reports

SharePoint provides Data access governance reports that help administrators understand how broadly content is exposed.

These reports are available through the SharePoint admin center and can be used alongside Purview assessments.

Important report categories include:

  • Site permissions across the organization.
  • Site permissions for selected users.
  • Sites and files shared through special SharePoint groups.
  • Sensitivity labels applied to files.
  • Sharing links activity.
  • Content shared with Everyone except external users.

These reports provide a broader governance view than an individual file’s sharing dialog.


Site Permissions Across the Organization

The organization-wide site permissions report provides a snapshot of permission exposure across SharePoint and OneDrive sites.

Useful information can include:

  • Approximate file count.
  • Number of items with unique permissions.
  • Number of “People in your organization” links.
  • Number of “Anyone” links.
  • Number of permissions granted to Everyone except external users.
  • Number of permissions granted to Everyone.
  • Site sensitivity label information.

This report helps identify sites with:

  • Large numbers of users.
  • Many unique permissions.
  • Extensive use of broad sharing links.
  • Large amounts of content with weak access boundaries.

A site with many unique permissions may be difficult to govern because access is granted individually at many levels. A site with many broad links may be easier to use but more difficult to secure.


Site Permissions for a Specific User

The site permissions for users report helps determine which sites a particular user can access and how that access is granted.

Access may be granted:

  • Directly to the user.
  • Through a SharePoint group.
  • Through a Microsoft 365 group.
  • Through another group.
  • Through site membership.
  • Through item-level permissions.

This report is useful for questions such as:

  • Which SharePoint sites can this employee access?
  • Does the user have access to sensitive sites unrelated to their role?
  • Is access direct or inherited through a group?
  • Does a user retain access after changing departments?
  • Can a privileged or high-risk account access excessive content?

This is especially important when investigating insider-risk concerns, inappropriate access, or the potential impact of a compromised account.


Everyone and Everyone Except External Users

Everyone

The Everyone group represents an extremely broad audience. Depending on the context, content shared with Everyone may be accessible to a very large population.

Files containing confidential information should generally not be shared with Everyone unless the organization has explicitly approved that exposure.

Everyone except external users

The Everyone except external users group, often abbreviated EEEU, includes users inside the organization but excludes external users.

Although this group does not include external guests, it can still expose information to all internal users.

Examples of potentially risky content include:

  • Employee compensation information.
  • Internal investigations.
  • Strategic planning documents.
  • Security architecture.
  • Customer information.
  • Unreleased product plans.
  • Legal or regulatory material.

The EEEU report identifies sites and files where this group is used as a permission recipient. These permissions may be assigned at different levels, including sites, libraries, folders, and files.


Sites and Files Shared Through Special SharePoint Groups

The special-groups report is useful when the security team needs to identify the exact items affected by permissions granted to:

  • Everyone.
  • Everyone except external users.

The report can identify:

  • The affected site.
  • The affected file or folder.
  • The permission level.
  • The permission hierarchy.
  • The parent group through which access was granted.

This is more actionable than simply knowing that a site is overshared. It allows administrators to create a targeted cleanup plan or use scripting to address the affected permissions.


Sharing Links That Can Cause Overexposure

SharePoint supports several types of sharing links.

Anyone links

An Anyone link can allow access without requiring the recipient to authenticate with an organizational account.

Depending on the configuration, an Anyone link may allow:

  • Viewing.
  • Editing.
  • Downloading.
  • Sharing with others.

Anyone links should be carefully controlled because the link may be forwarded beyond the original intended audience.

People in your organization links

A People in your organization link can make content available to authenticated users in the organization.

This may be appropriate for general internal communications but risky for sensitive content.

Specific people links

A Specific people link is more restrictive because it is intended for named recipients.

However, administrators should still review:

  • Whether the recipients are correct.
  • Whether the recipients still need access.
  • Whether the link allows editing.
  • Whether the content should have a sensitivity label.
  • Whether the link has been forwarded or replaced.

The presence of a sharing link is not automatically a problem. The security risk depends on the link type, content sensitivity, intended audience, and organizational policy.


Activity Reports

Snapshot reports show the current or baseline state of permissions. Activity reports help identify recent sharing behavior.

Important activity reports include:

  • Sharing links created recently.
  • Content shared with Everyone except external users.
  • Sites with unusually high sharing activity.

Activity reports can help detect emerging risks before they become widespread.

For example, a site may not currently have a large number of overshared files, but a sudden increase in Anyone links could indicate:

  • A change in business process.
  • A new collaboration project.
  • User misunderstanding.
  • An inappropriate sharing practice.
  • A compromised account.

Sharing link activity reports focus on recently active sites and can be used with baseline reports to understand both current exposure and recent changes.


Snapshot Reports Versus Activity Reports

Report typePrimary purpose
Snapshot reportShows the current or baseline permission state
Activity reportShows recent sharing behavior
Site permissions reportShows how broadly a site is accessible
User permissions reportShows which sites a particular user can access
Special-groups reportIdentifies specific files and sites shared with Everyone or EEEU
Sharing links reportIdentifies sites with recent sharing-link activity
Sensitivity label reportHelps identify how sensitive content is labeled

A mature governance program uses both snapshot and activity reports:

  1. Use snapshot reports to understand the current exposure.
  2. Use activity reports to identify new or increasing risks.
  3. Investigate high-risk sites and files.
  4. Remediate inappropriate access.
  5. Repeat the assessment periodically.

Sensitivity Labels and SharePoint Overexposure

Sensitivity labels help classify and protect content based on its sensitivity.

Examples of classification categories include:

  • Public.
  • General.
  • Confidential.
  • Highly confidential.

A sensitivity label may provide:

  • Visual classification.
  • Encryption.
  • Access restrictions.
  • Content marking.
  • Protection that persists with the file.
  • Policy-based protection.

Sensitivity labels can help security teams distinguish between:

  • Content that is intentionally broadly shared.
  • Content that is sensitive and should have restricted access.
  • Content that is unlabeled and requires review.

An unlabeled file is not necessarily insecure, but unlabeled sensitive content is harder to govern consistently. Purview assessments can help identify potentially overshared items that are unlabeled or may require a different sensitivity label.


Remediation Options

After identifying overexposure, choose remediation based on:

  • Sensitivity of the content.
  • Number of users with access.
  • Whether external users are involved.
  • Whether AI applications may use the content.
  • Business impact.
  • Whether access is intentional.
  • Whether the content is still required.

1. Resolve the finding

Use Resolve when the item has been reviewed and the apparent risk is acceptable.

Examples:

  • The file is an approved public document.
  • The business owner confirms the sharing is intentional.
  • The content is not sensitive.
  • The item has already been remediated outside the assessment.

Resolving a finding does not necessarily change the permissions. It records that the finding has been reviewed.

2. Apply or change a sensitivity label

Apply a sensitivity label when:

  • The item is unlabeled.
  • The existing label is too permissive.
  • The content requires encryption or access restrictions.
  • The organization needs better classification.

3. Notify the site owner

Site owners often understand the business context better than central security teams.

A notification can request that the owner:

  • Review the affected item.
  • Confirm the intended audience.
  • Remove unnecessary access.
  • Replace a broad sharing link.
  • Apply an appropriate sensitivity label.
  • Move the content to a more restricted site.

4. Remove a sharing link

Removing an inappropriate sharing link prevents that link from being used to access the content.

This action should be used carefully because it may disrupt legitimate collaboration. After removing the link, the owner may need to create a more restrictive link for authorized users.

5. Restrict access temporarily

SharePoint capabilities such as Restricted Access Control can be used to limit access to specified groups while remediation is performed.

This can be useful when:

  • A site contains highly sensitive information.
  • Permissions cannot be reviewed immediately.
  • Copilot exposure must be reduced quickly.
  • A security investigation is underway.

6. Use restricted content discovery

Restricted content discovery can help prevent high-risk SharePoint sites and files from surfacing in Microsoft Copilot and related agentic experiences while the organization works on remediation.

This is an interim control. It should not replace correcting the underlying permissions and content governance problems.

7. Initiate a site access review

A site access review sends a request to the site owner to review and update access.

A site owner can review:

  • Users with access.
  • Groups with access.
  • Items with broad permissions.
  • Sharing links.
  • Items with unusually high exposure.

This approach distributes remediation to the people most familiar with the site’s business purpose.


Recommended Investigation Workflow

Step 1: Identify the site or user at risk

Use:

  • DSPM data risk assessments.
  • Site permissions reports.
  • User permissions reports.
  • Sharing link activity reports.
  • EEEU reports.

Step 2: Determine the exposure type

Identify whether access is granted through:

  • An Anyone link.
  • A People in your organization link.
  • A Specific people link.
  • A SharePoint group.
  • A Microsoft 365 group.
  • Everyone.
  • Everyone except external users.
  • Direct permissions.
  • Inherited permissions.

Step 3: Determine the data sensitivity

Review:

  • Sensitivity labels.
  • File content.
  • Business owner.
  • Regulatory classification.
  • Customer or employee information.
  • Intellectual property.
  • Security or legal information.

Step 4: Determine whether the exposure is intentional

Ask:

  • Is the audience appropriate?
  • Is the file still needed?
  • Is external sharing required?
  • Is broad internal access justified?
  • Is the link type appropriate?
  • Is the access temporary or permanent?

Step 5: Prioritize remediation

A useful priority model is:

  1. Sensitive content shared externally or anonymously.
  2. Sensitive content shared with Everyone.
  3. Sensitive content shared with Everyone except external users.
  4. Sensitive content accessible to large groups.
  5. Unlabeled content with broad access.
  6. Low-risk content with legitimate broad sharing.

Step 6: Apply the least disruptive effective control

Possible actions include:

  • Remove a broad link.
  • Replace it with a Specific people link.
  • Remove unnecessary group membership.
  • Change site permissions.
  • Apply a sensitivity label.
  • Initiate a site access review.
  • Restrict access temporarily.
  • Restrict content discovery while remediation is performed.

Step 7: Validate and document

After remediation:

  • Re-run the assessment or report.
  • Confirm that access is reduced as intended.
  • Verify that legitimate users retain access.
  • Document the business justification.
  • Record the owner and remediation date.
  • Monitor for recurrence.

Important Limitations and Considerations

Assessments are not necessarily real-time

Reports and assessments may have processing delays. A newly changed permission may not appear immediately.

Do not assume that a report showing no issue proves that the current configuration is risk-free.

OneDrive and SharePoint coverage can differ

Some item-level scanning capabilities are limited to SharePoint sites. OneDrive support and reporting methods may differ depending on the specific feature and current service capabilities.

Broad access is not always inappropriate

A public brochure, product announcement, or company policy may legitimately be shared broadly.

Security engineers must evaluate the context rather than automatically removing every broad link.

Removing links may disrupt business operations

Removing a sharing link can prevent legitimate recipients from accessing the content. Use owner review and business validation where possible.

Fix permissions, not just AI visibility

Restricted content discovery can reduce the chance that content appears in Copilot or agentic experiences, but the underlying SharePoint permissions should still be corrected.


Common Exam Traps

Trap 1: Copilot bypasses SharePoint permissions

Incorrect. Copilot generally uses the current user’s authorized access. The risk often comes from excessive SharePoint permissions.

Trap 2: Everyone except external users means secure

Incorrect. It excludes external users but may grant access to every internal user.

Trap 3: An Anyone link always indicates a security incident

Incorrect. The link may be intentional for public content. The content’s sensitivity and business purpose must be evaluated.

Trap 4: A site permissions report identifies every affected file

Not necessarily. Site-level reports identify exposure patterns. Item-level reports, such as the special-groups report, are needed to identify specific files and folders affected by certain broad permissions.

Trap 5: Restricted content discovery fixes the permissions

Incorrect. It is an interim control that can reduce AI discovery exposure. The underlying permissions should still be remediated.

Trap 6: A resolved finding automatically removes access

Incorrect. Resolving a finding records that it has been reviewed. It does not necessarily change the item’s permissions.

Trap 7: Activity reports and snapshot reports serve the same purpose

Incorrect. Snapshot reports describe the current or baseline state. Activity reports focus on recent sharing behavior.

Trap 8: Every unlabeled file is insecure

Incorrect. Lack of a sensitivity label is a governance concern, but the actual risk depends on the content and access permissions.


Practice Exam Questions

Question 1

An organization is preparing to deploy Microsoft 365 Copilot. The security team wants to identify SharePoint content that may be accessible to a broader audience than intended. Which capability is most appropriate?

A. Microsoft Defender for Endpoint
B. Microsoft Purview Data Security Posture Management data risk assessments
C. Azure Network Watcher
D. Azure Firewall

Answer: B

Explanation: Purview DSPM data risk assessments help identify potentially overshared Microsoft 365 content, including SharePoint data that may affect AI grounding and Copilot responses.


Question 2

A SharePoint document is shared with Everyone except external users. What is the primary security concern?

A. The document is automatically encrypted with a Microsoft-managed key.
B. Only the site owner can access the document.
C. The document is available only to external guests.
D. The document may be accessible to all authenticated users inside the organization.

Answer: D

Explanation: Everyone except external users excludes external users but can expose the document to the entire internal organization.


Question 3

A security engineer needs to identify the exact files and folders that have permissions granted to Everyone or Everyone except external users. Which report should be used?

A. Sites and files shared via special SharePoint groups report
B. Azure Activity Log
C. Microsoft Defender for Servers report
D. Site collection storage report

Answer: A

Explanation: The special-groups report identifies the specific sites, files, and folders affected by permissions granted to Everyone or Everyone except external users.


Question 4

A security team wants to understand which SharePoint sites a particular employee can access and whether access is direct or inherited through groups. Which report is most appropriate?

A. Sharing links activity report
B. Site permissions for users report
C. Sensitivity labels for files report
D. External attack surface report

Answer: B

Explanation: The site permissions for users report shows the sites a specified user can access and how access is granted.


Question 5

A potentially overshared file is identified in Purview. The file contains confidential financial information and is currently unlabeled. What is an appropriate remediation action?

A. Apply an appropriate sensitivity label and review the sharing permissions.
B. Resolve the finding without reviewing it.
C. Make the file available to Everyone.
D. Disable Microsoft 365 Copilot for the entire tenant.

Answer: A

Explanation: Sensitive unlabeled content should be classified and its permissions reviewed. Applying a sensitivity label can improve protection and governance.


Question 6

A site owner confirms that a file identified by a Purview assessment is an approved public marketing brochure. What should the security engineer do if the sharing is intentional and acceptable?

A. Delete the SharePoint site.
B. Remove all site members.
C. Resolve the finding after documenting the business justification.
D. Apply a highly confidential label automatically.

Answer: C

Explanation: Not every broad sharing configuration is inappropriate. If the exposure is intentional and approved, the finding can be resolved after review.


Question 7

A security team wants to identify newly created sharing links that may introduce oversharing risks. Which capability should it use?

A. Site storage metrics
B. Sharing links activity reports
C. Azure Resource Graph
D. Microsoft Entra Connect Health

Answer: B

Explanation: Sharing links activity reports identify sites with recent sharing-link activity and help detect emerging oversharing risks.


Question 8

An organization discovers that a high-risk SharePoint site may expose sensitive content to Copilot users. The permissions cannot be fully reviewed immediately. Which interim control may help reduce the content’s visibility in Copilot and agentic experiences?

A. Disable all Microsoft Entra users.
B. Delete all sensitivity labels.
C. Enable restricted content discovery for the high-risk content.
D. Remove every NSG from the organization.

Answer: C

Explanation: Restricted content discovery can help prevent high-risk SharePoint content from surfacing in Copilot and related agentic experiences while the organization remediates the underlying access risks.


Question 9

Which statement best describes the difference between a snapshot report and an activity report?

A. A snapshot report shows a permission baseline, while an activity report focuses on recent sharing behavior.
B. A snapshot report only applies to Azure virtual machines, while an activity report applies to SharePoint.
C. A snapshot report changes permissions automatically, while an activity report deletes files.
D. A snapshot report identifies malware, while an activity report identifies vulnerabilities.

Answer: A

Explanation: Snapshot reports describe the current or baseline permission state. Activity reports focus on recent sharing activity that may introduce new exposure.


Question 10

A security engineer removes an inappropriate Anyone sharing link from a sensitive SharePoint file. What should the engineer do next?

A. Assume that all access to the file is now impossible.
B. Validate that authorized users still have appropriate access and confirm that the broad link is no longer usable.
C. Grant Everyone access as a replacement.
D. Disable SharePoint for the entire organization.

Answer: B

Explanation: Removing a sharing link may affect legitimate collaboration. The engineer should validate the resulting access and ensure that authorized users retain an appropriate, more restrictive access method.


Summary

For the SC-500 exam, remember these key points:

  • SharePoint overexposure occurs when content is accessible to a broader audience than intended.
  • Copilot generally uses the current user’s existing permissions.
  • Excessive SharePoint permissions can therefore create AI data exposure risks.
  • Purview DSPM data risk assessments help identify potentially overshared content.
  • SharePoint Data access governance reports provide organization-wide, user-specific, item-level, and activity-based visibility.
  • Everyone except external users can expose content to all internal users.
  • Anyone links can expose content beyond the organization and should be reviewed carefully.
  • Snapshot reports show the current or baseline state.
  • Activity reports identify recent sharing behavior.
  • Sensitivity labels help classify and protect sensitive content.
  • Remediation may include changing permissions, removing links, applying labels, notifying site owners, initiating access reviews, or temporarily restricting content discovery.
  • Restricted content discovery is an interim AI-visibility control, not a replacement for correcting SharePoint permissions.
  • Always validate the business purpose before removing legitimate access.

Go to the SC-500 Exam Prep Hub main page

Configure and deploy AI Gateway in Azure API Management for Microsoft Foundry (SC-500 Exam Prep)

This post is a part of the "SC-500: Implementing End-to-End Security Controls for Cloud and AI Workloads" Exam Prep Hub.
This topic falls under these sections:
Secure compute (20–25%)
   --> Implement security for AI
      --> Configure and deploy AI Gateway in Azure API Management for Microsoft Foundry


Note that there are 10 practice questions (with answers) at the end of each section to help you solidify your knowledge of the material. Also, there are 4 practice tests with 30 questions each available from the hub's main page below the exam topics section.

Overview

Microsoft Foundry provides services for developing, deploying, and operating generative AI applications, models, and agents. As organizations adopt AI at scale, they need a controlled way to manage access to models and AI tools.

An AI Gateway uses Azure API Management to provide a governed entry point between applications or agents and AI backends. It can centralize authentication, authorization, traffic control, token usage, monitoring, routing, and security policies.

For SC-500, the important concept is that the AI Gateway is not simply another model endpoint. It is a security and governance layer placed between AI consumers and the services they access.

Exam focus: Understand how to connect Microsoft Foundry to Azure API Management, configure the gateway, import models or tools, apply policies, and verify that traffic is actually being mediated by the gateway.


What Is an AI Gateway?

An AI Gateway is a set of capabilities in Azure API Management that helps organizations manage AI-related backends.

These backends may include:

  • Models deployed in Microsoft Foundry.
  • Azure OpenAI deployments.
  • Other supported model providers.
  • OpenAI-compatible model endpoints.
  • Remote Model Context Protocol (MCP) servers.
  • Agent-to-agent APIs.
  • Custom AI services.
  • Self-hosted models and endpoints.

The AI Gateway extends the existing API Management gateway. It is not a completely separate gateway product. Existing API Management capabilities, including policies, authentication, routing, monitoring, and networking, are used to govern AI traffic.

Why use an AI Gateway?

Without a gateway, each application or agent may connect directly to an AI model or tool. This can lead to:

  • Duplicated authentication logic.
  • Inconsistent security policies.
  • Uncontrolled model consumption.
  • Difficulty enforcing quotas.
  • Limited visibility into usage.
  • Excessive exposure of backend endpoints.
  • Different teams implementing different controls.
  • Difficulty changing model providers.

An AI Gateway provides a centralized control point for these concerns.

For example, several applications might use different model deployments, but all requests can pass through API Management where the organization applies:

  • Authentication.
  • Authorization.
  • Rate limits.
  • Token quotas.
  • IP restrictions.
  • Content safety policies.
  • Request and response transformations.
  • Logging and metrics.
  • Backend routing.
  • Load balancing.
  • Caching, where appropriate.

AI Gateway Architecture

A typical architecture contains the following components:

  1. AI consumer
    • Application.
    • Copilot.
    • Agent.
    • Development tool.
    • Automated workload.
  2. Microsoft Foundry resource or project
    • Hosts or manages model deployments, agents, and tools.
  3. Azure API Management instance
    • Acts as the AI Gateway.
    • Receives requests from consumers.
    • Applies policies.
    • Routes requests to the appropriate backend.
  4. AI backend
    • Microsoft Foundry model.
    • Azure OpenAI deployment.
    • External model provider.
    • MCP server.
    • Other supported AI endpoint.
  5. Monitoring and governance services
    • API Management logs and metrics.
    • Application Insights, where configured.
    • Microsoft Foundry telemetry.
    • Security monitoring and auditing.

The gateway sits between the client and the AI backend. This allows the organization to enforce common controls without requiring every client application to implement those controls independently.


AI Gateway in Microsoft Foundry

Microsoft Foundry can be integrated with an Azure API Management instance as an AI Gateway.

This integration allows organizations to govern AI resources from within the Foundry environment while retaining access to the more advanced configuration capabilities of Azure API Management.

Depending on the supported feature and configuration, the gateway can help govern:

Models

The gateway can provide:

  • Token quotas.
  • Rate limits.
  • Authentication.
  • Routing.
  • Usage monitoring.
  • Model access control.
  • Centralized governance across model deployments.

When AI Gateway is used with Foundry, model requests can be routed through the associated API Management instance. Model limits can be configured at the project level, helping prevent one project or team from consuming all available capacity.

Agents

Agents can be registered and governed through Microsoft Foundry. Governance can include:

  • Centralized inventory.
  • Traffic policies.
  • Throttling.
  • Content safety controls.
  • Monitoring.
  • Access management.

The exact capabilities depend on the agent type and the integration being used.

Tools

MCP tools can be routed through an AI Gateway so that requests pass through a controlled endpoint.

Policies can be applied to MCP traffic, including:

  • Authentication.
  • Rate limiting.
  • IP filtering.
  • Correlation IDs.
  • Logging and metrics.
  • Routing controls.

However, the Foundry MCP gateway integration has limitations. For example, only eligible MCP tools created after the gateway is connected may be routed through the gateway. Existing tools are not automatically changed to use the gateway.


Prerequisites

Before configuring an AI Gateway for Microsoft Foundry, verify the following.

Azure API Management instance

You need an Azure API Management instance that meets the requirements for the selected integration.

Supported service tiers and networking requirements can vary depending on:

  • Whether the gateway is public or private.
  • Whether the Foundry resource has public network access disabled.
  • Whether private endpoints are required.
  • Whether advanced networking is needed.
  • Whether the organization is using the dedicated AI Gateway tier preview.

The dedicated AI Gateway tier is a public preview feature. Preview capabilities, supported regions, limits, and service behavior may change. Organizations should validate preview features carefully before using them for critical production workloads.

Required permissions

The administrator configuring the integration generally needs permission to manage the API Management instance.

For some Foundry gateway scenarios, the required role is:

  • API Management Service Contributor, or
  • Owner

The exact permissions depend on whether the administrator is connecting an existing gateway, creating an instance, importing models, or managing policies.

Networking

If the Foundry resource has public network access disabled, the API Management instance must also be able to access the private Foundry resource.

Depending on the architecture, this may require:

  • A private endpoint.
  • A supported API Management tier.
  • Virtual network integration or injection.
  • Appropriate private DNS configuration.
  • Network rules that permit the required traffic.

A gateway cannot securely mediate traffic to a private backend if the gateway itself cannot reach that backend.

Backend access

The administrator must have access to the model, deployment, or tool backend being added.

For managed identity authentication, the managed identity must also have the required permissions on the backend resource.


Creating or Associating an AI Gateway

The exact portal experience can change, but the general process is:

  1. Sign in to Microsoft Foundry.
  2. Open the appropriate Foundry administration or resource configuration area.
  3. Open the AI Gateway configuration.
  4. Select Add AI Gateway.
  5. Select the Foundry resource to associate with the gateway.
  6. Select an existing API Management instance or create one if supported.
  7. Confirm the required permissions and networking configuration.
  8. Save the association.
  9. Add or import models, agents, or eligible tools.
  10. Configure API Management policies.
  11. Test requests through the gateway.
  12. Verify telemetry and policy enforcement.

The Microsoft Foundry portal provides an integrated configuration experience, while advanced policies and networking settings are managed in Azure API Management.


Importing Models into the AI Gateway

Azure API Management can import models from supported providers, including Microsoft Foundry and Azure OpenAI.

When importing a model, the administrator typically configures:

  • The model provider.
  • The backend endpoint.
  • The model or deployment name.
  • The API format.
  • Authentication.
  • Required headers.
  • Backend routing.
  • Policies.
  • Monitoring settings.

For Microsoft Foundry deployments, the import wizard can discover deployments automatically in supported scenarios.

OpenAI-compatible APIs

Many applications are designed to use the OpenAI API format. API Management can expose supported backends through OpenAI-compatible routes.

For example, an OpenAI-compatible model endpoint may use a route similar to:

/default/models/openai/v1/chat/completions

The exact gateway URL and route depend on the API Management configuration and the provider API format.

The important exam concept is that the client can use a consistent gateway endpoint while API Management handles the connection to the underlying model backend.


Authentication Options

Authentication must be configured separately for:

  1. The client calling the gateway.
  2. The gateway calling the backend.

These are not necessarily the same authentication mechanism.

Client-to-gateway authentication

The client may authenticate to API Management using:

  • An API Management subscription key.
  • Microsoft Entra authentication.
  • OAuth.
  • Another supported API authentication method.

For example, a client may send an API Management subscription key in a header expected by the API definition or policy.

Gateway-to-backend authentication

The gateway can authenticate to AI backends using:

  • Managed identity.
  • API keys.
  • Provider-specific credentials.
  • Other supported authentication mechanisms.

Managed identity is often preferable because it avoids embedding long-lived API keys in applications or configuration files. The managed identity must have the appropriate role or permissions on the backend.

Managed identity benefits

Using managed identity can:

  • Avoid storing API keys in application code.
  • Reduce credential rotation requirements.
  • Integrate with Microsoft Entra access control.
  • Support centralized identity governance.
  • Reduce the risk of accidental credential exposure.

However, managed identity does not automatically grant access. The identity must still be authorized on the target resource.


API Management Policies

API Management policies are XML-based rules that execute in the gateway.

Policies can operate on:

  • Inbound requests.
  • Backend requests.
  • Backend responses.
  • Outbound responses.
  • Errors.

They can validate, transform, secure, route, or limit API traffic. API Management policies are different from Azure Policy. API Management policies run at API request time, while Azure Policy evaluates and governs Azure resources.

Important AI Gateway policies

Rate limiting

Rate limiting restricts the number of requests a client can make during a defined period.

Example uses include:

  • Limiting requests per application.
  • Limiting requests per user.
  • Preventing excessive tool calls.
  • Protecting backend capacity.
  • Reducing abuse.

A rate-limit-by-key policy can use a key such as:

  • Client IP address.
  • Subscription key.
  • Application identifier.
  • User identifier.
  • Custom request value.

The key should be selected carefully. IP-based limiting may be inappropriate when many users share the same outbound address.

Token quotas

AI model consumption is often measured in tokens rather than only requests.

Token quotas can help control:

  • Cost.
  • Capacity.
  • Fair usage.
  • Project-level consumption.
  • Large prompt abuse.
  • Excessive response generation.

A request-per-minute limit alone may not prevent a client from sending extremely large prompts. Token-based controls are therefore important for AI workloads.

IP filtering

IP filtering can restrict requests to trusted networks or addresses.

For example, an organization may allow gateway access only from:

  • Corporate networks.
  • Private application subnets.
  • Approved build environments.
  • Trusted automation services.

IP filtering should not be treated as a replacement for identity-based authentication. Network location alone is not sufficient to establish who is authorized to use an AI service.

Authentication and authorization

Policies can validate tokens, inspect claims, and enforce access rules.

For example, a policy may:

  • Validate a Microsoft Entra token.
  • Check the token audience.
  • Restrict access to specific application IDs.
  • Require a subscription key.
  • Reject unauthenticated requests.
  • Route different consumers to different backends.

Content safety

API Management can apply policies that integrate with Azure AI Content Safety to moderate prompts or responses.

Content safety controls may help detect or block content such as:

  • Hate.
  • Violence.
  • Sexual content.
  • Self-harm content.
  • Other unsafe material, depending on the configured policy and service capabilities.

Content safety is not a complete AI security solution. It should be combined with identity, authorization, data protection, logging, and runtime controls.

Correlation IDs

A correlation ID allows related requests to be traced across systems.

A gateway can add a unique identifier to a request so that administrators can correlate:

  • Client requests.
  • Gateway logs.
  • Backend requests.
  • Application logs.
  • Security investigations.

Correlation IDs are particularly useful when an application invokes multiple models or tools during one user interaction.

Request and response transformation

Policies can modify requests or responses, including:

  • Headers.
  • URLs.
  • Query parameters.
  • Payloads.
  • Backend routing.
  • Response formatting.

Transformations should be used carefully with AI APIs because changing required headers or payload structures can cause model or tool calls to fail.


Governing MCP Tools

The Model Context Protocol allows agents to interact with external tools and data sources.

Examples of MCP tools include:

  • Search tools.
  • File access tools.
  • Database tools.
  • Business application tools.
  • Automation tools.
  • Custom enterprise tools.

Routing MCP traffic through an AI Gateway provides a centralized point for:

  • Authentication.
  • Rate limiting.
  • IP restrictions.
  • Audit logging.
  • Routing.
  • Policy enforcement.

The gateway can apply controls without requiring changes to the MCP server or agent code.

Important MCP limitations

For the Foundry-integrated MCP gateway experience:

  • The feature is in preview.
  • Only eligible MCP tools are routed through the gateway.
  • Existing tools may not be automatically migrated.
  • Tools using managed OAuth may not be eligible for the same routing flow.
  • API Management policies are configured in Azure API Management.
  • Gateway logs may not contain complete tool-level traces.
  • MCP server logs may still be required for detailed tool investigation.

If a tool was created before the gateway was connected, it may continue to call the MCP server directly. In that situation, recreate the tool after the gateway is connected if the tool is eligible for gateway routing.


Monitoring and Observability

An AI Gateway provides a central location for monitoring AI traffic.

Useful telemetry may include:

  • Request counts.
  • Response codes.
  • Latency.
  • Backend failures.
  • Token usage.
  • Rate-limit events.
  • Authentication failures.
  • Policy violations.
  • Correlation IDs.
  • Model or backend usage.
  • Gateway errors.

Telemetry can be viewed through API Management monitoring capabilities and, where configured, Microsoft Foundry or Application Insights.

Monitoring helps answer questions such as:

  • Which applications are using a model?
  • Which projects consume the most tokens?
  • Are requests being rejected?
  • Is a backend unavailable?
  • Are clients exceeding quotas?
  • Are unusual traffic patterns occurring?
  • Are policies blocking legitimate workloads?
  • Are sensitive tools being called unexpectedly?

Gateway telemetry should be combined with application, model, agent, and backend logs because the gateway may not capture every detail of an AI interaction.


Security Design Considerations

Use a single governed entry point

Where practical, route approved AI traffic through the gateway rather than allowing every application to call model endpoints directly.

This improves consistency and visibility.

Avoid exposing backend credentials

Prefer managed identity or centrally managed credentials rather than embedding API keys in application code.

Apply least privilege

The gateway’s identity should have only the permissions required to access the configured backend.

The client should also receive only the permissions required to call the gateway APIs.

Separate environments

Use separate configurations or gateways for:

  • Development.
  • Testing.
  • Staging.
  • Production.

This helps prevent development applications from accessing production models or sensitive tools.

Apply quotas by project or consumer

Quotas should reflect business requirements. A shared global quota may allow one application to consume capacity needed by other teams.

Restrict sensitive tools

Tools that can:

  • Modify databases.
  • Send email.
  • Change permissions.
  • Deploy resources.
  • Access confidential data.
  • Execute commands.

should receive stronger controls than read-only tools.

Protect private backends

If a Foundry resource is private, ensure the gateway has appropriate private connectivity. Do not assume that associating the resources automatically solves networking requirements.

Test policies before enforcement

Use testing and staged rollout to ensure that policies do not:

  • Remove required authentication headers.
  • Break model payloads.
  • Block legitimate clients.
  • Prevent required tool calls.
  • Cause unexpected latency.
  • Interfere with streaming responses.

Example Scenario

A company has three AI applications:

  • A customer-service assistant.
  • A financial reporting application.
  • An internal research assistant.

Each application currently calls a model endpoint directly.

The security team deploys Azure API Management as an AI Gateway and configures:

  1. Microsoft Entra authentication for approved applications.
  2. Managed identity authentication from the gateway to the model backend.
  3. Separate API products or subscriptions for each application.
  4. Token quotas for each project.
  5. Rate limits to prevent excessive requests.
  6. IP restrictions for internal applications.
  7. Content safety checks.
  8. Correlation IDs for tracing.
  9. Monitoring and alerts for failures and abnormal usage.

The financial reporting application receives a lower quota but stronger access restrictions because it processes sensitive information. The research assistant is allowed to use several approved models but cannot access production business tools.

This design provides centralized security while allowing different applications to have different access and usage policies.


Common Exam Comparisons

CapabilityPrimary purpose
Azure API Management AI GatewayGovern and secure traffic to AI models, agents, and tools
Microsoft FoundryDevelop, deploy, and operate AI resources
Microsoft Entra IDAuthenticate identities and authorize access
Managed identityProvide Azure-managed authentication without embedded credentials
API Management policyApply runtime request and response controls
Azure PolicyGovern Azure resource configuration and compliance
Azure AI Content SafetyDetect or moderate unsafe content
Application InsightsMonitor application and gateway-related telemetry
Microsoft SentinelCentralize security events and investigation workflows
Agent identityRepresent an AI agent as an identity
MCP serverExpose tools or context to compatible AI clients

Exam Tips

Remember these key points:

  • An AI Gateway is implemented using Azure API Management capabilities.
  • The gateway is a control point between AI consumers and AI backends.
  • It can govern models, agents, and eligible MCP tools.
  • The gateway is not a replacement for Microsoft Entra authentication.
  • Client-to-gateway authentication and gateway-to-backend authentication are separate concerns.
  • Managed identity can reduce the need to store backend API keys.
  • API Management policies are runtime rules, not Azure Policy definitions.
  • Rate limits control request volume; token quotas control AI consumption.
  • Content safety policies address unsafe content but do not replace identity security.
  • Existing MCP tools may not automatically begin using a newly connected gateway.
  • API Management policies are configured in API Management, not necessarily in the Foundry portal.
  • Private Foundry resources require compatible private connectivity from the gateway.
  • Preview features may have changing capabilities, limits, and supported regions.
  • Monitoring should include gateway telemetry and backend or application logs.
  • Always verify that traffic actually passes through the gateway after configuration.

Practice Exam Questions

Question 1

What is the primary purpose of using Azure API Management as an AI Gateway for Microsoft Foundry?

A. To replace Microsoft Entra ID
B. To train foundation models
C. To provide a centralized point for securing, governing, and monitoring AI traffic
D. To permanently store model training data

Answer: C

Explanation: An AI Gateway provides a centralized control point between AI consumers and backends. It can enforce authentication, quotas, rate limits, routing, monitoring, and other policies. It does not replace Microsoft Entra ID or train models.


Question 2

An organization wants the AI Gateway to authenticate to a Microsoft Foundry backend without storing an API key in application code. Which option should it consider?

A. Managed identity
B. Azure resource lock
C. Public IP address filtering only
D. A storage account access key

Answer: A

Explanation: Managed identity allows the gateway to authenticate to supported Azure services without embedding long-lived credentials in application code. The identity must still be granted the required permissions on the backend.


Question 3

Which statement correctly describes Azure API Management policies?

A. They are Azure resource-compliance definitions evaluated by Azure Policy
B. They are runtime rules that can validate, transform, secure, limit, or route API requests and responses
C. They are Microsoft Entra role assignments
D. They are model-training instructions

Answer: B

Explanation: API Management policies execute in the gateway and can control inbound requests, backend requests, responses, and errors. They are different from Azure Policy, which governs Azure resource configuration.


Question 4

A company wants to prevent one Foundry project from consuming all available model capacity. Which control is most directly relevant?

A. Azure Bastion
B. Microsoft Entra access reviews
C. Token quotas
D. Azure resource locks

Answer: C

Explanation: Token quotas limit AI consumption based on token usage. They are useful for cost control, capacity management, and preventing one project from monopolizing model capacity.


Question 5

An administrator connects an AI Gateway to a Foundry resource. An MCP tool created several weeks earlier continues to call the MCP server directly. What is the most likely explanation?

A. API Management cannot govern MCP tools
B. The tool must be recreated after the gateway is connected if it is eligible for gateway routing
C. The Foundry resource must be deleted
D. The MCP server must be converted into a virtual machine

Answer: B

Explanation: In the preview Foundry MCP gateway integration, gateway routing is applied when eligible tools are created after the gateway is connected. Existing tools are not automatically migrated.


Question 6

Which control is most appropriate for restricting AI Gateway requests to approved corporate networks?

A. IP filtering
B. Token quota
C. Model fine-tuning
D. Agent blueprint inheritance

Answer: A

Explanation: IP filtering can allow or deny requests based on source IP addresses or ranges. It should supplement, not replace, identity-based authentication and authorization.


Question 7

An organization wants to trace a request from an application through API Management to the model backend. Which feature is most useful?

A. Azure resource locks
B. Correlation IDs
C. Disk encryption
D. Azure Policy remediation

Answer: B

Explanation: Correlation IDs provide a common identifier that can be recorded in gateway, application, and backend logs, making it easier to trace a request across multiple components.


Question 8

A Foundry resource has public network access disabled. What must be verified before associating it with an AI Gateway?

A. The gateway has an appropriate private network path to the Foundry resource
B. The model has been fine-tuned
C. All clients use anonymous access
D. The gateway is deployed outside Azure

Answer: A

Explanation: A private Foundry resource requires compatible private connectivity from the API Management instance. The gateway must be able to reach the backend through the required private networking configuration.


Question 9

Which statement best describes the difference between rate limiting and token quotas?

A. Rate limiting controls request volume, while token quotas control AI token consumption
B. Rate limiting authenticates users, while token quotas encrypt traffic
C. Rate limiting governs Azure resources, while token quotas manage virtual machines
D. Rate limiting disables models, while token quotas create agents

Answer: A

Explanation: Rate limiting restricts the number of requests over a period. Token quotas restrict the amount of model consumption, which is important because requests can vary greatly in prompt and response size.


Question 10

An administrator applies an API Management policy that removes a required authentication header before forwarding the request to an MCP server. What is the likely result?

A. The MCP server automatically repairs the header
B. The request is converted into a model-training job
C. The request may fail because required authentication information was removed
D. The gateway automatically grants anonymous access

Answer: C

Explanation: API Management policies can modify headers, but removing a required authentication header can cause the backend or MCP server to reject the request. Policies must be tested carefully to avoid breaking required authentication and protocol behavior.


Final Exam Point

A very important exam theme is that Azure API Management provides the enforcement and governance layer, while Microsoft Foundry provides the AI resource and application environment. Together, they allow organizations to centralize access control, usage management, monitoring, and security for AI workloads.


Go to the SC-500 Exam Prep Hub main page

Plan and implement Azure Bastion (SC-500 Exam Prep)

This post is a part of the "SC-500: Implementing End-to-End Security Controls for Cloud and AI Workloads" Exam Prep Hub.
This topic falls under these sections:
Secure compute (20–25%)
   --> Implement security for servers and virtual machines (VMs)
      --> Plan and implement Azure Bastion


Note that there are 10 practice questions (with answers) at the end of each section to help you solidify your knowledge of the material. Also, there are 4 practice tests with 30 questions each available from the hub's main page below the exam topics section.

Overview

Azure Bastion is a fully managed Azure platform service that provides secure Remote Desktop Protocol (RDP) and Secure Shell (SSH) connectivity to Azure virtual machines.

Instead of exposing RDP or SSH directly to the public internet, administrators connect to Azure Bastion through the Azure portal or, when supported, through a native RDP or SSH client. Bastion then connects to the target virtual machine over its private IP address.

Azure Bastion is particularly useful for reducing the attack surface of administrative access to virtual machines. It helps eliminate the need to assign public IP addresses to VMs solely for remote management.

For the SC-500 exam, you should understand:

  • Why Azure Bastion is used.
  • How Bastion is deployed in a virtual network.
  • The purpose of the AzureBastionSubnet.
  • Bastion SKU differences.
  • Browser-based and native-client connections.
  • Private-only Bastion deployments.
  • Bastion integration with network security controls.
  • How to select the appropriate SKU.
  • Common deployment and connectivity problems.

Why Azure Bastion Is Important

Traditional remote administration often requires exposing:

  • RDP on TCP port 3389.
  • SSH on TCP port 22.

Exposing these ports directly to the internet increases the attack surface and can make virtual machines targets for:

  • Password attacks.
  • Credential stuffing.
  • Brute-force attacks.
  • Exploitation of protocol vulnerabilities.
  • Port scanning.
  • Automated reconnaissance.

Azure Bastion provides an alternative administrative access pattern:

  1. The administrator signs in to Azure.
  2. The administrator selects a virtual machine.
  3. The administrator chooses Connect > Bastion.
  4. Azure Bastion establishes the RDP or SSH connection.
  5. The session is presented through the browser or a supported native client.
  6. The VM is accessed through its private IP address.

The target VM does not need:

  • A public IP address.
  • An RDP or SSH agent.
  • Special client software for browser-based access.
  • Direct internet exposure of management ports.

Bastion is therefore a network-security control for administrative access, not a replacement for identity security or VM hardening.


Azure Bastion Architecture

Dedicated Bastion Deployment

For the Basic, Standard, and Premium SKUs, Azure Bastion is deployed into a dedicated subnet named:

AzureBastionSubnet

The subnet must be reserved for Azure Bastion. Other Azure resources should not be deployed into it.

For dedicated Bastion deployments, Microsoft recommends a subnet of at least /26 to support scaling and future feature requirements. The subnet can be larger, such as /25 or /24.

A typical architecture is:

Administrator
|
| HTTPS/TLS
v
Azure Bastion
|
| Private RDP or SSH
v
Azure Virtual Machine

The VM can remain without a public IP address.

Bastion in a Hub-and-Spoke Network

Azure Bastion can support connections to VMs in:

  • The same virtual network.
  • Peered virtual networks, when supported by the selected SKU and architecture.

A common enterprise design is to deploy Bastion in a central hub virtual network and use virtual network peering to access VMs in spoke virtual networks.

This allows an organization to centralize administrative access instead of deploying a separate Bastion resource in every spoke.

The selected SKU must support virtual network peering. The Developer SKU does not support peered virtual network connections.


Azure Bastion SKUs

Azure Bastion provides four SKUs:

  • Developer.
  • Basic.
  • Standard.
  • Premium.

The SKU affects:

  • Cost.
  • Deployment architecture.
  • Number of supported connections.
  • Scaling.
  • Native-client support.
  • File transfer.
  • Custom ports.
  • Shareable links.
  • Session recording.
  • Private-only deployment.

Developer SKU

The Developer SKU is intended for development and testing.

Characteristics include:

  • No additional Bastion hourly charge.
  • Shared infrastructure.
  • One VM connection at a time.
  • Browser-based access.
  • Support for RDP to Windows VMs.
  • Support for SSH to Linux VMs.
  • No virtual network peering.
  • Limited feature set.
  • Availability only in selected regions.

The Developer SKU is not intended for production workloads because it uses shared infrastructure and supports only one VM connection at a time.

Use Developer when:

  • The environment is for development or testing.
  • Cost is a major consideration.
  • Only occasional browser-based access is required.
  • Advanced features are unnecessary.
  • The region supports the Developer SKU.

Basic SKU

The Basic SKU provides a dedicated Bastion deployment with fixed capacity.

It supports:

  • Browser-based RDP.
  • Browser-based SSH.
  • Connections to VMs in the same or peered virtual networks.
  • Dedicated Bastion infrastructure.

The Basic SKU does not provide several advanced capabilities, including:

  • Native-client connections.
  • Shareable links.
  • IP-based connections.
  • Custom inbound ports.
  • File transfer through the native client.
  • Configurable host scaling.

Basic is appropriate when an organization needs a dedicated production deployment but does not require advanced connection features.

Standard SKU

The Standard SKU includes the Basic features and adds advanced capabilities such as:

  • Native RDP and SSH client connections.
  • Configurable host scaling.
  • Shareable links.
  • IP-based connections.
  • Custom inbound ports.
  • File upload and download.
  • Higher connection capacity.
  • Ability to configure additional Bastion features.

The Standard SKU is appropriate when administrators need to connect using local RDP or SSH clients or when the organization needs greater scalability.

Premium SKU

The Premium SKU includes Standard features and adds:

  • Session recording.
  • Private-only deployment.
  • No public IP address on the Bastion resource in a private-only architecture.

Premium is appropriate when an organization requires:

  • High-security administrative access.
  • Session audit trails.
  • Compliance-oriented session recording.
  • A fully private Bastion deployment.
  • Stronger restrictions on internet exposure.

The Premium SKU is the most appropriate choice when the requirement explicitly states that Bastion itself must not have a public IP address.


SKU Comparison

CapabilityDeveloperBasicStandardPremium
Intended useDevelopment and testingDedicated production accessAdvanced production accessHigh-security production access
Dedicated infrastructureNoYesYesYes
Browser-based RDP and SSHYesYesYesYes
Same-VNet connectivityYesYesYesYes
Peered-VNet connectivityNoYesYesYes
Concurrent connectionsOne VM at a timeFixed capacityConfigurable scalingConfigurable scaling
Native RDP/SSH clientNoNoYesYes
Custom portsNoNoYesYes
IP-based connectionsNoNoYesYes
Shareable linksNoNoYesYes
File transferNoNoYesYes
Session recordingNoNoNoYes
Private-only deploymentNoNoNoYes
Hourly Bastion chargeNoYesYesYes

The exact capacity depends on the SKU, number of Bastion instances, connection type, and current service limits. Standard and Premium support host scaling, while Basic provides fixed capacity.


Selecting the Correct SKU

Use the following decision process.

Choose Developer when:

  • The workload is development or testing.
  • One VM connection at a time is sufficient.
  • No peered-network access is required.
  • No advanced features are required.
  • The region supports Developer.

Choose Basic when:

  • A dedicated deployment is required.
  • Browser-based RDP and SSH are sufficient.
  • Fixed capacity is acceptable.
  • Native-client access is not required.
  • Session recording is not required.
  • Private-only deployment is not required.

Choose Standard when:

  • Native RDP or SSH clients are required.
  • File transfer is required.
  • Custom ports are required.
  • Shareable links are required.
  • IP-based connections are required.
  • Host scaling is required.
  • Higher connection concurrency is needed.

Choose Premium when:

  • Session recording is required.
  • Bastion must use a private-only deployment.
  • The Bastion resource must not have a public IP address.
  • Compliance requires administrative session audit trails.
  • The workload has stringent security requirements.

A common exam clue is:

“The VM must not have a public IP address.”

This requirement alone does not necessarily require Premium. Basic, Standard, and Premium can provide access to VMs without public IP addresses.

A different requirement is:

“Bastion itself must not have a public IP address.”

That points to a Premium private-only deployment.


Deploying Azure Bastion

Deployment Prerequisites

Before deploying Bastion, verify:

  • The target virtual network exists.
  • The virtual network is in a supported region.
  • The target VM is deployed in the same or a peered virtual network.
  • The required subnet exists.
  • The subnet is named AzureBastionSubnet.
  • The subnet is at least /26 for dedicated deployments.
  • The selected SKU supports the required features.
  • The required public IP configuration is available.
  • Network security rules do not block required Bastion traffic.
  • The administrator has sufficient Azure permissions.

For Basic, Standard, and Premium deployments, the subnet is dedicated to Bastion.

Do not deploy virtual machines, Azure Firewall, NAT Gateway, or other unrelated resources into AzureBastionSubnet.


Deploying from the Azure Portal

A typical portal deployment process is:

  1. Sign in to the Azure portal.
  2. Open the target virtual network or virtual machine.
  3. Select Connect > Bastion, or create a Bastion resource.
  4. Select the appropriate subscription.
  5. Select or create a resource group.
  6. Select the target virtual network.
  7. Select the Bastion SKU.
  8. Configure the AzureBastionSubnet.
  9. Configure the public IP address if required.
  10. Configure optional advanced features.
  11. Select Review + create.
  12. Validate the configuration.
  13. Select Create.

Dedicated Bastion deployments generally take longer to provision than the Developer SKU.


Public IP Requirements

For standard dedicated deployments:

  • Basic requires a public IP address.
  • Standard requires a public IP address.
  • Premium can use a public IP address or a private-only deployment.

The public IP address is associated with Bastion, not with the target VM.

The target VM can remain accessible only through its private IP address.

For a private-only Premium deployment:

  • Bastion has no public IP address.
  • Administrative connectivity must use private network connectivity.
  • The administrator must have an appropriate path into the virtual network, such as a corporate network connection, private connectivity, or another approved access mechanism.

Private-only Bastion is therefore useful for environments that require no internet-routable Bastion endpoint.


Connecting to Virtual Machines

Browser-Based Connections

Browser-based connections use the Azure portal and an HTML5 web client.

The administrator:

  1. Opens the virtual machine in the Azure portal.
  2. Selects Connect.
  3. Selects Bastion.
  4. Selects the connection protocol.
  5. Provides the required credentials.
  6. Selects Connect.

For Windows VMs, the default RDP port is usually:

3389

For Linux VMs, the default SSH port is usually:

22

Browser-based connections do not require a public IP address on the VM or special client software on the administrator’s computer.

RDP Connections

RDP is normally used to connect to Windows virtual machines.

The user must have the appropriate rights on the target VM. Depending on the authentication method, the user may need to be:

  • A local administrator.
  • A member of the Remote Desktop Users group.
  • Assigned an appropriate Microsoft Entra VM login role.

SSH Connections

SSH is normally used to connect to Linux virtual machines.

The administrator may authenticate using:

  • A username and password, where supported.
  • An SSH private key.
  • Microsoft Entra ID authentication, where supported and configured.

The VM must be configured to accept the selected authentication method.


Native-Client Connections

The native-client feature allows administrators to use the RDP or SSH client installed on their local computer instead of using only the browser-based client.

Native-client support requires:

  • Standard or Premium SKU.
  • Native-client support enabled.
  • Appropriate VM and authentication configuration.
  • Azure CLI for supported connection workflows.

Native-client connections can support additional capabilities, such as:

  • Local RDP or SSH client use.
  • Microsoft Entra authentication.
  • File transfer for supported connection types.
  • Custom ports.
  • Multiple concurrent VM sessions.

Session recording is not available for native-client connections. Session recording is a Premium feature for supported browser-based sessions.

Native-Client Limitations

Important limitations include:

  • Native-client support is not available with Developer or Basic.
  • Native-client connections are not supported from Azure Cloud Shell.
  • SSH private keys stored in Azure Key Vault cannot be used directly for native-client sign-in.
  • The private key must be available as a file on the local computer when using that authentication method.
  • Capabilities vary depending on the local client, target VM, protocol, and Bastion configuration.

Network Security Considerations

Azure Bastion reduces the need to expose RDP and SSH ports publicly, but network security rules still matter.

Network Security Groups

Network Security Groups can be used to control traffic to and from subnets and network interfaces.

When using Bastion, ensure that NSG rules do not unintentionally block:

  • Required Bastion control-plane traffic.
  • Bastion-to-VM RDP traffic.
  • Bastion-to-VM SSH traffic.
  • Required Azure platform communication.

For native-client configurations, administrators may use NSG rules to restrict access to required ports such as:

  • TCP 22 for SSH.
  • TCP 3389 for RDP.

Custom ports require Standard or Premium.

User-Defined Routes

User-defined routes are not supported on the Azure Bastion subnet.

This is important when designing a network that also contains:

  • Azure Firewall.
  • Network virtual appliances.
  • Custom routing.
  • Hub-and-spoke network topologies.

Bastion-to-VM communication is private, and traffic does not generally need to be forced through Azure Firewall by applying a user-defined route to AzureBastionSubnet.

Azure Firewall

Azure Firewall and Azure Bastion serve different purposes:

  • Azure Bastion provides administrative RDP and SSH connectivity.
  • Azure Firewall provides centralized traffic inspection and filtering.

They can be deployed in the same overall network architecture, but they should not be treated as interchangeable services.


Azure Bastion and Just-in-Time VM Access

Azure Bastion and Just-in-Time VM access solve related but different problems.

Azure Bastion

Azure Bastion:

  • Provides a secure access path to VMs.
  • Reduces the need for public IP addresses.
  • Avoids exposing RDP and SSH directly to the internet.
  • Provides browser-based or native-client connectivity.

Just-in-Time VM Access

Just-in-Time VM access:

  • Opens management ports only when access is requested.
  • Limits the duration of access.
  • Creates temporary network security rules.
  • Is useful for VMs that still require public management access.

Bastion is generally the better choice when the goal is to eliminate public management exposure altogether.

Just-in-Time access may be useful when a VM must retain a public IP address or when direct access is required for a specific operational scenario.

The two controls can be evaluated independently and may be used together where appropriate.


Azure Bastion and Point-to-Site VPN

Azure Bastion provides access to virtual machines through RDP and SSH.

A point-to-site VPN provides network-level access from an individual client into an Azure virtual network.

Use Azure Bastion when administrators need:

  • RDP or SSH access to VMs.
  • A browser-based administrative experience.
  • No public IP address on the VM.
  • A controlled access path to specific virtual machines.

Use point-to-site VPN when administrators need access to:

  • Databases.
  • Internal web applications.
  • Storage services.
  • Multiple private network resources.
  • Other services that are not accessed through RDP or SSH.

A VPN provides broader network access, while Bastion focuses primarily on secure VM administration.


Managing Bastion Sessions

Depending on the SKU and connection method, Bastion may support:

  • Copy and paste.
  • Full-screen sessions.
  • File upload.
  • File download.
  • Custom ports.
  • Shareable links.
  • Session recording.

Shareable Links

Shareable links allow users to connect to a specific VM without navigating through the Azure portal in the usual way.

They are available with Standard and Premium and should be governed carefully because they can simplify access distribution.

Use them only when:

  • The recipient is authorized.
  • The link is distributed securely.
  • The organization understands the access implications.
  • The link is revoked or allowed to expire when no longer needed.

Session Recording

Session recording is available with Premium for supported browser-based sessions.

It can help organizations:

  • Review administrative activity.
  • Support compliance requirements.
  • Investigate suspicious behavior.
  • Establish an audit trail for privileged access.

Session recording should not be assumed to apply to native-client sessions. Native-client sessions do not support session recording.


Monitoring and Troubleshooting

When Bastion connectivity fails, investigate the following areas.

Bastion Resource State

Check:

  • Provisioning state.
  • SKU.
  • Region.
  • Configuration settings.
  • Health status.
  • Availability.
  • Recent deployment changes.

Virtual Network

Verify:

  • The VM is in the expected virtual network.
  • Peering is configured correctly.
  • Peering is in a connected state.
  • Address spaces do not overlap.
  • Required routes are available.
  • The VM has a private IP address.

Subnet

For dedicated deployments, verify:

  • The subnet is named AzureBastionSubnet.
  • The subnet is at least /26.
  • No unrelated resources are deployed in the subnet.
  • NSG configuration is compatible with Bastion.
  • No unsupported user-defined routes are applied.

VM Configuration

Verify:

  • The VM is running.
  • The operating system supports the selected protocol.
  • RDP or SSH is enabled.
  • The required service is running.
  • The VM’s guest firewall permits the connection.
  • The user has the required permissions.
  • The selected port is correct.

Authentication

Check:

  • Username and password.
  • SSH key.
  • Microsoft Entra authentication configuration.
  • VM login role assignments.
  • Local group membership.
  • Credential expiration.
  • Conditional Access requirements.

SKU Features

A connection may fail or an option may be unavailable because the SKU does not support it.

Examples:

  • Native-client option missing: use Standard or Premium.
  • Custom port unavailable: use Standard or Premium.
  • Session recording unavailable: use Premium for supported browser sessions.
  • Private-only deployment unavailable: use Premium.
  • Peered-VNet access unavailable: do not use Developer.

Common Mistakes to Avoid

Mistake 1: Deploying resources into AzureBastionSubnet

The Bastion subnet is reserved for Azure Bastion.

Mistake 2: Using a subnet that is too small

Dedicated Bastion deployments should use at least a /26 subnet to support current and future requirements.

Mistake 3: Assuming Basic supports native-client connections

Native-client connections require Standard or Premium.

Mistake 4: Assuming Premium is required just because the VM has no public IP

All dedicated Bastion SKUs can provide access to VMs without public IP addresses. Premium is required when Bastion itself must be private-only.

Mistake 5: Assuming Bastion replaces RBAC

Azure Bastion provides network access, but users still need appropriate permissions on the Bastion resource, virtual network, VM, and operating system.

Mistake 6: Applying unsupported user-defined routes to the Bastion subnet

User-defined routes are not supported on AzureBastionSubnet.

Mistake 7: Assuming session recording works with native clients

Session recording is not available for native-client connections.

Mistake 8: Using Developer in production

Developer is designed for development and testing and supports only one VM connection at a time.

Mistake 9: Ignoring VM-level firewalls

Bastion does not bypass the VM’s operating system firewall or authentication requirements.

Mistake 10: Confusing Bastion with a VPN

Bastion provides RDP and SSH access. A VPN provides broader network-level connectivity.


Key Takeaways

For the SC-500 exam, remember:

  1. Azure Bastion provides secure RDP and SSH access to Azure VMs.
  2. Bastion reduces the need to expose VM management ports to the internet.
  3. Target VMs do not need public IP addresses.
  4. Dedicated Bastion deployments use AzureBastionSubnet.
  5. The dedicated subnet should be at least /26.
  6. The Bastion subnet is reserved for Bastion.
  7. Developer is intended for development and testing.
  8. Basic provides dedicated browser-based access with fixed capacity.
  9. Standard adds native clients, scaling, custom ports, file transfer, and other advanced features.
  10. Premium adds session recording and private-only deployment.
  11. Native-client support requires Standard or Premium.
  12. Private-only Bastion requires Premium.
  13. Session recording is not available for native-client sessions.
  14. User-defined routes are not supported on the Bastion subnet.
  15. Bastion and Just-in-Time VM access are different controls.
  16. Bastion provides VM administration, while VPN provides broader network access.
  17. VM-level permissions and firewalls still apply.
  18. SKU selection should be based on required features, capacity, and security requirements.

Practice Exam Questions

Question 1

An organization wants administrators to connect to Azure VMs through the Azure portal without assigning public IP addresses to the VMs.

Which service should the organization use?

A. Azure Bastion
B. Azure DNS Private Resolver
C. Azure Application Gateway
D. Azure Load Balancer

Correct answer: A

Explanation: Azure Bastion provides browser-based RDP and SSH access to VMs through their private IP addresses. The VMs do not need public IP addresses for this access pattern.


Question 2

You are deploying a dedicated Azure Bastion resource. Which subnet configuration is required?

A. A subnet named GatewaySubnet with a /29 prefix
B. A subnet named AzureFirewallSubnet with a /27 prefix
C. A subnet named AzureBastionSubnet with at least a /26 prefix
D. A subnet named AppGatewaySubnet with a /28 prefix

Correct answer: C

Explanation: Dedicated Bastion deployments use a subnet named AzureBastionSubnet. A /26 or larger subnet is recommended and required for the supported dedicated deployment configuration.


Question 3

A development team needs free, browser-based access to one Azure VM at a time. The team does not need virtual network peering or advanced features.

Which Bastion SKU should you select?

A. Basic
B. Developer
C. Standard
D. Premium

Correct answer: B

Explanation: The Developer SKU is intended for development and testing, is available at no additional Bastion hourly charge, and supports one VM connection at a time.


Question 4

A production environment requires administrators to connect to VMs using the native RDP client installed on their local Windows computers.

Which minimum Bastion SKU is required?

A. Developer
B. Basic
C. Standard
D. None; native-client support is available with every SKU

Correct answer: C

Explanation: Native-client support requires the Standard or Premium SKU. Developer and Basic support browser-based connections but not native-client connections.


Question 5

A company requires Bastion itself to have no public IP address. Which configuration should be used?

A. Basic Bastion with a private VM IP address
B. Standard Bastion with a private VM IP address
C. Developer Bastion in a peered virtual network
D. Premium Bastion with private-only deployment

Correct answer: D

Explanation: Premium supports private-only deployment, in which Bastion does not use a public IP address. Other dedicated SKUs can access VMs privately but normally require a public IP address for Bastion.


Question 6

Which Bastion feature is available with Premium but not with Standard?

A. Browser-based SSH
B. Browser-based RDP
C. Session recording
D. Access to VMs in the same virtual network

Correct answer: C

Explanation: Premium adds session recording and private-only deployment. Browser-based RDP and SSH and same-VNet connectivity are available with lower dedicated SKUs.


Question 7

An administrator wants to apply a user-defined route to AzureBastionSubnet so that all Bastion traffic passes through an Azure Firewall.

What should the administrator know?

A. User-defined routes are not supported on the Bastion subnet
B. User-defined routes are required for every Bastion deployment
C. User-defined routes are supported only with Developer
D. User-defined routes are required to connect to VMs in the same virtual network

Correct answer: A

Explanation: User-defined routes are not supported on AzureBastionSubnet. Bastion-to-VM communication is private and does not generally require forcing traffic from the Bastion subnet through Azure Firewall.


Question 8

An organization needs to connect to VMs in multiple spoke virtual networks from a Bastion resource deployed in a hub virtual network.

Which requirement is important?

A. The Bastion resource must use Developer
B. Virtual network peering must be configured, and the selected SKU must support peered-VNet connectivity
C. Every VM must have a public IP address
D. All VMs must be in the same subnet as Bastion

Correct answer: B

Explanation: Bastion can support VMs in peered virtual networks when peering is correctly configured and the selected SKU supports that capability. Developer does not support peered-VNet connections.


Question 9

A security team wants to use Azure Bastion to provide RDP and SSH access, but it also needs network-level access to private databases and internal web applications.

Which additional service may be appropriate?

A. Azure VPN Gateway with point-to-site connectivity
B. Azure Storage firewall
C. Azure Key Vault
D. Azure DDoS Protection

Correct answer: A

Explanation: Bastion focuses on RDP and SSH access to VMs. A point-to-site VPN provides broader network-level access to resources such as databases, storage, and internal applications.


Question 10

A company requires file transfer, custom inbound ports, host scaling, and native-client connections through Azure Bastion. Session recording is not required.

Which is the most appropriate minimum SKU?

A. Developer
B. Basic
C. Standard
D. Premium

Correct answer: C

Explanation: Standard supports native-client connections, file transfer, custom inbound ports, and configurable host scaling. Premium is unnecessary unless features such as session recording or private-only deployment are required.


Go to the SC-500 Exam Prep Hub main page

Enable and enforce use of just-in-time (JIT) VM access (SC-500 Exam Prep)

This post is a part of the "SC-500: Implementing End-to-End Security Controls for Cloud and AI Workloads" Exam Prep Hub.
This topic falls under these sections:
Secure compute (20–25%)
   --> Implement security for servers and virtual machines (VMs)
      --> Enable and enforce use of just-in-time (JIT) VM access


Note that there are 10 practice questions (with answers) at the end of each section to help you solidify your knowledge of the material. Also, there are 4 practice tests with 30 questions each available from the hub's main page below the exam topics section.

Overview

Azure virtual machines often require inbound management access through protocols such as:

  • SSH — typically TCP port 22 for Linux VMs
  • RDP — typically TCP port 3389 for Windows VMs
  • WinRM — typically TCP ports 5985 and 5986

Leaving these ports permanently open increases the attack surface of a virtual machine. Attackers can continuously scan exposed management ports and attempt brute-force, credential-stuffing, or exploit-based attacks.

Just-in-time (JIT) VM access in Microsoft Defender for Cloud reduces this exposure by allowing inbound access to selected VM ports only when it is required, from an approved source IP address, and for a limited period.

JIT does not replace authentication, authorization, patching, or network segmentation. Instead, it adds a temporary network-access control layer around administrative access.


What Is Just-in-Time VM Access?

JIT VM access is a Microsoft Defender for Cloud capability that:

  1. Identifies VM management ports that should not remain permanently exposed.
  2. Creates or manages restrictive network rules for those ports.
  3. Requires an authorized user to request temporary access.
  4. Opens the requested ports only for the approved duration.
  5. Restricts access to the requesting IP address or specified address range.
  6. Restores the restrictive network configuration after the access window expires.

For example, an administrator may need to connect to a Linux VM using SSH. Instead of leaving port 22 open continuously, the administrator requests access for 30 minutes from their current public IP address. Defender for Cloud temporarily permits the connection and then closes the access window.

The basic security principle

Open administrative access only when needed, only to the required port, only from the required source, and only for the required duration.


Why JIT VM Access Is Important

1. Reduces the attack surface

Permanent inbound access to RDP or SSH gives attackers more opportunities to discover and target a VM. JIT minimizes the time during which these ports are reachable.

2. Reduces exposure to brute-force attacks

Because management ports remain restricted until access is requested, attackers cannot continuously attempt authentication against those ports during normal operation.

3. Supports least-privilege network access

JIT applies the principle of least privilege to network connectivity:

  • Only selected ports are opened.
  • Only selected source addresses are permitted.
  • Access is available only for a limited time.

4. Improves auditing

JIT access activity can be reviewed to determine:

  • Who requested access
  • Which VM was accessed
  • Which ports were opened
  • Which source IP address was used
  • When access was requested
  • When access expired

5. Helps enforce security standards

Organizations can use Azure Policy to identify or enforce the requirement that supported VMs use JIT access.


JIT VM Access Prerequisites

The principal prerequisite for Azure VM JIT access is:

  • Microsoft Defender for Servers Plan 2 must be enabled on the subscription.

The administrator also needs appropriate permissions to view, configure, or request JIT access.

Supported environments

JIT access supports Azure Resource Manager-based virtual machines. It can also work with supported VMs protected by Azure Firewall on the same virtual network.

Unsupported or restricted scenarios

Important limitations include:

  • Classic deployment-model VMs are not supported.
  • JIT does not support VMs protected by Azure Firewall configurations controlled by Azure Firewall Manager.
  • The Azure Firewall configuration must use the supported rules model.
  • A VM generally needs an appropriate NSG, Azure Firewall configuration, or both.
  • JIT is not a replacement for Azure Bastion, a VPN, or an identity provider.

How JIT Works with Network Security Groups

When JIT is enabled, Defender for Cloud creates or manages restrictive inbound rules for the selected ports.

For example, a VM might normally have the following inbound rule:

PrioritySourceDestination portAction
100Any3389Allow

This permanently exposes RDP to the internet.

With JIT, the selected management port is restricted until an authorized request is made. Defender for Cloud ensures that deny rules exist for the selected ports in the applicable NSG and/or Azure Firewall configuration.

When access is requested and approved, Defender for Cloud temporarily creates an allow rule for:

  • The selected port
  • The requesting source IP address or range
  • The requested duration

After the time window expires, the restrictive configuration is restored.

Important rule-processing consideration

Existing network rules can affect JIT behavior. If another rule already permits traffic to the selected port with a higher priority, that rule may take precedence over the JIT-generated rule.

Therefore, enabling JIT does not automatically correct every conflicting NSG or firewall rule. Administrators should review existing rules and ensure that permanent broad allow rules do not undermine the intended protection.


JIT Access Policy Settings

A JIT policy is configured for a VM and defines which ports can be opened temporarily.

For each protected port, the policy can specify:

  • Port number
  • Protocol
  • Allowed source IP addresses
  • Maximum request access duration

Common ports

PortProtocol or serviceTypical use
22SSHLinux administration
3389RDPWindows administration
5985WinRM over HTTPWindows remote management
5986WinRM over HTTPSSecure Windows remote management

The default recommendations commonly include ports 22, 3389, 5985, and 5986, although the actual ports should be based on the organization’s requirements. Custom ports can also be added.

Example policy

An organization might configure:

SettingValue
Port22
ProtocolTCP
Allowed sourceAdministrator’s public IP range
Maximum duration1 hour

This means the administrator cannot request unlimited access to port 22. The request must remain within the maximum duration defined by the policy.


Enabling JIT Access in the Azure Portal

JIT can be enabled from Microsoft Defender for Cloud or from the Azure virtual machine experience.

From Microsoft Defender for Cloud

  1. Open the Azure portal.
  2. Open Microsoft Defender for Cloud.
  3. Go to Workload protections.
  4. Open Just-in-time VM access.
  5. Select the Not configured virtual machines tab.
  6. Select one or more eligible VMs.
  7. Select Enable JIT on VMs.
  8. Review the recommended ports.
  9. Customize the ports, protocols, source addresses, and maximum duration.
  10. Save the policy.

From the Virtual Machines page

  1. Open Virtual machines in the Azure portal.
  2. Select the target VM.
  3. Open Configuration.
  4. Locate Just-in-time access.
  5. Select Enable just-in-time.
  6. Review or modify the default configuration.
  7. Save the settings.

For Windows VMs, the default RDP port is normally 3389. For Linux VMs, the default SSH port is normally 22. The default maximum access duration is commonly three hours, but this should be reduced when operationally practical.


Configuring JIT Access Securely

The default configuration may be functional but not sufficiently restrictive for a production environment.

Recommended configuration practices

Restrict source IP addresses

Avoid allowing access from Any unless there is a specific business requirement.

Prefer:

  • A corporate public IP range
  • A secured jump-host address
  • A VPN egress address
  • A privileged administrator workstation range

Use the shortest practical duration

If an administrator needs 20 minutes, do not configure a maximum duration of several hours without a reason.

Shorter access windows reduce exposure.

Protect only required ports

Do not enable JIT for unnecessary ports. If a VM is administered only through SSH, there may be no reason to expose RDP or WinRM.

Use custom ports carefully

Changing the port number does not provide meaningful security by itself. Nonstandard ports can reduce casual scanning noise, but they do not replace authentication, authorization, patching, or JIT.

Review existing NSG and firewall rules

Permanent allow rules can undermine the intended JIT protection. Review:

  • NSG inbound rules
  • Azure Firewall rules
  • Load balancer rules
  • Public IP exposure
  • Routing and network virtual appliance rules

Requesting JIT Access

After JIT is enabled, a user must request access before connecting to the VM.

Request process

  1. Open the Just-in-time VM access page.
  2. Select the Configured tab.
  3. Select the target VM.
  4. Select Request access.
  5. Choose the required port or ports.
  6. Specify the source IP address or range.
  7. Specify the requested access duration.
  8. Select Open ports.

The request is evaluated against the user’s permissions and the VM’s JIT policy.

After the request is approved, the user connects using the normal RDP, SSH, or other supported management method.

Requesting access from the VM Connect page

A user can also:

  1. Open the VM in the Azure portal.
  2. Select Connect.
  3. If JIT is enabled, select Request access.
  4. Specify the required access parameters.
  5. Open the ports.
  6. Connect to the VM.

For VMs protected by Azure Firewall, Defender for Cloud may provide the appropriate connection details, including the relevant port mapping.


Does JIT Automatically Approve Every Request?

JIT is not necessarily an approval workflow in the same sense as a formal access-request system.

The user must have the required Azure permissions, and the request must comply with the JIT policy. Depending on the configuration and permissions, an authorized user may be able to open the permitted ports without a separate human approval step.

Organizations requiring managerial or security approval should combine JIT with additional controls, such as:

  • Privileged Identity Management
  • Access reviews
  • Service management approval workflows
  • Conditional Access
  • Privileged access workstations
  • Ticketing and change-management processes

JIT controls temporary network exposure. It does not independently provide a complete privileged-access approval process.


Permissions for JIT Access

Different activities require different permissions.

Viewing JIT information

A user needs appropriate read permissions to view JIT policies and status.

Configuring or editing a JIT policy

A user needs permissions to modify the JIT network access policy and, in some cases, the VM configuration.

Requesting access

A user needs permissions to initiate a JIT access request and read the relevant VM and network configuration.

The principle of least privilege should be applied. A user who only needs to request access should not automatically receive permissions to modify JIT policies or change VM settings.


Enforcing JIT with Azure Policy

Enabling JIT manually on individual VMs does not scale well in a large environment.

Azure Policy can be used to identify VMs that do not comply with the organization’s JIT requirements.

Typical governance approach

  1. Define the organization’s JIT requirement.
  2. Assign an Azure Policy at the subscription or management-group scope.
  3. Evaluate VMs for compliance.
  4. Identify noncompliant VMs.
  5. Remediate or configure JIT where appropriate.
  6. Monitor compliance continuously.

The policy may be used to audit whether JIT is enabled or to support an organizational requirement that eligible VMs use JIT.

Why policy enforcement matters

Without centralized governance, administrators may:

  • Deploy a VM with RDP permanently exposed.
  • Forget to enable JIT.
  • Add a new management port without protecting it.
  • Modify network rules after JIT is configured.
  • Create inconsistent security configurations across subscriptions.

Azure Policy provides a repeatable method for identifying and managing these deviations.


JIT and Azure Bastion

JIT and Azure Bastion address related but different security concerns.

CapabilityJIT VM accessAzure Bastion
Primary purposeTemporarily opens selected management portsProvides managed RDP/SSH connectivity
VM public IP requiredMay be required depending on network designNormally not required
Browser-based connectionNot the primary featureYes
Temporary port accessYesNot the primary feature
Works with existing RDP/SSH clientsYesSupported with appropriate Bastion SKU
Reduces permanently exposed management portsYesYes, by avoiding public VM management exposure
Main controlTime-bound network accessManaged secure connectivity

A strong design may use both:

  • Azure Bastion to provide private administrative connectivity.
  • JIT to restrict management ports when direct network access is required.

JIT and Just-in-Time Privileged Identity Management

JIT VM access should not be confused with Microsoft Entra Privileged Identity Management.

JIT VM access

Controls temporary network access to VM ports.

Privileged Identity Management

Controls temporary privileged role activation.

For example:

  • PIM may temporarily activate the Virtual Machine Administrator Login role.
  • JIT may temporarily open port 3389 from the administrator’s IP address.

Using both controls provides stronger defense in depth because the user must have both:

  1. The appropriate identity and role permissions.
  2. Temporary network connectivity.

JIT and Network Security Groups

JIT does not eliminate the need for NSGs.

NSGs still provide:

  • Subnet-level filtering
  • NIC-level filtering
  • Inbound and outbound traffic control
  • Application-specific network segmentation
  • Persistent baseline security rules

JIT adds temporary management-port control on top of the existing network security design.

Example

An NSG might permanently allow application traffic:

  • TCP 443 from the internet to a web server

But administrative traffic could be controlled through JIT:

  • TCP 3389 closed by default
  • TCP 3389 opened only for an administrator’s IP
  • TCP 3389 automatically restricted after the approved period

JIT and Azure Firewall

JIT can work with supported Azure Firewall configurations.

When Azure Firewall protects a VM, JIT can temporarily modify the relevant firewall access configuration. After the access window expires, the previous restrictive configuration is restored.

Important considerations include:

  • Azure Firewall must use a supported configuration.
  • Azure Firewall Manager-controlled firewall configurations are not supported for JIT.
  • Firewall rules must be reviewed for conflicts.
  • The user may receive a translated or mapped port when connecting through the firewall.

Auditing JIT Activity

JIT activity should be reviewed regularly.

Useful information includes:

  • VM name
  • User who requested access
  • Request time
  • Requested port
  • Source IP address
  • Access duration
  • Whether access was granted
  • Last access time
  • Number of approved requests

This information can help identify:

  • Unexpected administrative activity
  • Excessively long access requests
  • Repeated requests from unusual IP addresses
  • VMs that are accessed more frequently than expected
  • Potential misuse of administrative access

JIT activity should be correlated with other security data, including:

  • Microsoft Entra sign-in logs
  • Azure Activity Log
  • NSG flow logs where available
  • Microsoft Defender for Cloud alerts
  • Microsoft Sentinel incidents
  • Privileged Identity Management activation records

Common JIT Troubleshooting Scenarios

The VM does not appear as eligible

Possible causes include:

  • Defender for Servers Plan 2 is not enabled.
  • The VM uses an unsupported deployment model.
  • The VM lacks a supported NSG or firewall configuration.
  • JIT is disabled by a security policy.
  • The VM is protected by an unsupported Azure Firewall configuration.

The user cannot request access

Check:

  • Azure RBAC permissions
  • VM read permissions
  • JIT request permissions
  • Subscription and resource-group scope
  • Whether the VM is configured for JIT
  • Whether the requested port is included in the policy

The user requested access but cannot connect

Check:

  • The request was successfully opened.
  • The correct source IP was specified.
  • The user is connecting from the same IP address used in the request.
  • The correct port and protocol are being used.
  • The VM is running.
  • The guest operating system firewall allows the traffic.
  • The NSG or Azure Firewall does not contain conflicting rules.
  • The VM service is listening on the expected port.
  • Routing and DNS are functioning correctly.

Access remains available after the expected expiration

Remember that JIT controls network rules. An already established connection may not be interrupted when the access window expires. The expiration prevents new access rather than necessarily terminating an existing session.

A permanent allow rule defeats JIT

Review NSG and firewall priorities. A broad allow rule with a higher priority may continue to permit traffic even when JIT has created a restrictive rule.


Best Practices Summary

  1. Enable Defender for Servers Plan 2 for subscriptions containing eligible VMs.
  2. Enable JIT on all supported administrative VMs.
  3. Protect only required management ports.
  4. Restrict source IP addresses whenever possible.
  5. Use the shortest practical access duration.
  6. Review NSG and Azure Firewall rules for conflicts.
  7. Combine JIT with Azure Bastion where appropriate.
  8. Combine JIT with PIM for privileged role activation.
  9. Use Azure Policy to identify noncompliant VMs.
  10. Audit JIT requests and correlate them with identity and security logs.
  11. Do not treat changing an SSH or RDP port as a substitute for JIT.
  12. Remember that JIT does not replace patching, endpoint protection, strong authentication, or least-privilege RBAC.

Key Exam Takeaways

For the SC-500 exam, remember the following:

  • JIT VM access is provided through Microsoft Defender for Cloud.
  • Microsoft Defender for Servers Plan 2 is a prerequisite for Azure VM JIT access.
  • JIT reduces exposure by restricting inbound management ports.
  • Access is requested for a specific port, source IP address, and time window.
  • Common ports include 22, 3389, 5985, and 5986.
  • JIT policies can include custom ports.
  • JIT works with supported NSG and Azure Firewall configurations.
  • Existing higher-priority allow rules can undermine JIT protection.
  • JIT can be enabled and managed through the Azure portal, PowerShell, or REST API.
  • Azure Policy can be used to enforce or audit JIT adoption.
  • JIT controls temporary network access; it does not replace RBAC, PIM, Bastion, or authentication.
  • Expiration of a JIT window does not necessarily terminate an already established connection.

Practice Exam Questions

Question 1

An organization has several Azure Windows VMs with RDP port 3389 permanently open to the internet. Security administrators want to allow RDP only when an administrator needs access and only for a limited period.

Which solution should they implement?

A. Just-in-time VM access in Microsoft Defender for Cloud
B. Azure Resource Lock
C. Azure Storage firewall rules
D. Microsoft Defender for Storage

Answer: A

Explanation: JIT VM access restricts inbound management ports and temporarily opens them only when access is requested. Resource locks protect resources from deletion or modification, while Storage firewall rules and Defender for Storage do not control RDP access to VMs.


Question 2

What is required before enabling just-in-time access for Azure virtual machines through Microsoft Defender for Cloud?

A. Microsoft Defender for Containers
B. Microsoft Defender for Servers Plan 2
C. Azure Kubernetes Service
D. Microsoft Sentinel automation rules

Answer: B

Explanation: Microsoft Defender for Servers Plan 2 must be enabled on the subscription for Azure VM JIT access.


Question 3

A Linux administrator needs SSH access to a VM for 45 minutes from a corporate public IP address. The JIT policy protects SSH port 22 and allows a maximum request duration of two hours.

Which information should the administrator provide when requesting access?

A. The VM’s operating-system password only
B. The VM’s resource lock and subscription ID
C. Port 22, the corporate source IP address, and a duration of 45 minutes
D. The Azure Storage account and container name

Answer: C

Explanation: A JIT request specifies the port, source IP address or range, and requested access duration. Authentication to the VM is still required separately.


Question 4

An organization wants to ensure that all eligible Azure VMs use JIT access. Administrators should be able to identify VMs that do not comply with the requirement.

Which service should be used?

A. Azure Policy
B. Azure DNS
C. Azure Load Balancer
D. Azure Front Door

Answer: A

Explanation: Azure Policy can audit or enforce organizational requirements and identify VMs that do not comply with JIT-related governance requirements.


Question 5

A VM has JIT enabled for RDP. However, users can still connect to port 3389 even when no JIT request is active.

What should the administrator investigate first?

A. Whether the VM has a managed identity
B. Whether the VM uses a Premium SSD
C. Whether the VM has a resource lock
D. Whether another higher-priority NSG or firewall rule permanently allows RDP

Answer: D

Explanation: Existing higher-priority allow rules can take precedence over JIT-generated restrictions. NSG and Azure Firewall rules should be reviewed for conflicting permanent access.


Question 6

Which statement best describes the relationship between JIT VM access and Azure Bastion?

A. JIT replaces the need for Azure RBAC
B. Azure Bastion is required for every JIT request
C. JIT controls temporary network access, while Bastion provides managed RDP/SSH connectivity
D. Azure Bastion permanently opens RDP and SSH ports on the VM

Answer: C

Explanation: JIT and Bastion provide different controls. JIT manages temporary access to management ports, while Bastion provides secure managed connectivity without requiring a public IP on the target VM in the normal design.


Question 7

A security engineer wants administrators to request JIT access only from approved corporate IP addresses rather than from any internet address.

Which JIT setting should be configured?

A. Allowed source IP addresses
B. VM disk encryption type
C. Azure resource lock level
D. Guest operating system image version

Answer: A

Explanation: The JIT policy allows administrators to define permitted source IP addresses or ranges for each protected port.


Question 8

A user requests JIT access to a VM protected by a supported Azure Firewall configuration. After the request is approved, Defender for Cloud provides a port mapping that differs from the VM’s internal RDP port.

Why might this occur?

A. JIT has changed the VM’s operating system
B. Azure Firewall may use a DNAT port mapping for the connection
C. The VM has been converted into an App Service
D. The VM’s managed identity has expired

Answer: B

Explanation: When Azure Firewall protects the VM, the user may need to connect using the connection details and port mapping associated with the firewall’s DNAT configuration.


Question 9

An administrator requests JIT access for 30 minutes and establishes an SSH session. The 30-minute window expires, but the existing SSH session remains connected.

Is this behavior consistent with JIT?

A. Yes. JIT expiration restricts new access but does not necessarily terminate established connections
B. No. JIT must always forcibly terminate every active session
C. No. JIT only controls outbound traffic
D. Yes, but only when the VM uses Azure Bastion

Answer: A

Explanation: JIT expiration restores the restrictive network configuration. Existing connections may remain active, so organizations should use session controls and operational procedures when immediate termination is required.


Question 10

Which approach provides the strongest defense-in-depth design for administrative access to sensitive Azure VMs?

A. Change the RDP port and leave it permanently open
B. Use JIT alone and disable all identity controls
C. Use JIT, least-privilege RBAC, strong authentication, and Azure Bastion or another secure connectivity method where appropriate
D. Use a resource lock to protect the VM from network attacks

Answer: C

Explanation: JIT should be combined with identity, authorization, authentication, network, and endpoint security controls. Changing ports does not eliminate exposure, and resource locks do not protect network access.


Go to the SC-500 Exam Prep Hub main page