Skip to content

Commit c98ba61

Browse files
author
Michael Bender
committed
Policy Updates GH#107598
1 parent e8f383a commit c98ba61

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

articles/virtual-network-manager/concept-azure-policy-integration.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.author: mbender
66
ms.service: virtual-network-manager
77
ms.topic: conceptual
88
ms.date: 04/14/2023
9-
ms.custom: template-concept
9+
ms.custom: template-concept, engagement-fy23
1010
---
1111

1212
# Configuring Azure Policy with network groups in Azure Virtual Network Manager
@@ -59,6 +59,26 @@ With network groups, your policy definition includes your conditional expression
5959
>
6060
>If you need to parameterize the network group, you can utilize an Azure Resource Manager template to create the policy definition and assignment.
6161
62+
When Azure Policy is used with Azure Virtual Network Manager, the policy targets a [Resource Provider property](../governance/policy/concepts/definition-structure.md#resource-provider-modes) of `Microsoft.Network.Data`. Because of this, you need to specify a *policyType* of `Custom` in your policy definition. When you [create a policy to dynamically add members](how-to-exclude-elements.md) in Virtual Network Manager, this is applied automatically when the policy is created. You only need to choose `custom` when [creating a new policy definition](../governance/policy/tutorials/create-and-manage.md) through Azure Policy or other tooling outside of the Virtual Network Manager dashboard.
63+
64+
Here's a sample of a policy definition with the `policyType` property set to `Custom`.
65+
66+
```json
67+
68+
"properties": {
69+
"displayName": "myProdAVNM",
70+
"policyType": "Custom",
71+
"mode": "Microsoft.Network.Data",
72+
"metadata": {
73+
"category": "Azure Virtual Network Manager",
74+
"createdBy": "-----------------------------",
75+
"createdOn": "2023-04-10T15:35:35.9308987Z",
76+
"updatedBy": null,
77+
"updatedOn": null
78+
}
79+
}
80+
81+
```
6282
Learn more about [policy definition structure](../governance/policy/concepts/definition-structure.md).
6383

6484
## Policy assignments

0 commit comments

Comments
 (0)