Update-AzConnectedVMwareVM
The operation to Update a virtual machine instance.
Syntax
Update-AzConnectedVMwareVM
-MachineId <String>
[-HardwareProfileMemorySizeMb <Int32>]
[-HardwareProfileNumCoresPerSocket <Int32>]
[-HardwareProfileNumCpus <Int32>]
[-NetworkProfileNetworkInterface <INetworkInterfaceUpdate[]>]
[-StorageProfileDisk <IVirtualDiskUpdate[]>]
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzConnectedVMwareVM
-MachineId <String>
-JsonFilePath <String>
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
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
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-HardwareProfileMemorySizeMb
Gets or sets memory size in MBs for the vm.
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-HardwareProfileNumCoresPerSocket
Gets or sets the number of cores per socket for the vm. Defaults to 1 if unspecified.
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-HardwareProfileNumCpus
Gets or sets the number of vCPUs for the vm.
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JsonFilePath
Path of Json file supplied to the Update operation
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JsonString
Json string supplied to the Update operation
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MachineId
The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource to be extended.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-NetworkProfileNetworkInterface
Gets or sets the list of network interfaces associated with the virtual machine.
Type: | INetworkInterfaceUpdate[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-NoWait
Run the command asynchronously
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageProfileDisk
Gets or sets the list of virtual disks associated with the virtual machine.
Type: | IVirtualDiskUpdate[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
Azure PowerShell