Skip to content

Commit b12606b

Browse files
authored
Merge pull request #281165 from BanoFarha/VMware-July18
Added the include files for the cli commands
2 parents ab0e939 + 2035207 commit b12606b

File tree

5 files changed

+32
-20
lines changed

5 files changed

+32
-20
lines changed

articles/azure-arc/vmware-vsphere/enable-guest-management-at-scale.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Install Arc agent at scale for your VMware VMs
33
description: Learn how to enable guest management at scale for Arc enabled VMware vSphere VMs.
44
ms.topic: how-to
5-
ms.date: 07/08/2024
5+
ms.date: 07/18/2024
66
ms.service: azure-arc
77
ms.subservice: azure-arc-vmware-vsphere
88
author: PriskeyJeronika-MS
@@ -158,21 +158,15 @@ Arc agents can be installed directly on machines without relying on VMware tools
158158

159159
- 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.
160160

161-
```azurecli-interactive
162-
az connectedvmware vm create-from-machines --subscription contoso-sub --vcenter-id /subscriptions/999998ee-cd13-9999-b9d4-55ca5c25496d/resourceGroups/allhands-demo/providers/microsoft.connectedvmwarevsphere/VCenters/ContosovCentervcenters/contoso-vcenter
163-
```
161+
[!INCLUDE [azure-cli-subscription](./includes/azure-cli-subscription.md)]
164162

165163
- The following command scans all the Arc for Server machines that belong to the vCenter in the specified Resource Group and links the machines with that vCenter.
166164

167-
```azurecli-interactive
168-
az connectedvmware vm create-from-machines --resource-group contoso-rg --vcenter-id /subscriptions/999998ee-cd13-9999-b9d4-55ca5c25496d/resourceGroups/allhands-demo/providers/microsoft.connectedvmwarevsphere/VCenters/ContosovCentervcenters/contoso-vcenter
169-
```
165+
[!INCLUDE [azure-cli-all](./includes/azure-cli-all.md)]
170166

171167
- The following command can be used to link an individual Arc for Server resource to vCenter.
172168

173-
```azurecli-interactive
174-
az connectedvmware vm create-from-machines --subscription contoso-sub --vcenter-id /subscriptions/999998ee-cd13-9999-b9d4-55ca5c25496d/resourceGroups/allhands-demo/providers/microsoft.connectedvmwarevsphere/VCenters/ContosovCentervcenters/contoso-vcenter
175-
```
169+
[!INCLUDE [azure-cli-specified-arc](./includes/azure-cli-specified-arc.md)]
176170

177171
## Next steps
178172

articles/azure-arc/vmware-vsphere/enable-virtual-hardware.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Enable additional capabilities on Arc-enabled Server machines by linking to vCenter
33
description: Enable additional capabilities on Arc-enabled Server machines by linking to vCenter.
44
ms.topic: how-to
5-
ms.date: 07/04/2024
5+
ms.date: 07/18/2024
66
ms.service: azure-arc
77
ms.subservice: azure-arc-vmware-vsphere
88
ms.custom: devx-track-azurecli
@@ -50,21 +50,15 @@ Use the following az commands to link Arc-enabled Server machines to vCenter at
5050

5151
**Create VMware resource from the specified Arc for Server machine in the vCenter**
5252

53-
```azurecli-interactive
54-
az connectedvmware vm create-from-machines --resource-group contoso-rg --name contoso-vm --vcenter-id /subscriptions/999998ee-cd13-9999-b9d4-55ca5c25496d/resourceGroups/allhands-demo/providers/microsoft.connectedvmwarevsphere/VCenters/ContosovCentervcenters/contoso-vcenter
55-
```
53+
[!INCLUDE [azure-cli-specified-arc](./includes/azure-cli-specified-arc.md)]
5654

5755
**Create VMware resources from all Arc for Server machines in the specified resource group belonging to that vCenter**
5856

59-
```azurecli-interactive
60-
az connectedvmware vm create-from-machines --resource-group contoso-rg --vcenter-id /subscriptions/999998ee-cd13-9999-b9d4-55ca5c25496d/resourceGroups/allhands-demo/providers/microsoft.connectedvmwarevsphere/VCenters/ContosovCentervcenters/contoso-vcenter
61-
```
57+
[!INCLUDE [azure-cli-all](./includes/azure-cli-all.md)]
6258

6359
**Create VMware resources from all Arc for Server machines in the specified subscription belonging to that vCenter**
6460

65-
```azurecli-interactive
66-
az connectedvmware vm create-from-machines --subscription contoso-sub --vcenter-id /subscriptions/999998ee-cd13-9999-b9d4-55ca5c25496d/resourceGroups/allhands-demo/providers/microsoft.connectedvmwarevsphere/VCenters/ContosovCentervcenters/contoso-vcenter
67-
```
61+
[!INCLUDE [azure-cli-subscription](./includes/azure-cli-subscription.md)]
6862

6963
### Required Parameters
7064

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
ms.topic: include
3+
ms.date: 07/18/2024
4+
---
5+
6+
```azurecli-interactive
7+
az connectedvmware vm create-from-machines --resource-group contoso-rg --vcenter-id /subscriptions/999998ee-cd13-9999-b9d4-55ca5c25496d/resourceGroups/allhands-demo/providers/microsoft.connectedvmwarevsphere/VCenters/ContosovCentervcenters/contoso-vcenter
8+
```
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
ms.topic: include
3+
ms.date: 07/18/2024
4+
---
5+
6+
```azurecli-interactive
7+
az connectedvmware vm create-from-machines --resource-group contoso-rg --name contoso-vm --vcenter-id /subscriptions/999998ee-cd13-9999-b9d4-55ca5c25496d/resourceGroups/allhands-demo/providers/microsoft.connectedvmwarevsphere/VCenters/ContosovCentervcenters/contoso-vcenter
8+
```
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
ms.topic: include
3+
ms.date: 07/18/2024
4+
---
5+
6+
```azurecli-interactive
7+
az connectedvmware vm create-from-machines --subscription contoso-sub --vcenter-id /subscriptions/999998ee-cd13-9999-b9d4-55ca5c25496d/resourceGroups/allhands-demo/providers/microsoft.connectedvmwarevsphere/VCenters/ContosovCentervcenters/contoso-vcenter
8+
```

0 commit comments

Comments
 (0)