Skip to content

Commit 1f8b221

Browse files
authored
Merge pull request #107888 from mumian/0305-policy
update the article to make it compliant with the arm quickstart guidance
2 parents be68355 + 8edfe35 commit 1f8b221

File tree

2 files changed

+19
-12
lines changed

2 files changed

+19
-12
lines changed

articles/governance/policy/assign-policy-template.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
---
22
title: "Quickstart: New policy assignment with templates"
33
description: In this quickstart, you use a Resource Manager template to create a policy assignment to identify non-compliant resources.
4-
ms.date: 11/25/2019
4+
ms.date: 03/16/2020
55
ms.topic: quickstart
6+
ms.custom: subject-armqs
67
---
78
# Quickstart: Create a policy assignment to identify non-compliant resources by using a Resource Manager template
89

910
The first step in understanding compliance in Azure is to identify the status of your resources.
1011
This quickstart steps you through the process of creating a policy assignment to identify virtual
11-
machines that aren't using managed disks.
12-
13-
At the end of this process, you'll successfully identify virtual machines that aren't using managed
12+
machines that aren't using managed disks. At the end of this process, you'll successfully identify virtual machines that aren't using managed
1413
disks. They're _non-compliant_ with the policy assignment.
1514

15+
[!INCLUDE [About Azure Resource Manager](../../../includes/resource-manager-quickstart-introduction.md)]
16+
1617
## Prerequisites
1718

1819
If you don't have an Azure subscription, create a [free](https://azure.microsoft.com/free/) account
@@ -24,11 +25,17 @@ In this quickstart, you create a policy assignment and assign a built-in policy
2425
_Audit VMs that do not use managed disks_. For a partial list of available built-in policies, see
2526
[Azure Policy samples](./samples/index.md).
2627

27-
There are several methods for creating policy assignments. In this quickstart, you use a
28-
[quickstart template](https://azure.microsoft.com/resources/templates/101-azurepolicy-assign-builtinpolicy-resourcegroup/).
29-
Here is a copy of the template:
28+
### Review the template
29+
30+
The template used in this quickstart is from [Azure Quickstart templates](https://azure.microsoft.com/resources/templates/101-azurepolicy-assign-builtinpolicy-resourcegroup/).
31+
32+
:::code language="json" source="~/quickstart-templates/101-azurepolicy-assign-builtinpolicy-resourcegroup/azuredeploy.json" range="1-36" highlight="26-34":::
33+
34+
The resource defined in the template is:
35+
36+
- [Microsoft.Authorization/policyAssignments](/azure/templates/microsoft.authorization/policyassignments)
3037

31-
[!code-json[policy-assignment](~/quickstart-templates/101-azurepolicy-assign-builtinpolicy-resourcegroup/azuredeploy.json)]
38+
### Deploy the template
3239

3340
> [!NOTE]
3441
> Azure Policy service is free. For more information, see
@@ -63,7 +70,7 @@ Some additional resources:
6370
- To learn subscription-level deployment, see
6471
[Create resource groups and resources at the subscription level](../../azure-resource-manager/templates/deploy-to-subscription.md).
6572

66-
## Identify non-compliant resources
73+
## Validate the deployment
6774

6875
Select **Compliance** in the left side of the page. Then locate the **Audit VMs that do not use
6976
managed disks** policy assignment you created.

articles/governance/policy/toc.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
- name: Assign a policy - Portal
1212
displayName: assign, compliance
1313
href: assign-policy-portal.md
14-
- name: Assign a policy - PowerShell
14+
- name: Assign a policy - Azure PowerShell
1515
displayName: assign, compliance
1616
href: assign-policy-powershell.md
1717
- name: Assign a policy - Azure CLI
1818
displayName: assign, compliance
1919
href: assign-policy-azurecli.md
20-
- name: Assign a policy - template
21-
displayName: assign, compliance, resource manager, ARM
20+
- name: Assign a policy - ARM template
21+
displayName: assign, compliance, resource manager
2222
href: assign-policy-template.md
2323
- name: Tutorials
2424
items:

0 commit comments

Comments
 (0)