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.
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 |
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 (int32) |
Gets or sets memory size in MBs for the vm. |
numCPUs |
integer (int32) |
Gets or sets the number of vCPUs for the vm. |
numCoresPerSocket |
integer (int32) |
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.
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. |
NetworkInterfaceUpdate
Defines the network interface update.
Name | Type | Description |
---|---|---|
deviceKey |
integer (int32) |
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
Value | Description |
---|---|
vmxnet3 | |
vmxnet2 | |
vmxnet | |
e1000 | |
e1000e | |
pcnet32 |
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.
Value | Description |
---|---|
Windows | |
Linux | |
Other |
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.
Value | Description |
---|---|
enabled | |
disabled |
ProvisioningState
Gets the provisioning state.
Value | Description |
---|---|
Succeeded | |
Failed | |
Canceled | |
Provisioning | |
Updating | |
Deleting | |
Accepted | |
Created |
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. |
SCSIControllerType
Defines the different types of SCSI controllers.
Value | Description |
---|---|
lsilogic | |
buslogic | |
pvscsi | |
lsilogicsas |
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 (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. |
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 (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. |
VirtualDiskUpdate
Defines the virtual disk update.
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. |
|
diskSizeGB |
integer (int32) |
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 (int32) |
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 (arm-id) |
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 (int32) |
Gets or sets the bus number of the controller. |
controllerKey |
integer (int32) |
Gets or sets the key of the controller. |
scsiCtlrUnitNumber |
integer (int32) |
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.
Value | Description |
---|---|
noSharing | |
physicalSharing | |
virtualSharing |
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 (int32) |
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. |