You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-vmware/use-hcx-run-commands.md
+57-15Lines changed: 57 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,8 @@ title: Use VMware HCX Run Commands
3
3
description: Use VMware HCX Run Commands in Azure VMware Solution
4
4
ms.topic: how-to
5
5
ms.service: azure-vmware
6
-
ms.custom: engagement-fy23
7
-
ms.date: 3/22/2024
6
+
ms.custom: engagement-fy26
7
+
ms.date: 3/5/2026
8
8
# Customer intent: As a cloud administrator, I want to execute VMware HCX Run Commands in an Azure VMware Solution, so that I can manage and scale the HCX Manager efficiently while maintaining service integrity during operations.
9
9
---
10
10
@@ -35,31 +35,73 @@ Optional run command parameters.
35
35
1. Wait for command to finish. It can take few minutes for the VMware HCX appliance to come online.
36
36
37
37
## Scale VMware HCX manager
38
-
Use the Scale VMware HCX Cloud Manager Run Command to increase the resource allocation of your VMware HCX Cloud Manager virtual machine to 8 vCPUs and 24-GB RAM from the default setting of 4 vCPUs and 12-GB RAM, ensuring scalability.
38
+
Use the Scale VMware HCX Cloud Manager Run Command to increase the resource allocation of your VMware HCX Cloud Manager virtual machine, ensuring scalability for larger deployments and increased concurrent migrations.
39
+
40
+
**Supported in HCX 4.10+**
39
41
40
42
**Scenario**: Mobility Optimize Networking (MON) requires VMware HCX Scalability. For more details on [MON scaling](https://kb.vmware.com/s/article/88401)
41
43
42
44
>[!NOTE]
43
45
> VMware HCX Cloud Manager will be rebooted during this operation, and this may affect any ongoing migration processes.
44
46
45
-
1. Navigate to the Run Command panel on in an Azure VMware Solution private cloud on the Azure portal.
47
+
1. Navigate to the **Run Command** panel under **Operations** in an Azure VMware Solution private cloud on the Azure portal.
46
48
47
-
1. Select the **Microsoft.AVS.HCX** package dropdown menu and select the **Set-HcxScaledCpuAndMemorySetting** command.
49
+
2. Select the **Microsoft.AVS.HCX** package dropdown menu and select the **Set-HcxScaledCpuAndMemorySetting** command.
48
50
49
51
:::image type="content" source="media/hcx-commands/set-hcx-scale.png" alt-text="Diagram that shows run command parameters for Set-HcxScaledCpuAndMemorySetting command." border="false" lightbox="media/hcx-commands/set-hcx-scale.png":::
50
52
51
-
1. Agree to restart VMware HCX by toggling ``AgreeToRestartHCX`` to **True**.
52
-
You need to acknowledge that the virtual machine will be restarted.
53
-
54
-
55
-
>[!NOTE]
56
-
> If this required parameter is set to false that cmdlet execution will fail.
53
+
3. Set parameters and select Run. Optional run command parameters.
57
54
58
-
1. Select **Run** to execute.
59
-
This process takes between 10-15 minutes.
55
+
If the parameters are used incorrectly, they can halt active migrations and replications and cause other issues. Brief description of each parameter with an example of when it should be used:
56
+
57
+
**ScaleFormFactor Parameter** - Specifies the target form factor for the HCX Manager VM — *"Medium"* or *"Large"*. Defaults to *"Medium"* if not specified. See [Form Factor Specification](use-hcx-run-commands.md) for details on each size.
58
+
59
+
**DiskStorageFormat Parameter** - Specifies the storage format for the new disk added during scaling — *"Thin"*, *"Thick"*, or *"EagerZeroedThick"*. Defaults to *"Thin"*. See [Disk Storage Formats] for guidance on choosing a format.
60
+
61
+
**AgreeToRestartHCX Parameter** (required) - Acknowledgment that the HCX Manager VM will be restarted during the scaling operation. Must be set to *True* for the command to execute. If set to *False*, the cmdlet execution will fail.
62
+
63
+
**Force Parameter** - Bypasses safety checks such as active migration and replication detection and existing snapshot validation. Use this parameter when a migration is stuck in an active state and you still need to proceed with scaling.
64
+
65
+
**SkipSnapshot Parameter** - Skips the creation of a pre-scaling snapshot. Requires the *-Force* parameter to be set. Not recommended, as the automatic snapshot provides a safety net for failure recovery.
66
+
67
+
4. Select **Run** to execute. This process takes between 10-15 minutes.
60
68
61
-
>[!NOTE]
62
-
> VMware HCX cloud manager will be unavailable during the scaling.
69
+
>[!NOTE]
70
+
> VMware HCX Cloud Manager will be unavailable during the scaling.
>"Small" is the default form factor already deployed. It is not a selectable option in the *Set-HcxScaledCpuAndMemorySetting* command. The command only scales up to **Medium** or **Large**.
81
+
82
+
### Disk Storage Formats
83
+
84
+
| Format | Description | Performance | Space Efficiency | Use Case |
85
+
| :--- | :--- | :--- | :--- | :--- |
86
+
|**Thin**| Lazy-zeroed thin provisioning | Good | High | Default, most environments |
|**EagerZeroedThick**| Zeroed at creation | Best | Lowest | Maximum performance |
89
+
90
+
>[!NOTE]
91
+
>Use the default "Thin" unless specific performance requirements dictate otherwise. Thin disks grow on-demand, while Thick and EagerZeroedThick allocate full space immediately.
92
+
93
+
### Automatic Failure Recovery
94
+
If scaling fails at any point during execution, the system automatically recovers:
95
+
96
+
1.**Snapshot revert** - Automatically reverts to the pre-scaling snapshot.
97
+
98
+
2.**Power on** - Powers on HCX Manager from the snapshot state (last known good configuration).
0 commit comments