The vcenters/inventoryItems resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
To create a Microsoft.ConnectedVMwarevSphere/vcenters/inventoryItems resource, add the following JSON to your template.
{
"type": "Microsoft.ConnectedVMwarevSphere/vcenters/inventoryItems",
"apiVersion": "2022-07-15-preview",
"name": "string",
"kind": "string",
"properties": {
"managedResourceId": "string",
"moName": "string",
"moRefId": "string",
"inventoryType": "string"
// For remaining properties, see InventoryItemProperties objects
}
}
Set the inventoryType property to specify the type of object.
For Cluster, use:
"inventoryType": "Cluster"
For Datastore, use:
"inventoryType": "Datastore",
"capacityGB": "int",
"freeSpaceGB": "int"
For Host, use:
"inventoryType": "Host",
"parent": {
"inventoryItemId": "string",
"inventoryType": "string",
"moName": "string"
}
For ResourcePool, use:
"inventoryType": "ResourcePool",
"parent": {
"inventoryItemId": "string",
"inventoryType": "string",
"moName": "string"
}
For VirtualMachine, use:
"inventoryType": "VirtualMachine",
"cluster": {
"inventoryItemId": "string",
"inventoryType": "string",
"moName": "string"
},
"folderPath": "string",
"host": {
"inventoryItemId": "string",
"inventoryType": "string",
"moName": "string"
},
"instanceUuid": "string",
"ipAddresses": [ "string" ],
"osName": "string",
"osType": "string",
"resourcePool": {
"inventoryItemId": "string",
"inventoryType": "string",
"moName": "string"
},
"smbiosUuid": "string"
For VirtualMachineTemplate, use:
"inventoryType": "VirtualMachineTemplate",
"folderPath": "string",
"memorySizeMB": "int",
"numCoresPerSocket": "int",
"numCPUs": "int",
"osName": "string",
"osType": "string"
For VirtualNetwork, use:
"inventoryType": "VirtualNetwork"
Name | Description | Value |
---|---|---|
type | The resource type | 'Microsoft.ConnectedVMwarevSphere/vcenters/inventoryItems' |
apiVersion | The resource api version | '2022-07-15-preview' |
name | The resource name See how to set names and types for child resources in JSON ARM templates. |
string (required) |
kind | 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. | string |
properties | Resource properties. | InventoryItemProperties (required) |
Name | Description | Value |
---|---|---|
managedResourceId | Gets or sets the tracked resource id corresponding to the inventory resource. | string |
moName | Gets or sets the vCenter Managed Object name for the inventory item. | string |
moRefId | Gets or sets the MoRef (Managed Object Reference) ID for the inventory item. | string |
inventoryType | Set the object type | Cluster Datastore Host ResourcePool VirtualMachine VirtualMachineTemplate VirtualNetwork (required) |
Name | Description | Value |
---|---|---|
inventoryType | They inventory type. | 'Cluster' (required) |
Name | Description | Value |
---|---|---|
inventoryType | They inventory type. | 'Datastore' (required) |
capacityGB | Gets or sets Maximum capacity of this datastore, in GBs. | int |
freeSpaceGB | Gets or sets Available space of this datastore, in GBs. | int |
Name | Description | Value |
---|---|---|
inventoryType | They inventory type. | 'Host' (required) |
parent | Parent host inventory resource details. | InventoryItemDetails |
Name | Description | Value |
---|---|---|
inventoryItemId | Gets or sets the inventory Item ID for the resource. | string |
inventoryType | The inventory type. | 'Cluster' 'Datastore' 'Host' 'ResourcePool' 'VirtualMachine' 'VirtualMachineTemplate' 'VirtualNetwork' |
moName | Gets or sets the vCenter Managed Object name for the resource. | string |
Name | Description | Value |
---|---|---|
inventoryType | They inventory type. | 'ResourcePool' (required) |
parent | Parent resourcePool inventory resource details. | InventoryItemDetails |
Name | Description | Value |
---|---|---|
inventoryType | They inventory type. | 'VirtualMachine' (required) |
cluster | Cluster inventory resource details. | InventoryItemDetails |
folderPath | Gets or sets the folder path of the vm. | string |
host | Host inventory resource details. | InventoryItemDetails |
instanceUuid | Gets or sets the instance uuid of the vm. | string |
ipAddresses | Gets or sets the nic ip addresses. | string[] |
osName | Gets or sets os name. | string |
osType | Gets or sets the type of the os. | 'Linux' 'Other' 'Windows' |
resourcePool | ResourcePool inventory resource details. | InventoryItemDetails |
smbiosUuid | Gets or sets the SMBIOS UUID of the vm. | string |
Name | Description | Value |
---|---|---|
inventoryType | They inventory type. | 'VirtualMachineTemplate' (required) |
folderPath | Gets or sets the folder path of the template. | string |
memorySizeMB | Gets or sets memory size in MBs for the template. | int |
numCoresPerSocket | Gets or sets the number of cores per socket for the template. Defaults to 1 if unspecified. |
int |
numCPUs | Gets or sets the number of vCPUs for the template. | int |
osName | Gets or sets os name. | string |
osType | Gets or sets the type of the os. | 'Linux' 'Other' 'Windows' |
Name | Description | Value |
---|---|---|
inventoryType | They inventory type. | 'VirtualNetwork' (required) |