Virtual Machine Templates - Update
Updates a virtual machine template.
API to update certain properties of the virtual machine template resource.
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/{virtualMachineTemplateName}?api-version=2023-12-01
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
resource
|
path | True |
string |
The Resource Group Name. |
|
subscription
|
path | True |
string |
The Subscription ID. |
|
virtual
|
path | True |
string |
Name of the virtual machine template resource. |
|
api-version
|
query | True |
string |
Client Api Version. |
Request Body
| Name | Type | Description |
|---|---|---|
| tags |
object |
Resource tags. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
Arm resource update successful. |
|
| 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
UpdateVirtualMachineTemplate
Sample request
Sample response
{
"id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/VirtualMachineTemplates/WebFrontEndTemplate",
"name": "WebFrontEndTemplate",
"type": "Microsoft.ConnectedVMwarevSphere/VirtualMachineTemplates",
"location": "East US",
"extendedLocation": {
"type": "customLocation",
"name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso"
},
"tags": {
"tag1": "value1",
"tag2": "value2"
},
"properties": {
"vCenterId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/ContosoVCenter",
"moRefId": "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"provisioningState": "Succeeded"
}
}
Definitions
| Name | Description |
|---|---|
|
created |
The type of identity that created the resource. |
|
Disk |
Defines the different types of disk modes. |
|
Disk |
Defines the different types of disks. |
|
Error |
The resource management error additional info. |
|
Error |
The error detail. |
|
Error |
Error response |
|
Extended |
The extended location. |
|
Firmware |
Firmware type |
|
IPAddress |
IP address allocation method. |
|
Network |
Network Interface model |
|
Nic |
IP address information for a virtual network adapter reported by the fabric. |
|
Nic |
Defines the network interface ip settings. |
| NICType |
NIC type |
|
Os |
Defines the different types of VM guest operating systems. |
|
Power |
Defines the options for power on boot. |
|
Provisioning |
Gets the provisioning state. |
|
Resource |
Object containing updates for patch operations. |
|
Resource |
The resource status information. |
|
system |
Metadata pertaining to creation and last modification of the resource. |
|
Virtual |
Virtual disk model |
|
Virtual |
Define the virtualMachineTemplate. |
createdByType
The type of identity that created the resource.
| Value | Description |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
DiskMode
Defines the different types of disk modes.
| Value | Description |
|---|---|
| persistent | |
| independent_persistent | |
| independent_nonpersistent |
DiskType
Defines the different types of disks.
| Value | Description |
|---|---|
| flat | |
| pmem | |
| rawphysical | |
| rawvirtual | |
| sparse | |
| sesparse | |
| unknown |
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. |
FirmwareType
Firmware type
| Value | Description |
|---|---|
| bios | |
| efi |
IPAddressAllocationMethod
IP address allocation method.
| Value | Description |
|---|---|
| unset | |
| dynamic | |
| static | |
| linklayer | |
| random | |
| other |
NetworkInterface
Network Interface model
| Name | Type | Description |
|---|---|---|
| deviceKey |
integer (int32) |
Gets or sets the device key value. |
| ipAddresses |
string[] |
Gets or sets the nic ip addresses. |
| ipSettings |
Gets or sets the ipsettings. |
|
| label |
string |
Gets or sets the label of the virtual network in vCenter that the nic is connected to. |
| macAddress |
string |
Gets or sets the NIC MAC address. |
| name |
string |
Gets or sets the name of the network interface. |
| networkId |
string |
Gets or sets the ARM Id of the network resource to connect the virtual machine. |
| networkMoName |
string |
Gets or sets the name of the virtual network in vCenter that the nic is connected to. |
| networkMoRefId |
string |
Gets or sets the vCenter MoRef (Managed Object Reference) ID of the virtual network that the nic is connected to. |
| nicType |
NIC type |
|
| powerOnBoot |
Gets or sets the power on boot. |
NicIPAddressSettings
IP address information for a virtual network adapter reported by the fabric.
| Name | Type | Description |
|---|---|---|
| allocationMethod |
string |
Gets the ip address allocation method. |
| ipAddress |
string |
Gets the ip address for the nic. |
| subnetMask |
string |
Gets the mask. |
NicIPSettings
Defines the network interface ip settings.
| Name | Type | Description |
|---|---|---|
| allocationMethod |
Gets or sets the nic allocation method. |
|
| dnsServers |
string[] |
Gets or sets the dns servers. |
| gateway |
string[] |
Gets or sets the gateway. |
| ipAddress |
string |
Gets or sets the ip address for the nic. |
| ipAddressInfo |
Gets or sets the IP address information being reported for this NIC. This contains the same IPv4 information above plus IPV6 information. |
|
| primaryWinsServer |
string |
Gets or sets the primary server. |
| secondaryWinsServer |
string |
Gets or sets the secondary server. |
| subnetMask |
string |
Gets or sets the mask. |
NICType
NIC type
| Value | Description |
|---|---|
| vmxnet3 | |
| vmxnet2 | |
| vmxnet | |
| e1000 | |
| e1000e | |
| pcnet32 |
OsType
Defines the different types of VM guest operating systems.
| Value | Description |
|---|---|
| Windows | |
| Linux | |
| Other |
PowerOnBootOption
Defines the options for power on boot.
| Value | Description |
|---|---|
| enabled | |
| disabled |
ProvisioningState
Gets the provisioning state.
| Value | Description |
|---|---|
| Succeeded | |
| Failed | |
| Canceled | |
| Provisioning | |
| Updating | |
| Deleting | |
| Accepted | |
| Created |
ResourcePatch
Object containing updates for patch operations.
| Name | Type | Description |
|---|---|---|
| tags |
object |
Resource tags. |
ResourceStatus
The resource status information.
| Name | Type | Description |
|---|---|---|
| lastUpdatedAt |
string (date-time) |
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 (date-time) |
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 (date-time) |
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. |
VirtualDisk
Virtual disk model
| Name | Type | Description |
|---|---|---|
| controllerKey |
integer (int32) |
Gets or sets the controller id. |
| deviceKey |
integer (int32) |
Gets or sets the device key value. |
| deviceName |
string |
Gets or sets the device name. |
| diskMode |
Gets or sets the disk mode. |
|
| diskObjectId |
string |
Gets or sets the disk object id. |
| diskSizeGB |
integer (int32) |
Gets or sets the disk total size. |
| diskType |
Gets or sets the disk backing type. |
|
| label |
string |
Gets or sets the label of the virtual disk in vCenter. |
| name |
string |
Gets or sets the name of the virtual disk. |
| unitNumber |
integer (int32) |
Gets or sets the unit number of the disk on the controller. |
VirtualMachineTemplate
Define the virtualMachineTemplate.
| 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.customResourceName |
string |
Gets the name of the corresponding resource in Kubernetes. |
| properties.disks |
Gets or sets the disks the template. |
|
| properties.firmwareType |
Firmware type |
|
| properties.folderPath |
string |
Gets or sets the folder path of the template. |
| properties.inventoryItemId |
string |
Gets or sets the inventory Item ID for the virtual machine template. |
| properties.memorySizeMB |
integer (int32) |
Gets or sets memory size in MBs for the template. |
| properties.moName |
string |
Gets or sets the vCenter Managed Object name for the virtual machine template. |
| properties.moRefId |
string |
Gets or sets the vCenter MoRef (Managed Object Reference) ID for the virtual machine template. |
| properties.networkInterfaces |
Gets or sets the network interfaces of the template. |
|
| properties.numCPUs |
integer (int32) |
Gets or sets the number of vCPUs for the template. |
| properties.numCoresPerSocket |
integer (int32) |
Gets or sets the number of cores per socket for the template. Defaults to 1 if unspecified. |
| properties.osName |
string |
Gets or sets os name. |
| properties.osType |
Gets or sets the type of the os. |
|
| properties.provisioningState |
Gets the provisioning state. |
|
| properties.statuses |
The resource status information. |
|
| properties.toolsVersion |
string |
Gets or sets the current version of VMware Tools. |
| properties.toolsVersionStatus |
string |
Gets or sets the current version status of VMware Tools installed in the guest operating system. |
| 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 template resides. |
| systemData |
The system data. |
|
| tags |
object |
Gets or sets the Resource tags. |
| type |
string |
Gets or sets the type of the resource. |