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
The **Azure Monitor for VMs Policy Coverage** lists the tenant root group, which consists of the top-level management groups and subscriptions in your tenant. To assign an initiative to a lower-level management group or subscription, select one of the management groups to drill down in your [hierarchy of management groups](../../governance/management-groups/overview.md#hierarchy-of-management-groups-and-subscriptions).
39
+
:::image type="content" source="media/vminsights-enable-policy/vm-insights-assign-initiative.png" lightbox="media/vminsights-enable-policy/vm-insights-assign-initiative.png" alt-text="Screenshot that shows the Policy Assignments screen with the Assign initiative button highlighted.":::
40
40
41
-
:::image type="content" source="media/vminsights-enable-policy/other-onboarding-options.png" lightbox="media/vminsights-enable-policy/other-onboarding-options.png" alt-text="Screenshot showing other onboarding options page of VM insights with the Enable using policy option.":::
42
-
43
-
1. Select **Assign Policy** to assign a policy to a subscription or management group.
1. (Optional) Change the **Assignment name** and add a **Description**.
48
-
1. Select **Exclusions** to exclude specific resources from the policy assignment. For example, if your scope is a management group, you might specify a subscription in that management group to be excluded from the assignment.
1.On the **Parameters** tab, select a **Log Analytics workspace** to which all virtual machines in the assignment will send data. For virtual machines to send data to different workspaces, create multiple assignments, each with their own scope.
45
+
1.Configure the initiative assignment:
53
46
54
-
If you're assigning a legacy initiative, the workspace must have the *VMInsights* solution installed, as described in [Configure Log Analytics workspace for VM insights](vminsights-configure-workspace.md).
> If you select a workspace that's not within the scope of the assignment, grant *Log Analytics Contributor* permissions to the policy assignment's Principal ID. Otherwise, you might get a deployment failure like `The client '343de0fe-e724-46b8-b1fb-97090f7054ed' with object id '343de0fe-e724-46b8-b1fb-97090f7054ed' does not have authorization to perform action 'microsoft.operationalinsights/workspaces/read' over scope ...`
47
+
1. In the **Scope** field, select the management group or subscription to which you'll assign the initiative.
48
+
1. (Optional) Select **Exclusions** to exclude specific resources from the initiative assignment. For example, if your scope is a management group, you might specify a subscription in that management group to be excluded from the assignment.
49
+
1. Select the ellipsis (...) next to **Initiative assignment** to launch the policy definition picker, and select one of the VM insights initiatives.
50
+
1. (Optional) Change the **Assignment name** and add a **Description**.
51
+
1. On the **Parameters** tab, select a **Log Analytics workspace** to which all virtual machines in the assignment will send data. For virtual machines to send data to different workspaces, create multiple assignments, each with their own scope.
52
+
53
+
If you're assigning a legacy initiative, the workspace must have the *VMInsights* solution installed, as described in [Configure Log Analytics workspace for VM insights](vminsights-configure-workspace.md).
> If you select a workspace that's not within the scope of the assignment, grant *Log Analytics Contributor* permissions to the policy assignment's Principal ID. Otherwise, you might get a deployment failure like `The client '343de0fe-e724-46b8-b1fb-97090f7054ed' with object id '343de0fe-e724-46b8-b1fb-97090f7054ed' does not have authorization to perform action 'microsoft.operationalinsights/workspaces/read' over scope ...`
60
59
61
60
1. Select **Review + Create** to review the initiative assignment details and select **Create** to create the assignment.
62
61
63
-
Don't create a remediation task at this point because you'll probably need multiple remediation tasks to enable existing virtual machines. For more information about creating remediation tasks, see [Remediate compliance results](#create-a-remediate-task).
62
+
Don't create a remediation task at this point because you'll probably need multiple remediation tasks to enable existing virtual machines. For more information about creating remediation tasks, see [Remediate compliance results](#create-a-remediation-task).
64
63
65
64
## Review compliance for a VM insights policy initiative
66
65
67
66
After you assign an initiative, you can review and manage compliance for the initiative across your management groups and subscriptions.
68
67
69
68
To see how many virtual machines exist in each of the management groups or subscriptions and their compliance status:
1. Select **Overview** > **Other onboarding options** and then **Enable** under **Enable using policy**.
70
+
1. Search for and open **Azure Monitor**.
71
+
1. Select **Virtual machines** > **Overview** > **Other onboarding options** and then **Enable** under **Enable using policy**.
72
+
73
+
:::image type="content" source="media/vminsights-enable-policy/other-onboarding-options.png" lightbox="media/vminsights-enable-policy/other-onboarding-options.png" alt-text="Screenshot showing other onboarding options page of VM insights with the Enable using policy option.":::
74
+
75
+
This opens the **Azure Monitor for VMs Policy Coverage** page.
This table describes the compliance information provided on the **Azure Monitor for VMs Policy Coverage** page.
79
+
The following table describes the compliance information presented on the **Azure Monitor for VMs Policy Coverage** page.
77
80
78
81
| Function | Description |
79
82
|----------|-------------|
@@ -106,11 +109,10 @@ To see how many virtual machines exist in each of the management groups or subsc
106
109
107
110
1. Select a policy definition to open the **Policy compliance** page.
108
111
109
-
## Create a remediate task
112
+
## Create a remediation task
110
113
111
114
If your assignment doesn't show 100% compliance, create remediation tasks to evaluate and enable existing VMs. You'll most likely need to create multiple remediation tasks, one for each policy definition. You can't create a remediation task for an initiative.
112
115
113
-
114
116
To create a remediation task:
115
117
116
118
1. From the **Initiative compliance** page, select **Create Remediation Task**.
@@ -121,12 +123,16 @@ To create a remediation task:
0 commit comments