virtual_machine_templates
Creates, updates, deletes, gets or lists a virtual_machine_templates resource.
Overview
| Name | virtual_machine_templates |
| Type | Resource |
| Id | azure_isv.connectedvmware.virtual_machine_templates |
Fields
The following fields are returned by SELECT queries:
- get
- list_by_resource_group
- list
| Name | Datatype | Description |
|---|---|---|
id | string | Gets or sets the Id. |
name | string | Gets or sets the name. |
customResourceName | string | Gets the name of the corresponding resource in Kubernetes. |
disks | array | Gets or sets the disks the template. |
extendedLocation | object | Gets or sets the extended location. |
firmwareType | string | Firmware type. Known values are: "bios" and "efi". |
folderPath | string | Gets or sets the folder path of the template. |
inventoryItemId | string | Gets or sets the inventory Item ID for the virtual machine template. |
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. Required. |
memorySizeMB | integer | Gets or sets memory size in MBs for the template. |
moName | string | Gets or sets the vCenter Managed Object name for the virtual machine template. |
moRefId | string | Gets or sets the vCenter MoRef (Managed Object Reference) ID for the virtual machine template. |
networkInterfaces | array | Gets or sets the network interfaces of the template. |
numCPUs | integer | Gets or sets the number of vCPUs for the template. |
numCoresPerSocket | integer | Gets or sets the number of cores per socket for the template. Defaults to 1 if unspecified. |
osName | string | Gets or sets os name. |
osType | string | Gets or sets the type of the os. Known values are: "Windows", "Linux", and "Other". |
provisioningState | string | Gets the provisioning state. Known values are: "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", and "Created". |
statuses | array | The resource status information. |
systemData | object | The system data. |
tags | object | Gets or sets the Resource tags. |
toolsVersion | string | Gets or sets the current version of VMware Tools. |
toolsVersionStatus | string | Gets or sets the current version status of VMware Tools installed in the guest operating system. |
type | string | Gets or sets the type of the resource. |
uuid | string | Gets or sets a unique identifier for this resource. |
vCenterId | string | Gets or sets the ARM Id of the vCenter resource in which this template resides. |
| Name | Datatype | Description |
|---|---|---|
id | string | Gets or sets the Id. |
name | string | Gets or sets the name. |
customResourceName | string | Gets the name of the corresponding resource in Kubernetes. |
disks | array | Gets or sets the disks the template. |
extendedLocation | object | Gets or sets the extended location. |
firmwareType | string | Firmware type. Known values are: "bios" and "efi". |
folderPath | string | Gets or sets the folder path of the template. |
inventoryItemId | string | Gets or sets the inventory Item ID for the virtual machine template. |
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. Required. |
memorySizeMB | integer | Gets or sets memory size in MBs for the template. |
moName | string | Gets or sets the vCenter Managed Object name for the virtual machine template. |
moRefId | string | Gets or sets the vCenter MoRef (Managed Object Reference) ID for the virtual machine template. |
networkInterfaces | array | Gets or sets the network interfaces of the template. |
numCPUs | integer | Gets or sets the number of vCPUs for the template. |
numCoresPerSocket | integer | Gets or sets the number of cores per socket for the template. Defaults to 1 if unspecified. |
osName | string | Gets or sets os name. |
osType | string | Gets or sets the type of the os. Known values are: "Windows", "Linux", and "Other". |
provisioningState | string | Gets the provisioning state. Known values are: "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", and "Created". |
statuses | array | The resource status information. |
systemData | object | The system data. |
tags | object | Gets or sets the Resource tags. |
toolsVersion | string | Gets or sets the current version of VMware Tools. |
toolsVersionStatus | string | Gets or sets the current version status of VMware Tools installed in the guest operating system. |
type | string | Gets or sets the type of the resource. |
uuid | string | Gets or sets a unique identifier for this resource. |
vCenterId | string | Gets or sets the ARM Id of the vCenter resource in which this template resides. |
| Name | Datatype | Description |
|---|---|---|
id | string | Gets or sets the Id. |
name | string | Gets or sets the name. |
customResourceName | string | Gets the name of the corresponding resource in Kubernetes. |
disks | array | Gets or sets the disks the template. |
extendedLocation | object | Gets or sets the extended location. |
firmwareType | string | Firmware type. Known values are: "bios" and "efi". |
folderPath | string | Gets or sets the folder path of the template. |
inventoryItemId | string | Gets or sets the inventory Item ID for the virtual machine template. |
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. Required. |
memorySizeMB | integer | Gets or sets memory size in MBs for the template. |
moName | string | Gets or sets the vCenter Managed Object name for the virtual machine template. |
moRefId | string | Gets or sets the vCenter MoRef (Managed Object Reference) ID for the virtual machine template. |
networkInterfaces | array | Gets or sets the network interfaces of the template. |
numCPUs | integer | Gets or sets the number of vCPUs for the template. |
numCoresPerSocket | integer | Gets or sets the number of cores per socket for the template. Defaults to 1 if unspecified. |
osName | string | Gets or sets os name. |
osType | string | Gets or sets the type of the os. Known values are: "Windows", "Linux", and "Other". |
provisioningState | string | Gets the provisioning state. Known values are: "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", and "Created". |
statuses | array | The resource status information. |
systemData | object | The system data. |
tags | object | Gets or sets the Resource tags. |
toolsVersion | string | Gets or sets the current version of VMware Tools. |
toolsVersionStatus | string | Gets or sets the current version status of VMware Tools installed in the guest operating system. |
type | string | Gets or sets the type of the resource. |
uuid | string | Gets or sets a unique identifier for this resource. |
vCenterId | string | Gets or sets the ARM Id of the vCenter resource in which this template resides. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, virtual_machine_template_name, subscription_id | Gets a virtual machine template. Implements virtual machine template GET method. | |
list_by_resource_group | select | resource_group_name, subscription_id | Implements GET virtualMachineTemplates in a resource group. List of virtualMachineTemplates in a resource group. | |
list | select | subscription_id | Implements GET virtualMachineTemplates in a subscription. List of virtualMachineTemplates in a subscription. | |
create | insert | resource_group_name, virtual_machine_template_name, subscription_id, location | Implements virtual machine template PUT method. Create Or Update virtual machine template. | |
update | update | resource_group_name, virtual_machine_template_name, subscription_id | Updates a virtual machine template. API to update certain properties of the virtual machine template resource. | |
delete | delete | resource_group_name, virtual_machine_template_name, subscription_id | force | Deletes an virtual machine template. Implements virtual machine template DELETE method. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
resource_group_name | string | The Resource Group Name. Required. |
subscription_id | string | |
virtual_machine_template_name | string | Name of the virtual machine template resource. Required. |
force | boolean | Whether force delete was specified. Default value is None. |
SELECT examples
- get
- list_by_resource_group
- list
Gets a virtual machine template. Implements virtual machine template GET method.
SELECT
id,
name,
customResourceName,
disks,
extendedLocation,
firmwareType,
folderPath,
inventoryItemId,
kind,
location,
memorySizeMB,
moName,
moRefId,
networkInterfaces,
numCPUs,
numCoresPerSocket,
osName,
osType,
provisioningState,
statuses,
systemData,
tags,
toolsVersion,
toolsVersionStatus,
type,
uuid,
vCenterId
FROM azure_isv.connectedvmware.virtual_machine_templates
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND virtual_machine_template_name = '{{ virtual_machine_template_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Implements GET virtualMachineTemplates in a resource group. List of virtualMachineTemplates in a resource group.
SELECT
id,
name,
customResourceName,
disks,
extendedLocation,
firmwareType,
folderPath,
inventoryItemId,
kind,
location,
memorySizeMB,
moName,
moRefId,
networkInterfaces,
numCPUs,
numCoresPerSocket,
osName,
osType,
provisioningState,
statuses,
systemData,
tags,
toolsVersion,
toolsVersionStatus,
type,
uuid,
vCenterId
FROM azure_isv.connectedvmware.virtual_machine_templates
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Implements GET virtualMachineTemplates in a subscription. List of virtualMachineTemplates in a subscription.
SELECT
id,
name,
customResourceName,
disks,
extendedLocation,
firmwareType,
folderPath,
inventoryItemId,
kind,
location,
memorySizeMB,
moName,
moRefId,
networkInterfaces,
numCPUs,
numCoresPerSocket,
osName,
osType,
provisioningState,
statuses,
systemData,
tags,
toolsVersion,
toolsVersionStatus,
type,
uuid,
vCenterId
FROM azure_isv.connectedvmware.virtual_machine_templates
WHERE subscription_id = '{{ subscription_id }}' -- required
;
INSERT examples
- create
- Manifest
Implements virtual machine template PUT method. Create Or Update virtual machine template.
INSERT INTO azure_isv.connectedvmware.virtual_machine_templates (
location,
extendedLocation,
tags,
kind,
properties,
resource_group_name,
virtual_machine_template_name,
subscription_id
)
SELECT
'{{ location }}' /* required */,
'{{ extendedLocation }}',
'{{ tags }}',
'{{ kind }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ virtual_machine_template_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
extendedLocation,
kind,
location,
properties,
systemData,
tags,
type
;
# Description fields are for documentation purposes
- name: virtual_machine_templates
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the virtual_machine_templates resource.
- name: virtual_machine_template_name
value: "{{ virtual_machine_template_name }}"
description: Required parameter for the virtual_machine_templates resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the virtual_machine_templates resource.
- name: location
value: "{{ location }}"
description: |
Gets or sets the location. Required.
- name: extendedLocation
description: |
Gets or sets the extended location.
value:
type: "{{ type }}"
name: "{{ name }}"
- name: tags
value: "{{ tags }}"
description: |
Gets or sets the Resource tags.
- name: kind
value: "{{ kind }}"
description: |
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.
- name: properties
value:
vCenterId: "{{ vCenterId }}"
moRefId: "{{ moRefId }}"
inventoryItemId: "{{ inventoryItemId }}"
UPDATE examples
- update
Updates a virtual machine template. API to update certain properties of the virtual machine template resource.
UPDATE azure_isv.connectedvmware.virtual_machine_templates
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND virtual_machine_template_name = '{{ virtual_machine_template_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
extendedLocation,
kind,
location,
properties,
systemData,
tags,
type;
DELETE examples
- delete
Deletes an virtual machine template. Implements virtual machine template DELETE method.
DELETE FROM azure_isv.connectedvmware.virtual_machine_templates
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND virtual_machine_template_name = '{{ virtual_machine_template_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND force = '{{ force }}'
;