Skip to content

Commit c7fc7c2

Browse files
committed
adds deploy to azure button
1 parent 0688fb4 commit c7fc7c2

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

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

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Quickstart: Create policy assignment using ARM template"
33
description: In this quickstart, you create an Azure Policy assignment to identify non-compliant resources using an Azure Resource Manager template (ARM template).
4-
ms.date: 02/26/2024
4+
ms.date: 03/19/2024
55
ms.topic: quickstart
66
ms.custom: subject-armqs, mode-arm, devx-track-arm-template, devx-track-azurecli, devx-track-azurepowershell
77
---
@@ -12,6 +12,11 @@ In this quickstart, you use an Azure Resource Manager template (ARM template) to
1212

1313
[!INCLUDE [About Azure Resource Manager](../../../includes/resource-manager-quickstart-introduction.md)]
1414

15+
If your environment meets the prerequisites and you're familiar with using ARM templates,
16+
select the **Deploy to Azure** button. The template opens in the Azure portal.
17+
18+
:::image type="content" source="~/articles/reusable-content/ce-skilling/azure/media/template-deployments/deploy-to-azure-button.svg" alt-text="Screenshot of the Deploy to Azure button to assign a policy with an Azure Resource Manager template." link="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2Fquickstarts%2Fmicrosoft.authorization%2Fazurepolicy-builtin-vm-managed-disks%2Fazuredeploy.json":::
19+
1520
## Prerequisites
1621

1722
- If you don't have an Azure account, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
@@ -37,15 +42,24 @@ Create the following ARM template as _policy-assignment.json_.
3742
"parameters": {
3843
"policyAssignmentName": {
3944
"type": "string",
40-
"defaultValue": "audit-vm-managed-disks"
45+
"defaultValue": "audit-vm-managed-disks",
46+
"metadata": {
47+
"description": "Policy assignment name used in assignment's resource ID"
48+
}
4149
},
4250
"policyDefinitionID": {
4351
"type": "string",
44-
"defaultValue": "/providers/Microsoft.Authorization/policyDefinitions/06a78e20-9358-41c9-923c-fb736d382a4d"
52+
"defaultValue": "/providers/Microsoft.Authorization/policyDefinitions/06a78e20-9358-41c9-923c-fb736d382a4d",
53+
"metadata": {
54+
"description": "Policy definition ID"
55+
}
4556
},
4657
"policyDisplayName": {
4758
"type": "string",
48-
"defaultValue": "Audit VM managed disks"
59+
"defaultValue": "Audit VM managed disks",
60+
"metadata": {
61+
"description": "Display name for Azure portal"
62+
}
4963
}
5064
},
5165
"resources": [

0 commit comments

Comments
 (0)