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-arc/vmware-vsphere/enable-guest-management-at-scale.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,15 +26,15 @@ Ensure the following before you install Arc agents at scale for VMware VMs:
26
26
- All the target machines are:
27
27
- Powered on and the resource bridge has network connectivity to the host running the VM.
28
28
- Running a [supported operating system](../servers/prerequisites.md#supported-operating-systems).c
29
-
- VMware tools are installed on the machines. If VMware tools aren't installed, the enable guest management operation is grayed out in the portal.
29
+
- VMware tools are installed on the machines. If VMware tools aren't installed, enable guest management operation is grayed out in the portal.
30
30
>[!Note]
31
31
>You can use the [out-of-band method](./enable-guest-management-at-scale.md#approach-d-install-arc-agents-at-scale-using-out-of-band-approach) to install Arc agents if VMware tools aren't installed.
32
32
- Able to connect through the firewall to communicate over the internet, and [these URLs](../servers/network-requirements.md#urls) aren't blocked.
33
33
34
34
> [!NOTE]
35
35
> If you're using a Linux VM, the account must not prompt for login on sudo commands. To override the prompt, from a terminal, run `sudo visudo`, and add `<username> ALL=(ALL) NOPASSWD:ALL` at the end of the file. Ensure you replace `<username>`. <br> <br>If your VM template has these changes incorporated, you won't need to do this for the VM created from that template.
36
36
37
-
###Approach A: Install Arc agents at scale from portal
37
+
## Approach A: Install Arc agents at scale from portal
38
38
39
39
An admin can install agents for multiple machines from the Azure portal if the machines share the same administrator credentials.
40
40
@@ -56,7 +56,7 @@ An admin can install agents for multiple machines from the Azure portal if the m
56
56
> [!NOTE]
57
57
> For Windows VMs, the account must be part of local administrator group; and for Linux VM, it must be a root account.
58
58
59
-
###Approach B: Install Arc agents using AzCLI commands
59
+
## Approach B: Install Arc agents using AzCLI commands
60
60
61
61
The following Azure CLI commands can be used to install Arc agents.
62
62
@@ -74,11 +74,11 @@ az connectedvmware vm guest-agent enable --password
74
74
[--no-wait]
75
75
```
76
76
77
-
###Approach C: Install Arc agents at scale using helper script
77
+
## Approach C: Install Arc agents at scale using helper script
78
78
79
79
Arc agent installation can be automated using the helper script built using the AzCLI command provided [here](./enable-guest-management-at-scale.md#approach-b-install-arc-agents-using-azcli-commands). Download this [helper script](https://aka.ms/arcvmwarebatchenable) to enable VMs and install Arc agents at scale. In a single ARM deployment, the helper script can enable and install Arc agents on 200 VMs.
80
80
81
-
####Features of the script
81
+
### Features of the script
82
82
83
83
- Creates a log file (vmware-batch.log) for tracking its operations.
84
84
@@ -94,15 +94,15 @@ Arc agent installation can be automated using the helper script built using the
94
94
95
95
Before running this script, install az cli and the connectedvmware extension.
96
96
97
-
####Prerequisites
97
+
### Prerequisites
98
98
99
99
Before running this script, install:
100
100
101
101
- Azure CLI from [here](/cli/azure/install-azure-cli).
102
102
103
103
- The `connectedvmware` extension for Azure CLI: Install it by running `az extension add --name connectedvmware`.
104
104
105
-
## Usage
105
+
###Usage
106
106
107
107
1. Download the script to your local machine.
108
108
@@ -112,7 +112,7 @@ Before running this script, install:
112
112
113
113
4. Run the script with the required parameters. For example, `.\arcvmware-batch-enablement.ps1 -VCenterId "<vCenterId>" -EnableGuestManagement -VMCountPerDeployment 3 -DryRun`. Replace `<vCenterId>` with the ARM ID of your vCenter.
114
114
115
-
## Parameters
115
+
###Parameters
116
116
117
117
-`VCenterId`: The ARM ID of the vCenter where the VMs are located.
118
118
@@ -122,7 +122,7 @@ Before running this script, install:
122
122
123
123
-`DryRun`: If this switch is specified, the script will only create the ARM deployment files. Else, the script will also deploy the ARM deployments.
124
124
125
-
## Running as a Cron Job
125
+
###Running as a Cron Job
126
126
127
127
You can set up this script to run as a cron job using the Windows Task Scheduler. Here's a sample script to create a scheduled task:
128
128
@@ -140,11 +140,11 @@ To unregister the task, run the following command:
140
140
Unregister-ScheduledTask -TaskName "EnableVMs"
141
141
```
142
142
143
-
###Approach D: Install Arc agents at scale using out-of-band approach
143
+
## Approach D: Install Arc agents at scale using out-of-band approach
144
144
145
-
Arc agents can be installed directly on machines without relying on VMware tools or APIs. By following the out-of-band approach, initially onboard the machines as Arc-enabled Server resources with Resource type as Microsoft.HybridCompute/machines. After that, perform **Link to vCenter** operation to update the machine's Kind property as VMware, enabling virtual lifecycle operations.
145
+
Arc agents can be installed directly on machines without relying on VMware tools or APIs. By following the out-of-band approach, first onboard the machines as Arc-enabled Server resources with Resource type as Microsoft.HybridCompute/machines. After that, perform **Link to vCenter** operation to update the machine's Kind property as VMware, enabling virtual lifecycle operations.
146
146
147
-
a. **Connect the machines as Arc-enabled Server resources:** Install Arc agents using Arc-enabled Server scripts.
147
+
1.**Connect the machines as Arc-enabled Server resources:** Install Arc agents using Arc-enabled Server scripts.
148
148
149
149
You can use any of the following automation approaches to install Arc agents at scale:
150
150
@@ -154,7 +154,7 @@ You can use any of the following automation approaches to install Arc agents at
154
154
-[Install Arc agents at scale using Group policy](../servers/onboard-group-policy-powershell.md).
155
155
-[Install Arc agents at scale using Ansible playbook](../servers/onboard-ansible-playbooks.md).
156
156
157
-
b. **Link Arc-enabled Server resources to the vCenter:** The following commands will update the Kind property of Hybrid Compute machines as **VMware**. Linking the machines to vCenter will enable virtual lifecycle operations and power cycle operations (start, stop, etc.) on the machines.
157
+
2.**Link Arc-enabled Server resources to the vCenter:** The following commands will update the Kind property of Hybrid Compute machines as **VMware**. Linking the machines to vCenter will enable virtual lifecycle operations and power cycle operations (start, stop, etc.) on the machines.
158
158
159
159
- The following command scans all the Arc for Server machines that belong to the vCenter in the specified subscription and links the machines with that vCenter.
0 commit comments