Azure Policy Minimum Definitions and Assignments

AZ-305 By islever Editorial Last updated

Short answer

You need 2 Policy Definitions and 2 Policy Assignments. Create one definition for network access and one for tags, then assign each once at the Management Group level with exclusions for the unaffected subscriptions.

Question

HOTSPOT
You have six Azure subscriptions in a management group. Each subscription contains two resource groups. Each resource group contains an Azure App Service instance. The App Service instances use app slots.
You need to perform the following actions on three of the subscriptions:
• Disable public network access for all the app slots.
• Assign tags to all the App Service instances.
The solution must meet the following requirements:
• Ensure that the App Service instances in the remaining subscriptions are unaffected.
• Minimize administrative effort.
What is the minimum number of Azure Policy definitions and assignments required? To answer, select the appropriate options in the answer area.
Exhibit: Azure Policy Minimum Definitions and Assignments

Key Takeaways

Separate compliance goals require separate definitions, but a single scope-based assignment with exclusions minimizes the total count.

Determine the minimum Azure Policy requirements for configuring App Service instances across multiple subscriptions in a management group while excluding others.

Common mistake: Learners often over-provision by creating individual assignments for each of the three target subscriptions, resulting in 6 total assignments instead of 2.

Expert Analysis

Policy Definitions vs. Assignments The problem requires two distinct compliance actions: disabling public network access and assigning tags. These are separate configuration states, so you must create two Azure Policy definitions. A single definition cannot enforce both a network restriction and a tag assignment simultaneously.

Assignment Scope and Exclusions To minimize administrative effort while affecting only three subscriptions within a management group containing six, the optimal strategy is to assign both policies at the Management Group scope. Instead of creating three separate assignments (one per target subscription), you create one assignment per policy that includes an exclusion filter for the three unaffected subscriptions. This ensures the remaining three subscriptions inherit the policies by default.

Minimum Count Therefore, the minimum number of Policy Definitions is 2, and the minimum number of Assignments is 2 (one for the network policy, one for the tagging policy). Any other approach, such as assigning individually to each subscription or trying to combine the policies, would increase administrative overhead or violate technical constraints.

Official Reference

https://learn.microsoft.com/en-us/azure/governance/policy/overview

This link opens the official vendor documentation in a new tab.

Exam Strategy

When asked for 'minimum administrative effort,' look for opportunities to use hierarchical scoping (Management Group) combined with exclusions rather than adding more assignments. Always separate distinct compliance rules into different definitions first, then consolidate their application via scope.

Frequently Asked Questions

Can I combine network access and tagging into one policy?

No. Azure Policy definitions enforce a single effect or a set of related effects. Network access control and tag assignment are distinct resource properties requiring separate definitions.

Why not assign policies directly to the three subscriptions?

Assigning to each subscription individually increases administrative effort. Using Management Group scope with exclusions achieves the same result with fewer assignments.

Discussion 1 contributions

Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.

From public community threads 1

  1. 7bc6163 👍 1
    You need two different policy behaviors (network access configuration and tagging), so two policy definitions are required. By assigning each policy once at the management group scope and excluding the three unaffected subscriptions, you only need one assignment per policy. This is the minimum-administration approach.

Reader comments & corrections

No reader corrections yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Practice All AZ-305 Questions

Access 95 questions with complete answers and detailed explanations.

View Full AZ-305 Practice Test →

← Back to AZ-305 Study Guide