Microsoft Endpoint Configuration Management Create and Assign Compliance Policy

Version 1.0.0

Create a device compliance policy in Intune and assign it to a target group.

1 workflow 1 source API 1 provider
View Spec View on GitHub ComplianceConfiguration ManagementDevice ManagementEndpoint ManagementMobile Device ManagementPatch ManagementSoftware DeploymentArazzoWorkflows

Provider

microsoft-endpoint-configuration-management

Workflows

create-and-assign-compliance-policy
Create a compliance policy, verify it, and assign it to a group.
Creates a deviceCompliancePolicy with the supplied display name and description, reads the created policy back to confirm persistence, and posts an assignment that targets the supplied Azure AD group.
3 steps inputs: accessToken, description, displayName, groupId outputs: assignmentStatus, policyId, verifiedDisplayName
1
createPolicy
Create a new device compliance policy with the supplied display name and description.
2
verifyPolicy
Read the created compliance policy back by id to confirm it was persisted before assigning it.
3
assignPolicy
Assign the compliance policy to the supplied Azure AD group so enrolled devices begin evaluating against it.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Microsoft Endpoint Configuration Management Create and Assign Compliance Policy
  summary: Create a device compliance policy in Intune and assign it to a target group.
  description: >-
    A foundational Intune governance flow. The workflow creates a new device
    compliance policy through the Microsoft Graph API, confirms it was
    persisted by reading it back, and then assigns the policy to an Azure AD
    group so enrolled devices begin evaluating against it. Every step spells
    out its request inline so the flow can be read and executed without
    opening the underlying OpenAPI description.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-600
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-600
      capability_name: Information Technology Management
      spec: microsoft-endpoint-configuration-management-compliance-policies-api-openapi.yml
      confidence: 0.75
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: compliancePoliciesApi
  url: ../openapi/microsoft-endpoint-configuration-management-compliance-policies-api-openapi.yml
  type: openapi
workflows:
- workflowId: create-and-assign-compliance-policy
  summary: Create a compliance policy, verify it, and assign it to a group.
  description: >-
    Creates a deviceCompliancePolicy with the supplied display name and
    description, reads the created policy back to confirm persistence, and
    posts an assignment that targets the supplied Azure AD group.
  inputs:
    type: object
    required:
    - displayName
    - groupId
    properties:
      accessToken:
        type: string
        description: OAuth 2.0 bearer token for Microsoft Graph (DeviceManagementConfiguration.ReadWrite.All).
      displayName:
        type: string
        description: Admin provided name for the new compliance policy.
      description:
        type: string
        description: Admin provided description of the compliance policy.
      groupId:
        type: string
        description: The Azure AD group id the policy assignment targets.
  steps:
  - stepId: createPolicy
    description: >-
      Create a new device compliance policy with the supplied display name
      and description.
    operationId: createDeviceCompliancePolicy
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    requestBody:
      contentType: application/json
      payload:
        displayName: $inputs.displayName
        description: $inputs.description
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      policyId: $response.body#/id
  - stepId: verifyPolicy
    description: >-
      Read the created compliance policy back by id to confirm it was
      persisted before assigning it.
    operationId: getDeviceCompliancePolicy
    parameters:
    - name: deviceCompliancePolicyId
      in: path
      value: $steps.createPolicy.outputs.policyId
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      verifiedDisplayName: $response.body#/displayName
  - stepId: assignPolicy
    description: >-
      Assign the compliance policy to the supplied Azure AD group so enrolled
      devices begin evaluating against it.
    operationId: assignDeviceCompliancePolicy
    parameters:
    - name: deviceCompliancePolicyId
      in: path
      value: $steps.createPolicy.outputs.policyId
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    requestBody:
      contentType: application/json
      payload:
        assignments:
        - target:
            '@odata.type': "#microsoft.graph.groupAssignmentTarget"
            groupId: $inputs.groupId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      assignmentStatus: $statusCode
  outputs:
    policyId: $steps.createPolicy.outputs.policyId
    verifiedDisplayName: $steps.verifyPolicy.outputs.verifiedDisplayName
    assignmentStatus: $steps.assignPolicy.outputs.assignmentStatus

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/microsoft-endpoint-configuration-management-create-assign-compliance-policy-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.