Virtual Machine Instances - Update
Updates a virtual machine.
The operation to update a virtual machine instance.
PATCH https://management.azure.com/{resourceUri}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default?api-version=2023-12-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
resource
|
path | True |
string |
The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource to be extended. |
api-version
|
query | True |
string |
Client Api Version. |
Request Body
Name | Type | Description |
---|---|---|
properties.hardwareProfile |
Specifies the hardware settings for the virtual machine. |
|
properties.networkProfile |
Specifies the network interfaces of the virtual machine. |
|
properties.storageProfile |
Specifies the storage settings for the virtual machine disks. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Arm resource update successful. |
|
202 Accepted |
Accepted Headers Location: string |
|
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
UpdateVirtualMachine
Sample request
PATCH https://management.azure.com/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default?api-version=2023-12-01
{
"properties": {
"hardwareProfile": {
"memorySizeMB": 4196,
"numCPUs": 4
}
}
}
Sample response
{
"id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default",
"name": "default",
"type": "Microsoft.ConnectedVMwarevSphere/VirtualMachines",
"extendedLocation": {
"type": "customLocation",
"name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso"
},
"properties": {
"infrastructureProfile": {
"templateId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/VirtualMachineTemplates/WebFrontEndTemplate",
"vCenterId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/ContosoVCenter",
"moRefId": "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
},
"placementProfile": {
"resourcePoolId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/ResourcePools/HRPool"
},
"osProfile": {
"computerName": "DemoVM",
"osType": "Windows"
},
"hardwareProfile": {
"memorySizeMB": 4196,
"numCPUs": 4
},
"provisioningState": "Succeeded"
}
}
Azure-AsyncOperation: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/WESTEUROPE/operationStatuses/00000000-0000-0000-0000-000000000000?api-version=2023-12-01
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 |
Hardware |
Specifies the hardware settings for the virtual machine. |
Infrastructure |
Specifies the vCenter infrastructure specific settings for the virtual machine. |
IPAddress |
IP address allocation method. |
Network |
Network Interface model |
Network |
Defines the network interface update. |
Network |
Specifies the network interfaces of the virtual machine. |
Network |
Specifies the network interfaces of the virtual machine. |
Nic |
IP address information for a virtual network adapter reported by the fabric. |
Nic |
Defines the network interface ip settings. |
NICType |
NIC type |
Os |
Specifies the operating system settings for the virtual machine. |
Os |
Defines the different types of VM guest operating systems. |
Placement |
Specifies the compute and storage placement settings for the virtual machine. |
Power |
Defines the options for power on boot. |
Provisioning |
Gets the provisioning state. |
Resource |
The resource status information. |
SCSIController |
Defines the different types of SCSI controllers. |
Security |
Specifies the Security profile settings for the virtual machine. |
Storage |
Specifies the storage settings for the virtual machine disks. |
Storage |
Specifies the storage settings for the virtual machine disks. |
system |
Metadata pertaining to creation and last modification of the resource. |
Uefi |
Specifies the security settings like secure boot used while creating the virtual machine. |
Virtual |
Virtual disk model |
Virtual |
Defines the virtual disk update. |
Virtual |
Define the virtualMachineInstance. |
Virtual |
Defines the virtualMachineInstanceUpdate. |
Virtual |
This data object type contains the properties of a SCSI controller device attached to a virtual machine that is reported by the controller. |
Virtual |
Defines the sharing mode for sharing the SCSI bus. |
Windows |
Specifies the Windows Configuration settings for the virtual machine. |
createdByType
The type of identity that created the resource.
Name | Type | Description |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
DiskMode
Defines the different types of disk modes.
Name | Type | Description |
---|---|---|
independent_nonpersistent |
string |
|
independent_persistent |
string |
|
persistent |
string |
DiskType
Defines the different types of disks.
Name | Type | Description |
---|---|---|
flat |
string |
|
pmem |
string |
|
rawphysical |
string |
|
rawvirtual |
string |
|
sesparse |
string |
|
sparse |
string |
|
unknown |
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. |
FirmwareType
Firmware type
Name | Type | Description |
---|---|---|
bios |
string |
|
efi |
string |
HardwareProfile
Specifies the hardware settings for the virtual machine.
Name | Type | Description |
---|---|---|
cpuHotAddEnabled |
boolean |
Gets or sets a value indicating whether virtual processors can be added while this virtual machine is running. |
cpuHotRemoveEnabled |
boolean |
Gets or sets a value indicating whether virtual processors can be removed while this virtual machine is running. |
memoryHotAddEnabled |
boolean |
Gets or sets a value indicating whether memory can be added while this virtual machine is running. |
memorySizeMB |
integer |
Gets or sets memory size in MBs for the vm. |
numCPUs |
integer |
Gets or sets the number of vCPUs for the vm. |
numCoresPerSocket |
integer |
Gets or sets the number of cores per socket for the vm. Defaults to 1 if unspecified. |
InfrastructureProfile
Specifies the vCenter infrastructure specific settings for the virtual machine.
Name | Type | Description |
---|---|---|
customResourceName |
string |
Gets the name of the corresponding resource in Kubernetes. |
firmwareType |
Firmware type |
|
folderPath |
string |
Gets or sets the folder path of the vm. |
instanceUuid |
string |
Gets or sets the instance uuid of the vm. |
inventoryItemId |
string |
Gets or sets the inventory Item ID for the virtual machine. |
moName |
string |
Gets or sets the vCenter Managed Object name for the virtual machine. |
moRefId |
string |
Gets or sets the vCenter MoRef (Managed Object Reference) ID for the virtual machine. |
smbiosUuid |
string |
Gets or sets the SMBIOS UUID of the vm. |
templateId |
string |
Gets or sets the ARM Id of the template resource to deploy the virtual machine. |
vCenterId |
string |
Gets or sets the ARM Id of the vCenter resource in which this resource pool resides. |
IPAddressAllocationMethod
IP address allocation method.
Name | Type | Description |
---|---|---|
dynamic |
string |
|
linklayer |
string |
|
other |
string |
|
random |
string |
|
static |
string |
|
unset |
string |
NetworkInterface
Network Interface model
Name | Type | Description |
---|---|---|
deviceKey |
integer |
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. |
NetworkInterfaceUpdate
Defines the network interface update.
Name | Type | Description |
---|---|---|
deviceKey |
integer |
Gets or sets the device key value. |
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. |
nicType |
NIC type |
|
powerOnBoot |
Gets or sets the power on boot. |
NetworkProfile
Specifies the network interfaces of the virtual machine.
Name | Type | Description |
---|---|---|
networkInterfaces |
Gets or sets the list of network interfaces associated with the virtual machine. |
NetworkProfileUpdate
Specifies the network interfaces of the virtual machine.
Name | Type | Description |
---|---|---|
networkInterfaces |
Gets or sets the list of network interfaces associated with the virtual machine. |
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
Name | Type | Description |
---|---|---|
e1000 |
string |
|
e1000e |
string |
|
pcnet32 |
string |
|
vmxnet |
string |
|
vmxnet2 |
string |
|
vmxnet3 |
string |
OsProfileForVMInstance
Specifies the operating system settings for the virtual machine.
Name | Type | Description |
---|---|---|
adminPassword |
string |
Sets administrator password. |
adminUsername |
string |
Gets or sets administrator username. |
computerName |
string |
Gets or sets computer name. |
guestId |
string |
Gets or sets the guestId. |
osSku |
string |
Gets or sets os sku. |
osType |
Gets or sets the type of the os. |
|
toolsRunningStatus |
string |
Gets or sets the current running status of VMware Tools running in the guest operating system. |
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. |
windowsConfiguration |
Windows Configuration. |
OsType
Defines the different types of VM guest operating systems.
Name | Type | Description |
---|---|---|
Linux |
string |
|
Other |
string |
|
Windows |
string |
PlacementProfile
Specifies the compute and storage placement settings for the virtual machine.
Name | Type | Description |
---|---|---|
clusterId |
string |
Gets or sets the ARM Id of the cluster resource on which this virtual machine will deploy. |
datastoreId |
string |
Gets or sets the ARM Id of the datastore resource on which the data for the virtual machine will be kept. |
hostId |
string |
Gets or sets the ARM Id of the host resource on which this virtual machine will deploy. |
resourcePoolId |
string |
Gets or sets the ARM Id of the resourcePool resource on which this virtual machine will deploy. |
PowerOnBootOption
Defines the options for power on boot.
Name | Type | Description |
---|---|---|
disabled |
string |
|
enabled |
string |
ProvisioningState
Gets the provisioning state.
Name | Type | Description |
---|---|---|
Accepted |
string |
|
Canceled |
string |
|
Created |
string |
|
Deleting |
string |
|
Failed |
string |
|
Provisioning |
string |
|
Succeeded |
string |
|
Updating |
string |
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. |
SCSIControllerType
Defines the different types of SCSI controllers.
Name | Type | Description |
---|---|---|
buslogic |
string |
|
lsilogic |
string |
|
lsilogicsas |
string |
|
pvscsi |
string |
SecurityProfile
Specifies the Security profile settings for the virtual machine.
Name | Type | Description |
---|---|---|
uefiSettings |
Specifies the security settings like secure boot used while creating the virtual machine. |
StorageProfile
Specifies the storage settings for the virtual machine disks.
Name | Type | Description |
---|---|---|
disks |
Gets or sets the list of virtual disks associated with the virtual machine. |
|
scsiControllers |
Gets or sets the list of virtual SCSI controllers associated with the virtual machine. |
StorageProfileUpdate
Specifies the storage settings for the virtual machine disks.
Name | Type | Description |
---|---|---|
disks |
Gets or sets the list of virtual disks associated with the virtual machine. |
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. |
UefiSettings
Specifies the security settings like secure boot used while creating the virtual machine.
Name | Type | Description |
---|---|---|
secureBootEnabled |
boolean |
Specifies whether secure boot should be enabled on the virtual machine. |
VirtualDisk
Virtual disk model
Name | Type | Description |
---|---|---|
controllerKey |
integer |
Gets or sets the controller id. |
deviceKey |
integer |
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 |
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 |
Gets or sets the unit number of the disk on the controller. |
VirtualDiskUpdate
Defines the virtual disk update.
Name | Type | Description |
---|---|---|
controllerKey |
integer |
Gets or sets the controller id. |
deviceKey |
integer |
Gets or sets the device key value. |
deviceName |
string |
Gets or sets the device name. |
diskMode |
Gets or sets the disk mode. |
|
diskSizeGB |
integer |
Gets or sets the disk total size. |
diskType |
Gets or sets the disk backing type. |
|
name |
string |
Gets or sets the name of the virtual disk. |
unitNumber |
integer |
Gets or sets the unit number of the disk on the controller. |
VirtualMachineInstance
Define the virtualMachineInstance.
Name | Type | Description |
---|---|---|
extendedLocation |
Gets or sets the extended location. |
|
id |
string |
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name |
string |
The name of the resource |
properties.hardwareProfile |
Hardware properties. |
|
properties.infrastructureProfile |
Gets the infrastructure profile. |
|
properties.networkProfile |
Network properties. |
|
properties.osProfile |
OS properties. |
|
properties.placementProfile |
Placement properties. |
|
properties.powerState |
string |
Gets the power state of the virtual machine. |
properties.provisioningState |
Gets the provisioning state. |
|
properties.resourceUid |
string |
Gets or sets a unique identifier for the vm resource. |
properties.securityProfile |
Gets the security profile. |
|
properties.statuses |
The resource status information. |
|
properties.storageProfile |
Storage properties. |
|
systemData |
Azure Resource Manager metadata containing createdBy and modifiedBy information. |
|
type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
VirtualMachineInstanceUpdate
Defines the virtualMachineInstanceUpdate.
Name | Type | Description |
---|---|---|
properties.hardwareProfile |
Specifies the hardware settings for the virtual machine. |
|
properties.networkProfile |
Specifies the network interfaces of the virtual machine. |
|
properties.storageProfile |
Specifies the storage settings for the virtual machine disks. |
VirtualSCSIController
This data object type contains the properties of a SCSI controller device attached to a virtual machine that is reported by the controller.
Name | Type | Description |
---|---|---|
busNumber |
integer |
Gets or sets the bus number of the controller. |
controllerKey |
integer |
Gets or sets the key of the controller. |
scsiCtlrUnitNumber |
integer |
Gets or sets the SCSI controller unit number. |
sharing |
Gets or sets the sharing mode. |
|
type |
Gets or sets the controller type. |
VirtualSCSISharing
Defines the sharing mode for sharing the SCSI bus.
Name | Type | Description |
---|---|---|
noSharing |
string |
|
physicalSharing |
string |
|
virtualSharing |
string |
WindowsConfiguration
Specifies the Windows Configuration settings for the virtual machine.
Name | Type | Description |
---|---|---|
autoLogon |
boolean |
Sets a value indicating whether auto logon is enabled. |
autoLogonCount |
integer |
Sets auto logon count. |
domainName |
string |
Sets domain name that vm should join. |
domainUserPassword |
string |
Sets domain user password. |
domainUsername |
string |
Sets domain username. |
firstLogonCommands |
string[] |
Sets first logon commands |
fullName |
string |
Sets full name of the owner of the vm. |
orgName |
string |
Sets org name to which the owner of the vm belongs. |
productId |
string |
Sets product id of the vm. |
timeZone |
string |
Specifies the time zone of the virtual machine. e.g. "Pacific Standard Time". Time zone name correspond to time zones listed at Microsoft Time Zone name values(https://learn.microsoft.com/en-us/previous-versions/windows/embedded/ms912391(v=winembedded.11)). |
workGroupName |
string |
Sets work group name that vm should join. |