Update-AzConnectedVMwareVM
The operation to Update a virtual machine instance.
Syntax
UpdateExpanded (Default)
Update-AzConnectedVMwareVM
-MachineId <String>
[-HardwareProfileMemorySizeMb <Int32>]
[-HardwareProfileNumCoresPerSocket <Int32>]
[-HardwareProfileNumCpus <Int32>]
[-NetworkProfileNetworkInterface <INetworkInterfaceUpdate[]>]
[-StorageProfileDisk <IVirtualDiskUpdate[]>]
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
UpdateViaJsonFilePath
Update-AzConnectedVMwareVM
-MachineId <String>
-JsonFilePath <String>
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
UpdateViaJsonString
Update-AzConnectedVMwareVM
-MachineId <String>
-JsonString <String>
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The operation to Update a virtual machine instance.
Examples
Example 1: Update Virtual Machine Instances Resource Memory Size
Update-AzConnectedVMwareVM -MachineId "/subscriptions/204898ee-cd13-4332-b9d4-55ca5c25496d/resourceGroups/test-rg/providers/Microsoft.HybridCompute/machines/test-machine" -HardwareProfileMemorySizeMb 2048
ExtendedLocationName : /subscriptions/204898ee-cd13-4332-b9d4-55ca5c25496d/resourcegroups/test-rg/providers/microsoft.extendedlocation/customlocations/test-cl
ExtendedLocationType : CustomLocation
HardwareProfileCpuHotAddEnabled : True
HardwareProfileCpuHotRemoveEnabled : False
HardwareProfileMemoryHotAddEnabled : True
HardwareProfileMemorySizeMb : 2048
HardwareProfileNumCoresPerSocket : 1
HardwareProfileNumCpus : 1
Id : /subscriptions/204898ee-cd13-4332-b9d4-55ca5c25496d/resourceGroups/test-rg/providers/Microsoft.HybridCompute/machines/test-machine/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default
InfrastructureProfileCustomResourceName : d04a3534-2dfa-42c8-8959-83796a1bcac1
InfrastructureProfileFirmwareType : bios
InfrastructureProfileFolderPath : ArcPrivateClouds-67
InfrastructureProfileInstanceUuid : d04a3534-2dfa-42c8-8959-83796a1bcac1
InfrastructureProfileInventoryItemId :
InfrastructureProfileMoName : test-machine
InfrastructureProfileMoRefId : vm-1529269
InfrastructureProfileSmbiosUuid : 4215b305-5f69-959b-0620-16a5bd8c5fc9
InfrastructureProfileTemplateId : /subscriptions/204898ee-cd13-4332-b9d4-55ca5c25496d/resourceGroups/test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/test-vmtmpl
InfrastructureProfileVCenterId : /subscriptions/204898ee-cd13-4332-b9d4-55ca5c25496d/resourceGroups/test-rg/providers/Microsoft.ConnectedVMwarevSphere/vcenters/test-vc
Name : default
NetworkProfileNetworkInterface : {{
"ipSettings": {
"allocationMethod": "unset"
},
"name": "nic_1",
"label": "Network adapter 1",
"ipAddresses": [ "10.150.176.100", "fe80::250:56ff:fe95:ecbc", "2404:f801:4800:14:250:56ff:fe95:ecbc" ],
"macAddress": "00:50:56:95:ec:bc",
"networkId": "/subscriptions/204898ee-cd13-4332-b9d4-55ca5c25496d/resourceGroups/test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/test-vnet",
"nicType": "vmxnet3",
"powerOnBoot": "enabled",
"networkMoRefId": "network-563661",
"networkMoName": "VM Network",
"deviceKey": 4000
}}
OSProfileAdminPassword :
OSProfileAdminUsername :
OSProfileComputerName : test-machine
OSProfileGuestId : ubuntu64Guest
OSProfileOssku : Ubuntu Linux (64-bit)
OSProfileOstype : Linux
OSProfileToolsRunningStatus : guestToolsRunning
OSProfileToolsVersion : 10304
OSProfileToolsVersionStatus : guestToolsUnmanaged
PlacementProfileClusterId : /subscriptions/204898ee-cd13-4332-b9d4-55ca5c25496d/resourceGroups/test-rg/providers/Microsoft.ConnectedVMwarevSphere/Clusters/test-cluster
PlacementProfileDatastoreId :
PlacementProfileHostId : /subscriptions/204898ee-cd13-4332-b9d4-55ca5c25496d/resourceGroups/test-rg/providers/Microsoft.ConnectedVMwarevSphere/Hosts/test-host
PlacementProfileResourcePoolId :
PowerState : poweredOn
ProvisioningState : Succeeded
ResourceGroupName : test-rg
ResourceUid : 4c9c3021-d32e-48f9-b8ac-9cb14ebf6d75
Statuses : {{
"type": "CustomizationCompleted",
"status": "True",
"lastUpdatedAt": "2023-10-06T12:29:36.0000000Z"
}, {
"type": "Ready",
"status": "True",
"lastUpdatedAt": "2023-10-06T14:09:12.3939694Z"
}, {
"type": "Idle",
"status": "True",
"lastUpdatedAt": "2023-10-06T14:09:12.3939694Z"
}}
StorageProfileDisk : {{
"name": "disk_1",
"label": "Hard disk 1",
"diskObjectId": "7435-2000",
"diskSizeGB": 10,
"deviceKey": 2000,
"diskMode": "persistent",
"controllerKey": 1000,
"unitNumber": 0,
"diskType": "flat"
}}
StorageProfileScsiController : {{
"type": "lsilogic",
"controllerKey": 1000,
"scsiCtlrUnitNumber": 7,
"sharing": "noSharing"
}}
SystemDataCreatedAt : 10/6/2023 12:28:17 PM
SystemDataCreatedBy : sanmishra@microsoft.com
SystemDataCreatedByType : User
SystemDataLastModifiedAt : 10/6/2023 2:09:19 PM
SystemDataLastModifiedBy : ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7
SystemDataLastModifiedByType : Application
Type : microsoft.connectedvmwarevsphere/virtualmachineinstances
UefiSettingSecureBootEnabled : False
This command update Memory Size of a VM Instances of machine named test-machine
.
Parameters
-AsJob
Run the command as a job
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-Confirm
Prompts you for confirmation before running the cmdlet.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Aliases: cf
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-DefaultProfile
The DefaultProfile parameter is not functional.
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Parameter properties
Type: PSObject
Default value: None
Supports wildcards: False
DontShow: False
Aliases: AzureRMContext, AzureCredential
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-HardwareProfileMemorySizeMb
Gets or sets memory size in MBs for the vm.
Parameter properties
Type: Int32
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
UpdateExpanded
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-HardwareProfileNumCoresPerSocket
Gets or sets the number of cores per socket for the vm.
Defaults to 1 if unspecified.
Parameter properties
Type: Int32
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
UpdateExpanded
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-HardwareProfileNumCpus
Gets or sets the number of vCPUs for the vm.
Parameter properties
Type: Int32
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
UpdateExpanded
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-JsonFilePath
Path of Json file supplied to the Update operation
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
UpdateViaJsonFilePath
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-JsonString
Json string supplied to the Update operation
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
UpdateViaJsonString
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-MachineId
The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource to be extended.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-NetworkProfileNetworkInterface
Gets or sets the list of network interfaces associated with the virtual machine.
Parameter properties
Parameter sets
UpdateExpanded
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-NoWait
Run the command asynchronously
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-StorageProfileDisk
Gets or sets the list of virtual disks associated with the virtual machine.
Parameter properties
Parameter sets
UpdateExpanded
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Aliases: wi
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters .
Outputs