Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Namespace: microsoft.graph
Important
APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.
Create a new cloudPcCloudApp 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
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
| Permission type | Least privileged permissions | Higher privileged permissions |
|---|---|---|
| Delegated (work or school account) | CloudPC.ReadWrite.All | Not available. |
| Delegated (personal Microsoft account) | Not supported. | Not supported. |
| Application | CloudPC.ReadWrite.All | Not available. |
HTTP request
POST /deviceManagement/virtualEndpoint/cloudApps
Request headers
| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
| Content-Type | application/json. Required. |
Request body
In the request body, supply a JSON representation of the cloudPcCloudApp object.
The following table shows the properties available when you create a cloudPcCloudApp.
| Property | Type | Description |
|---|---|---|
| appDetail | cloudPcCloudAppDetail | The details about the cloud app. This is a polymorphic type. Use @odata.type to specify the derived type: #microsoft.graph.cloudPcFilePathAppDetail for apps with a manually specified file path, or #microsoft.graph.cloudPcAutomaticDiscoveredAppDetail for automatically discovered apps. Required. |
| description | String | The description associated with the cloud app. The maximum allowed length for this property is 512 characters. Optional. |
| discoveredAppName | String | Name of the discovered app associated with the cloud app. Required. |
| displayName | String | The display name for the cloud app. Must be unique within a single provisioning policy. The maximum allowed length for this property is 64 characters. Required. |
| provisioningPolicyId | String | The ID of the provisioning policy associated with this cloud app. Required. |
Response
If successful, this method returns a 201 Created response code and a cloudPcCloudApp object in the response body.
Examples
Request
The following example shows how to create a cloud app using the cloudPcFilePathAppDetail type.
POST https://graph.microsoft.com/beta/deviceManagement/virtualEndpoint/cloudApps
Content-Type: application/json
{
"displayName": "Remote Desktop Connection",
"discoveredAppName": "Remote Desktop Connection",
"provisioningPolicyId": "e31f75e9-25a8-41e9-a9d5-ce8fd484af15",
"description": "",
"appDetail": {
"@odata.type": "#microsoft.graph.cloudPcFilePathAppDetail",
"filePath": "C:\\Windows\\system32\\mstsc.exe",
"commandLineArguments": "",
"iconPath": "C:\\Windows\\system32\\mstsc.exe",
"iconIndex": 0
}
}
Response
The following example shows the response.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 201 Created
Content-Type: application/json
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#deviceManagement/virtualEndpoint/cloudApps/$entity",
"id": "60a7bbf2-d831-4dc8-8375-1253403f7e74",
"displayName": "Remote Desktop Connection",
"discoveredAppName": "Remote Desktop Connection",
"provisioningPolicyId": "e31f75e9-25a8-41e9-a9d5-ce8fd484af15",
"description": "",
"appDetail": {
"@odata.type": "#microsoft.graph.cloudPcFilePathAppDetail",
"filePath": "C:\\Windows\\system32\\mstsc.exe",
"commandLineArguments": "",
"iconPath": "C:\\Windows\\system32\\mstsc.exe",
"iconIndex": 0
},
"addedDateTime": "2025-11-13T07:37:22.3049326Z",
"lastPublishedDateTime": "0001-01-01T00:00:00Z",
"appStatus": "preparing",
"actionFailedErrorCode": null,
"actionFailedErrorMessage": null,
"availableToUser": false,
"scopeIds": [
"0"
]
}