Edit

Create deviceAndAppManagementDeploymentPlan

Namespace: microsoft.graph

Important: Microsoft supports Intune /beta APIs, but they are subject to more frequent change. Microsoft recommends using version v1.0 when possible. Check an API's availability in version v1.0 using the Version selector.

Note: The Microsoft Graph API for Intune requires an active Intune license for the tenant.

Create a new deviceAndAppManagementDeploymentPlan object.

This API is available in the following national cloud deployments.

Global service US Government L4 US Government L5 (DOD) China operated by 21Vianet
✅ ✅ ✅ ✅

Permissions

One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

Permission type Permissions (from least to most privileged)
Delegated (work or school account) DeviceManagementConfiguration.ReadWrite.All
Delegated (personal Microsoft account) Not supported.
Application DeviceManagementConfiguration.ReadWrite.All

HTTP Request

POST /deviceManagement/deploymentPlans

Request headers

Header Value
Authorization Bearer {token}. Required. Learn more about authentication and authorization.
Accept application/json

Request body

In the request body, supply a JSON representation for the deviceAndAppManagementDeploymentPlan object.

The following table shows the properties that are required when you create the deviceAndAppManagementDeploymentPlan.

Property Type Description
id String Key for the resource.
versionNumber Int32 Version number of the device and app management deployment plan.
displayName String The display name of the device and app management deployment plan.
description String The description of the device and app management deployment plan.
roleScopeTagIds String collection The role scope tag ids to control device and app management deployment plan visibility.
topologyDefinitions deviceAndAppManagementDeploymentTopologyDefinition collection The topology definitions associated with the device and app management deployment plan.
allowedPlatform devicePlatformType The allowed assignment filter platform for the device and app management deployment plan. Possible values are: android, androidForWork, iOS, macOS, windowsPhone81, windows81AndLater, windows10AndLater, androidWorkProfile, unknown, androidAOSP, androidMobileApplicationManagement, iOSMobileApplicationManagement, unknownFutureValue, windowsMobileApplicationManagement.
createdDateTime DateTimeOffset The date and time of when the plan was created (UTC).
lastModifiedDateTime DateTimeOffset The date and time of when the plan was last modified (UTC).
topologyCount Int32 The number of topologies in the deployment plan.

Response

If successful, this method returns a 201 Created response code and a deviceAndAppManagementDeploymentPlan object in the response body.

Example

Request

Here is an example of the request.

POST https://graph.microsoft.com/beta/deviceManagement/deploymentPlans
Content-type: application/json
Content-length: 1570

{
  "@odata.type": "#microsoft.graph.deviceAndAppManagementDeploymentPlan",
  "versionNumber": 13,
  "displayName": "Display Name value",
  "description": "Description value",
  "roleScopeTagIds": [
    "Role Scope Tag Ids value"
  ],
  "topologyDefinitions": [
    {
      "@odata.type": "microsoft.graph.deviceAndAppManagementDeploymentTopologyDefinition",
      "topologyDisplayName": "Topology Display Name value",
      "topologyOrder": 13,
      "topologyActivationCriteria": {
        "@odata.type": "microsoft.graph.deviceAndAppManagementRingActivationDateTimeCriteria",
        "startDateTime": "2016-12-31T23:58:46.7156189-08:00"
      },
      "assignmentConfigurations": [
        {
          "@odata.type": "microsoft.graph.deviceAndAppManagementDeploymentTopologyAssignmentConfiguration",
          "target": {
            "@odata.type": "microsoft.graph.organizationalUnitAssignmentTarget",
            "deviceAndAppManagementAssignmentFilterId": "Device And App Management Assignment Filter Id value",
            "deviceAndAppManagementAssignmentFilterType": "include",
            "organizationalUnitId": "Organizational Unit Id value",
            "assignmentConflictSetting": {
              "@odata.type": "microsoft.graph.organizationalUnitAssignmentConflictSetting",
              "assignmentOverride": "denied",
              "versionNumber": 13
            }
          },
          "operation": "unknownFutureValue"
        }
      ]
    }
  ],
  "allowedPlatform": "androidForWork",
  "topologyCount": 13
}

Response

Here is an example of the response. Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.

HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 1742

{
  "@odata.type": "#microsoft.graph.deviceAndAppManagementDeploymentPlan",
  "id": "137dc698-c698-137d-98c6-7d1398c67d13",
  "versionNumber": 13,
  "displayName": "Display Name value",
  "description": "Description value",
  "roleScopeTagIds": [
    "Role Scope Tag Ids value"
  ],
  "topologyDefinitions": [
    {
      "@odata.type": "microsoft.graph.deviceAndAppManagementDeploymentTopologyDefinition",
      "topologyDisplayName": "Topology Display Name value",
      "topologyOrder": 13,
      "topologyActivationCriteria": {
        "@odata.type": "microsoft.graph.deviceAndAppManagementRingActivationDateTimeCriteria",
        "startDateTime": "2016-12-31T23:58:46.7156189-08:00"
      },
      "assignmentConfigurations": [
        {
          "@odata.type": "microsoft.graph.deviceAndAppManagementDeploymentTopologyAssignmentConfiguration",
          "target": {
            "@odata.type": "microsoft.graph.organizationalUnitAssignmentTarget",
            "deviceAndAppManagementAssignmentFilterId": "Device And App Management Assignment Filter Id value",
            "deviceAndAppManagementAssignmentFilterType": "include",
            "organizationalUnitId": "Organizational Unit Id value",
            "assignmentConflictSetting": {
              "@odata.type": "microsoft.graph.organizationalUnitAssignmentConflictSetting",
              "assignmentOverride": "denied",
              "versionNumber": 13
            }
          },
          "operation": "unknownFutureValue"
        }
      ]
    }
  ],
  "allowedPlatform": "androidForWork",
  "createdDateTime": "2017-01-01T00:02:43.5775965-08:00",
  "lastModifiedDateTime": "2017-01-01T00:00:35.1329464-08:00",
  "topologyCount": 13
}