Resource Pools - Create
Implements resourcePool PUT method.
Create Or Update resourcePool.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/{resourcePoolName}?api-version=2023-12-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
resource
|
path | True |
string |
The Resource Group Name. |
resource
|
path | True |
string |
Name of the resourcePool. |
subscription
|
path | True |
string |
The Subscription ID. |
api-version
|
query | True |
string |
Client Api Version. |
Request Body
Name | Required | Type | Description |
---|---|---|---|
location | True |
string |
Gets or sets the location. |
extendedLocation |
Gets or sets the extended location. |
||
kind |
string |
Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. |
|
properties.inventoryItemId |
string |
Gets or sets the inventory Item ID for the resource pool. |
|
properties.moRefId |
string |
Gets or sets the vCenter MoRef (Managed Object Reference) ID for the resource pool. |
|
properties.vCenterId |
string |
Gets or sets the ARM Id of the vCenter resource in which this resource pool resides. |
|
tags |
object |
Gets or sets the Resource tags. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Arm resource update successful. |
|
201 Created |
Created |
|
Other Status Codes |
Error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
CreateResourcePool
Sample request
PUT https://management.azure.com/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/HRPool?api-version=2023-12-01
{
"location": "East US",
"extendedLocation": {
"type": "customLocation",
"name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso"
},
"properties": {
"vCenterId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/ContosoVCenter",
"moRefId": "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
}
}
Sample response
{
"id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/ResourcePools/HRPool",
"name": "HRPool",
"type": "Microsoft.ConnectedVMwarevSphere/ResourcePools",
"location": "East US",
"extendedLocation": {
"type": "customLocation",
"name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso"
},
"properties": {
"vCenterId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/ContosoVCenter",
"moRefId": "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"provisioningState": "Succeeded"
}
}
{
"id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/ResourcePools/ContosoAgent",
"name": "ContosoAgent",
"type": "Microsoft.ConnectedVMwarevSphere/ResourcePools",
"location": "East US",
"extendedLocation": {
"type": "customLocation",
"name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso"
},
"properties": {
"vCenterId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/ContosoVCenter",
"moRefId": "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"provisioningState": "Created"
}
}
Definitions
Name | Description |
---|---|
created |
The type of identity that created the resource. |
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Extended |
The extended location. |
Provisioning |
Gets the provisioning state. |
Resource |
Define the resourcePool. |
Resource |
The resource status information. |
system |
Metadata pertaining to creation and last modification of the resource. |
createdByType
The type of identity that created the resource.
Name | Type | Description |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
ErrorDetail
The error detail.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorResponse
Error response
Name | Type | Description |
---|---|---|
error |
The error object. |
ExtendedLocation
The extended location.
Name | Type | Description |
---|---|---|
name |
string |
The extended location name. |
type |
string |
The extended location type. |
ProvisioningState
Gets the provisioning state.
Name | Type | Description |
---|---|---|
Accepted |
string |
|
Canceled |
string |
|
Created |
string |
|
Deleting |
string |
|
Failed |
string |
|
Provisioning |
string |
|
Succeeded |
string |
|
Updating |
string |
ResourcePool
Define the resourcePool.
Name | Type | Description |
---|---|---|
extendedLocation |
Gets or sets the extended location. |
|
id |
string |
Gets or sets the Id. |
kind |
string |
Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. |
location |
string |
Gets or sets the location. |
name |
string |
Gets or sets the name. |
properties.cpuCapacityMHz |
integer |
Gets the max CPU usage across all cores on the pool in MHz. |
properties.cpuLimitMHz |
integer |
Gets or sets CPULimitMHz which specifies a CPU usage limit in MHz. Utilization will not exceed this limit even if there are available resources. |
properties.cpuOverallUsageMHz |
integer |
Gets the used CPU usage across all cores on the pool in MHz. |
properties.cpuReservationMHz |
integer |
Gets or sets CPUReservationMHz which specifies the CPU size in MHz that is guaranteed to be available. |
properties.cpuSharesLevel |
string |
Gets or sets CPUSharesLevel which specifies the CPU allocation level for this pool. This property is used in relative allocation between resource consumers. |
properties.customResourceName |
string |
Gets the name of the corresponding resource in Kubernetes. |
properties.datastoreIds |
string[] |
Gets the datastore ARM ids. |
properties.inventoryItemId |
string |
Gets or sets the inventory Item ID for the resource pool. |
properties.memCapacityGB |
integer |
Gets the total amount of physical memory on the pool in GB. |
properties.memLimitMB |
integer |
Gets or sets MemLimitMB specifies a memory usage limit in megabytes. Utilization will not exceed the specified limit even if there are available resources. |
properties.memOverallUsageGB |
integer |
Gets the used physical memory on the pool in GB. |
properties.memReservationMB |
integer |
Gets or sets MemReservationMB which specifies the guaranteed available memory in megabytes. |
properties.memSharesLevel |
string |
Gets or sets CPUSharesLevel which specifies the memory allocation level for this pool. This property is used in relative allocation between resource consumers. |
properties.moName |
string |
Gets or sets the vCenter Managed Object name for the resource pool. |
properties.moRefId |
string |
Gets or sets the vCenter MoRef (Managed Object Reference) ID for the resource pool. |
properties.networkIds |
string[] |
Gets the network ARM ids. |
properties.provisioningState |
Gets the provisioning state. |
|
properties.statuses |
The resource status information. |
|
properties.uuid |
string |
Gets or sets a unique identifier for this resource. |
properties.vCenterId |
string |
Gets or sets the ARM Id of the vCenter resource in which this resource pool resides. |
systemData |
The system data. |
|
tags |
object |
Gets or sets the Resource tags. |
type |
string |
Gets or sets the type of the resource. |
ResourceStatus
The resource status information.
Name | Type | Description |
---|---|---|
lastUpdatedAt |
string |
The last update time for this condition. |
message |
string |
A human readable message indicating details about the status. |
reason |
string |
The reason for the condition's status. |
severity |
string |
Severity with which to treat failures of this type of condition. |
status |
string |
Status of the condition. |
type |
string |
The type of the condition. |
systemData
Metadata pertaining to creation and last modification of the resource.
Name | Type | Description |
---|---|---|
createdAt |
string |
The timestamp of resource creation (UTC). |
createdBy |
string |
The identity that created the resource. |
createdByType |
The type of identity that created the resource. |
|
lastModifiedAt |
string |
The timestamp of resource last modification (UTC) |
lastModifiedBy |
string |
The identity that last modified the resource. |
lastModifiedByType |
The type of identity that last modified the resource. |