Skip to content

Commit 3061a86

Browse files
Add note to clarify policy requirements
Because this policy fails on assignment if the customer doesn't have a resource group named **NetworkWatcherRG** in their subscription, I added it. This fix addresses [customer issue #83755](https://github.com/MicrosoftDocs/azure-docs/issues/83755). ------- cc: @timwarner-msft
1 parent bc02cde commit 3061a86

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

articles/governance/policy/samples/pattern-deploy-resources.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
---
22
title: "Pattern: Deploy resources with a policy definition"
33
description: This Azure Policy pattern provides an example of how to deploy resources with a deployIfNotExists policy definition.
4-
ms.date: 08/17/2021
4+
ms.date: 05/16/2022
55
ms.topic: sample
6+
ms.author: timwarner
7+
author: timwarner-msft
68
---
79
# Azure Policy pattern: deploy resources
810

@@ -19,6 +21,10 @@ updated. When that resource is a _Microsoft.Network/virtualNetworks_, the policy
1921
watcher in the location of the new or updated resource. If a matching network watcher isn't located,
2022
the ARM template is deployed to create the missing resource.
2123

24+
> [!NOTE]
25+
> This policy requires you have a resource group named **NetworkWatcherRG** in your subscription. Azure
26+
> creates the **NetworkWatcherRG** resource group when you enable Network Watcher in a region.
27+
2228
:::code language="json" source="~/policy-templates/patterns/pattern-deploy-resources.json":::
2329

2430
### Explanation

0 commit comments

Comments
 (0)