Azure-docs: Impact on existing recources?

Created on 20 Mar 2020  Â·  3Comments  Â·  Source: MicrosoftDocs/azure-docs

The page talks about audit and remediation but where is the information on the impact of resources? If you apply a no allow on /VitualMachines will the machines in that RG be de-allocated? Thanks in advance.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 assigned-to-author azure-policsvc product-question triaged

Most helpful comment

@Aus-A-Lot Thanks for the question! As this article mentions in the intro, Policy evaluates _create_ and _update_ requests to perform the _effect_ defined in the policy definition on them. Information on how each effect impacts the request is on the effects page. Each effect explains how it handles a _create_ (PUT) or _update_ (PATCH) call to Azure and also how the evaluation cycle of existing resources affects their compliance.

Short answer: No, a Deny policy effect won't de-allocate existing resources. It rejects requests on _create_ or _update_ based on the policy definition. Existing non-compliant resources are marked as just that, _Non-compliant_. If the resource is _Non-compliant_ to a Modify or DeployIfNotExists policy definition, then it can use Remediation tasks to adjust existing resources.

Thanks for the question!

@MicrosoftDocs/azure-cxp-triage Please label 'product-question' and #please-close.

All 3 comments

@Aus-A-Lot Thanks for the question! As this article mentions in the intro, Policy evaluates _create_ and _update_ requests to perform the _effect_ defined in the policy definition on them. Information on how each effect impacts the request is on the effects page. Each effect explains how it handles a _create_ (PUT) or _update_ (PATCH) call to Azure and also how the evaluation cycle of existing resources affects their compliance.

Short answer: No, a Deny policy effect won't de-allocate existing resources. It rejects requests on _create_ or _update_ based on the policy definition. Existing non-compliant resources are marked as just that, _Non-compliant_. If the resource is _Non-compliant_ to a Modify or DeployIfNotExists policy definition, then it can use Remediation tasks to adjust existing resources.

Thanks for the question!

@MicrosoftDocs/azure-cxp-triage Please label 'product-question' and #please-close.

Thanks so much for the quick and clear answer! That helped a lot.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bityob picture bityob  Â·  3Comments

Favna picture Favna  Â·  3Comments

JamesDLD picture JamesDLD  Â·  3Comments

Ponant picture Ponant  Â·  3Comments

mrdfuse picture mrdfuse  Â·  3Comments