Create and Assign Compliance Policy
A 3-step recipe with Microsoft Endpoint Configuration Management. We can help you get access.
Recipe · 3 steps
Create and Assign Compliance Policy
with Microsoft Endpoint Configuration Management · Information Technology Management
Create a compliance policy, verify it, and assign it to a group.
- Create a new device compliance policy with the supplied display name and description.
- Read the created compliance policy back by id to confirm it was persisted before assigning it.
- Assign the compliance policy to the supplied Azure AD group so enrolled devices begin evaluating against it.
What you'll need to have ready
- accessToken: OAuth 2.0 bearer token for Microsoft Graph (DeviceManagementConfiguration.ReadWrite.All).
- displayName: Admin provided name for the new compliance policy.
- description: Admin provided description of the compliance policy.
- groupId: The Azure AD group id the policy assignment targets.
For your developer
Arazzo workflow microsoft-endpoint-configuration-management:create-and-assign-compliance-policy, 3 operations: createDeviceCompliancePolicy → getDeviceCompliancePolicy → assignDeviceCompliancePolicy. Specs on APIs.io.