You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/governance/policy/assign-policy-portal.md
+16-10Lines changed: 16 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: "Quickstart: Create policy assignment using Azure portal"
3
3
description: In this quickstart, you create an Azure Policy assignment to identify non-compliant resources using Azure portal.
4
-
ms.date: 02/29/2024
4
+
ms.date: 07/03/2024
5
5
ms.topic: quickstart
6
6
---
7
7
@@ -23,11 +23,11 @@ In this quickstart, you create a policy assignment with a built-in policy defini
23
23
1. Sign in to the [Azure portal](https://portal.azure.com).
24
24
1. Search for _policy_ and select it from the list.
25
25
26
-
:::image type="content" source="./media/assign-policy-portal/search-policy.png" alt-text="Screenshot of the Azure portal to search for policy.":::
26
+
:::image type="content" source="./media/assign-policy-portal/search-policy.png" alt-text="Screenshot of the Azure portal to search for policy." lightbox="./media/assign-policy-portal/search-policy.png":::
27
27
28
28
1. Select **Assignments** on the **Policy** pane.
29
29
30
-
:::image type="content" source="./media/assign-policy-portal/select-assignments.png" alt-text="Screenshot of the Assignments pane that highlights the option to Assign policy.":::
30
+
:::image type="content" source="./media/assign-policy-portal/select-assignments.png" alt-text="Screenshot of the Assignments pane that highlights the option to Assign policy." lightbox="./media/assign-policy-portal/select-assignments.png":::
31
31
32
32
1. Select **Assign Policy** from the **Policy Assignments** pane.
33
33
@@ -37,21 +37,27 @@ In this quickstart, you create a policy assignment with a built-in policy defini
37
37
| ---- | ---- |
38
38
|**Scope**| Use the ellipsis (`...`) and then select a subscription and a resource group. Then choose **Select** to apply the scope. |
39
39
|**Exclusions**| Optional and isn't used in this example. |
40
-
|**Policy definition**| Select the ellipsis to open the list of available definitions. |
41
-
|**Available Definitions**| Search the policy definitions list for _Audit VMs that do not use managed disks_ definition, select the policy, and select **Add**. |
40
+
|**Resource selectors**| Skip resource selectors for this example. Resource selectors let you refine the resources affected by the policy assignment. |
41
+
|**Policy definition**| Select the ellipsis (`...`) to open the list of available definitions. |
42
+
|**Available Definitions**| Search the policy definitions list for _Audit VMs that do not use managed disks_ definition, select the policy, and select **Add**. There's a column that shows the latest version of the definition. |
43
+
|**Version (preview)**| Accept the version in format `1.*.*` to ingest major, minor, and patch versions. <br/><br/> Select the ellipsis (`...`) to view available versions and the options to enroll in minor version updates or preview versions. You must select a version to change the options. For more information, go to [definition version within assignment](./concepts/assignment-structure.md#policy-definition-id-and-version-preview). |
42
44
|**Assignment name**| By default uses the name of the selected policy. You can change it but for this example, use the default name. |
43
45
|**Description**| Optional to provide details about this policy assignment. |
44
46
|**Policy enforcement**| Defaults to _Enabled_. For more information, go to [enforcement mode](./concepts/assignment-structure.md#enforcement-mode). |
45
-
|**Assigned by**| Defaults to who is signed in to Azure. This field is optional and custom values can be entered. |
46
47
47
-
:::image type="content" source="./media/assign-policy-portal/select-available-definition.png" alt-text="Screenshot of filtering the available definitions.":::
48
+
:::image type="content" source="./media/assign-policy-portal/select-available-definition.png" alt-text="Screenshot of the policy assignment and available definitions that highlights policy version." lightbox="./media/assign-policy-portal/select-available-definition.png":::
48
49
49
-
1. Select **Next** to view each tab for **Advanced**, **Parameters**, and **Remediation**. No changes are needed for this example.
50
+
1. After a Policy definition is selected, you can change the **Version (preview)** options.
51
+
52
+
For example, if you select the options shown in the image, the **Version (preview)** is changed to `1.0.*`.
53
+
54
+
:::image type="content" source="./media/assign-policy-portal/select-version.png" alt-text="Screenshot of the policy definition version options to enroll in minor or preview versions." lightbox="./media/assign-policy-portal/select-version.png":::
55
+
56
+
1. Select **Next** to view each tab for **Parameters** and **Remediation**. No changes are needed for this example.
50
57
51
58
| Tab name | Options |
52
59
| ---- | ---- |
53
-
|**Advanced**| Includes options for [resource selectors](./concepts/assignment-structure.md#resource-selectors) and [overrides](./concepts/assignment-structure.md#overrides). |
54
-
|**Parameters**| If the policy definition you selected on the **Basics** tab included parameters, they're configured on **Parameters** tab. This example doesn't use parameters. |
60
+
|**Parameters**| If the policy definition you selected on the **Basics** tab has parameters, you configure them on the **Parameters** tab. This example doesn't use parameters. |
55
61
|**Remediation**| You can create a managed identity. For this example, **Create a Managed Identity** is unchecked. <br><br> This box _must_ be checked when a policy or initiative includes a policy with either the [deployIfNotExists](./concepts/effects.md#deployifnotexists) or [modify](./concepts/effects.md#modify) effect. For more information, go to [managed identities](../../active-directory/managed-identities-azure-resources/overview.md) and [how remediation access control works](./how-to/remediate-resources.md#how-remediation-access-control-works). |
56
62
57
63
1. Select **Next** and on the **Non-compliance messages** tab create a **Non-compliance message** like _Virtual machines should use managed disks_.
0 commit comments