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 cloudPcPool object.
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/cloudPcPools
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 a cloudPcPool object.
The @odata.type property is required in the request body to specify the derived type. The supported value is #microsoft.graph.cloudPcAgentPool.
The following table lists the properties that are required when you create a cloudPcPool.
| Property | Type | Description |
|---|---|---|
| billingConfiguration | cloudPcAgentPoolBillingConfiguration | Required. The billing configuration for the agent pool, including billing type and billing plan identifier. Applies to the cloudPcAgentPool derived type. |
| capabilities | cloudPcPoolCapabilityConfiguration | Required. The capabilities configuration for the pool, including single sign-on settings. |
| cloudPcConfiguration | cloudPcConfiguration | Required. The Cloud PC specification, including image and operating system locale settings for provisioning. |
| description | String | Optional. The description of the pool. The maximum length is 512 characters. |
| displayName | String | Required. The display name of the pool. The name is unique across Cloud PC pools in an organization. The maximum length is 60 characters. |
| networkConfiguration | cloudPcNetworkConfiguration | Required. The network configuration for the pool. Supported derived types: cloudPcMicrosoftHostedNetworkConfiguration. |
| scalingPolicy | cloudPcAgentPoolScalingPolicy | Required. The scaling policy defining minimum and maximum Cloud PC counts for the pool. Applies to the cloudPcAgentPool derived type. |
Response
If successful, this method returns a 201 Created response code and a cloudPcPool object in the response body.
Examples
Request
The following example shows a request.
POST https://graph.microsoft.com/beta/deviceManagement/virtualEndpoint/cloudPcPools
Content-Type: application/json
{
"@odata.type":"#microsoft.graph.cloudPcAgentPool",
"displayName": "Contoso Development Pool",
"cloudPcConfiguration": {
"imageId": "microsoftwindowsdesktop_windows-ent-cpc_win11-23h2-ent-cpc-m365",
"imageType": "gallery",
"osLocale": "en-US"
},
"networkConfiguration": {
"@odata.type": "#microsoft.graph.cloudPcMicrosoftHostedNetworkConfiguration",
"geographicLocationType": "usWest",
"regionGroups": [
{
"regionGroup": "usWest",
"regions": ["westus2", "westus3"]
}
]
},
"billingConfiguration": {
"billingType": "payAsYouGo",
"billingPlanId": "00000000-0000-0000-0000-000000000001"
},
"scalingPolicy": {
"minimumCount": 2,
"maximumCount": 10
},
"capabilities": {
"@odata.type": "#microsoft.graph.cloudPcAgentPoolCapabilityConfiguration",
"enableSingleSignOn": true
}
}
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
{
"id": "00000000-0000-0000-0000-000000000000",
"displayName": "Contoso Development Pool",
"cloudPcConfiguration": {
"imageId": "microsoftwindowsdesktop_windows-ent-cpc_win11-23h2-ent-cpc-m365",
"imageType": "gallery",
"osLocale": "en-US"
},
"networkConfiguration": {
"@odata.type": "#microsoft.graph.cloudPcMicrosoftHostedNetworkConfiguration",
"geographicLocationType": "usWest",
"regionGroups": [
{
"regionGroup": "usWest",
"regions": [
"westus2",
"westus3"
]
}
]
},
"billingConfiguration": {
"billingType": "payAsYouGo",
"billingPlanId": "00000000-0000-0000-0000-000000000001"
},
"scalingPolicy": {
"minimumCount": 2,
"maximumCount": 10
},
"capabilities": {
"@odata.type": "#microsoft.graph.cloudPcAgentPoolCapabilityConfiguration",
"enableSingleSignOn": true
}
}