AZ-900 Question about Policy

Dustin Trinh 106 Reputation points
2022-07-08T15:26:53.617+00:00

You have an Azure virtual network named VNET1 in a resource group named RG1.
You assign an Azure policy specifying that virtual networks are not an allowed resource type in RG1. VNET1 is
deleted automatically?

  1. Yes, deleted automatically.
  2. Continues to function normally
  3. Is now a read-only object

As this is in the practice exams, the answers are different from each platform and I just want to make sure which one is the correct one. Sorry that I couldn't find the answer in the documentation.

  1. I see no "Delete automatically" in the documentation anywhere so I assume this is not right.
  2. I see it will be marked as Non-Compliant but not sure if it is being shut down or just continuing to run.
  3. I read on StackOverflow that it cannot be deployed in the future due to being Non-compliant. And is it somewhat mean read-only? Does it run normally?

Thank you in advance.

Community Center | Not monitored
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2022-07-08T15:45:47.327+00:00

    Microsoft Certification Program is supported on their own forums. I'd try asking for help with course issues in dedicated forums here. (Participate\Ask A Question)
    Courses and Course Content/Course Content Issue
    Troubleshooting known issues
    Content Reporting

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    11 people found this answer helpful.
    0 comments No comments

  2. Mohamed Yousuf Mohamed Firnas 0 Reputation points
    2023-07-27T05:03:42.17+00:00

    The VNet will be marked as ‘Non-compliant’ when the policy is assigned. However, it will not be deleted and will continue to function normally.
    Azure Policy is a service in Azure that you use to create, assign, and manage policies. These policies enforce different rules and effects over your resources, so those resources stay compliant with your corporate standards and service level agreements.
    If there are any existing resources that aren’t compliant with a new policy assignment, they appear under Non-compliant resources.

    References: https://docs.microsoft.com/en-us/azure/governance/policy/overview https://docs.microsoft.com/en-us/azure/governance/policy/assign-policy-portal

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.