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
2 Long Running O… AzureLongRunni… Running True localhost Start-AzPolicyCompliance…
106
+
```
107
+
108
+
When the compliance scan completes, the **State** property changes to _Completed_.
109
+
110
+
#### On-demand evaluation scan - REST
111
+
112
+
As an asynchronous process, the REST endpoint to start the scan doesn't wait until the scan is
113
+
complete to respond. Instead, it provides a URI to query the status of the requested evaluation.
70
114
71
115
In each REST API URI, there are variables that are used that you need to replace with your own values:
72
116
@@ -79,20 +123,20 @@ scope with a REST API **POST** command using the following URI structures:
79
123
- Subscription
80
124
81
125
```http
82
-
POST https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyStates/latest/triggerEvaluation?api-version=2018-07-01-preview
126
+
POST https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyStates/latest/triggerEvaluation?api-version=2019-10-01
83
127
```
84
128
85
129
- Resource group
86
130
87
131
```http
88
-
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{YourRG}/providers/Microsoft.PolicyInsights/policyStates/latest/triggerEvaluation?api-version=2018-07-01-preview
132
+
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{YourRG}/providers/Microsoft.PolicyInsights/policyStates/latest/triggerEvaluation?api-version=2019-10-01
89
133
```
90
134
91
135
The call returns a **202 Accepted** status. Included in the response header is a **Location**
0 commit comments