Skip to content

Commit 4cf15fe

Browse files
Merge pull request #193176 from snehithm/day2-ops-preview
Day2 operations docs
2 parents 33f2c34 + 42ee507 commit 4cf15fe

File tree

5 files changed

+259
-4
lines changed

5 files changed

+259
-4
lines changed

articles/azure-arc/overview.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Currently, Azure Arc allows you to manage the following resource types hosted ou
2828
* [Azure data services](data/overview.md): Run Azure data services on-premises, at the edge, and in public clouds using Kubernetes and the infrastructure of your choice. SQL Managed Instance
2929
and PostgreSQL Hyperscale (preview) services are currently available.
3030
* [SQL Server](/sql/sql-server/azure-arc/overview): Extend Azure services to SQL Server instances hosted outside of Azure.
31+
* Virtual machines (preview): Provision, resize, delete and manage virtual machines based on [VMware vSphere](/vmware-vsphere/overview.md) or [Azure Stack HCI](/azure-stack/hci/manage/azure-arc-enabled-virtual-machines) and enable VM self-service through role-based access.
3132

3233
## Key features and benefits
3334

@@ -47,6 +48,8 @@ Some of the key scenarios that Azure Arc supports are:
4748

4849
* Create [custom locations](./kubernetes/custom-locations.md) on top of your [Azure Arc-enabled Kubernetes](./kubernetes/overview.md) clusters, using them as target locations for deploying Azure services instances. Deploy your Azure service cluster extensions for [Azure Arc-enabled Data Services](./data/create-data-controller-direct-azure-portal.md), [App Services on Azure Arc](../app-service/overview-arc-integration.md) (including web, function, and logic apps) and [Event Grid on Kubernetes](../event-grid/kubernetes/overview.md).
4950

51+
* Perform virtual machine lifecycle and management operations for [VMware vSphere](/vmware-vsphere/overview.md) and [Azure Stack HCI](/azure-stack/hci/manage/azure-arc-enabled-virtual-machines) environments.
52+
5053
* A unified experience viewing your Azure Arc-enabled resources, whether you are using the Azure portal, the Azure CLI, Azure PowerShell, or Azure REST API.
5154

5255
## Pricing
@@ -81,4 +84,5 @@ For information, see the [Azure pricing page](https://azure.microsoft.com/pricin
8184
* Learn about [Azure Arc-enabled Kubernetes](./kubernetes/overview.md).
8285
* Learn about [Azure Arc-enabled data services](https://azure.microsoft.com/services/azure-arc/hybrid-data-services/).
8386
* Learn about [SQL Server on Azure Arc-enabled servers](/sql/sql-server/azure-arc/overview).
87+
* Learn about [Azure Arc-enabled VMware vSphere](vmware-vsphere/overview.md) and [Azure Arc-enabled Azure Stack HCI](https://docs.microsoft.com/azure-stack/hci/manage/azure-arc-enabled-virtual-machines)
8488
* Experience Azure Arc-enabled services by exploring the [Jumpstart proof of concept](https://azurearcjumpstart.io/azure_arc_jumpstart/).
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
---
2+
title: Perform ongoing administration for Arc-enabled VMware vSphere
3+
description: Learn how to perform day 2 administrator operations related to Azure Arc-enabled VMware vSphere
4+
ms.topic: how-to
5+
ms.date: 03/28/2022
6+
7+
---
8+
9+
# Perform ongoing administration for Arc-enabled VMware vSphere
10+
11+
In this article, you'll learn how to perform various administrative operations related to Azure Arc-enabled VMware vSphere (preview):
12+
13+
- Upgrading the Arc resource bridge
14+
- Updating the credentials
15+
- Collecting logs from the Arc resource bridge
16+
17+
Each of these operations requires either SSH key to the resource bridge VM or the kubeconfig that provides access to the Kubernetes cluster on the resource bridge VM.
18+
19+
## Upgrading the Arc resource bridge
20+
21+
Azure Arc-enabled VMware vSphere requires the Arc resource bridge to connect your VMware vSphere environment with Azure. Periodically, new images of Arc resource bridge will be released to include security and feature updates.
22+
23+
> [!NOTE]
24+
> To upgrade the arc resource bridge VM to the latest version, you will need to perform the onboarding again with the **same resource IDs**. This will cause some downtime as operations performed through Arc during this time might fail.
25+
26+
To upgrade to the latest version of the resource bridge, perform the following steps:
27+
28+
1. Copy the Azure region and resource IDs of the Arc resource bridge, custom location and vCenter Azure resources
29+
30+
2. Find and delete the old Arc resource bridge **template** from your vCenter
31+
32+
3. Download the script from the portal and update the following section in the script
33+
34+
```powershell
35+
$location = <Azure region of the resources>
36+
37+
$applianceSubscriptionId = <subscription-id>
38+
$applianceResourceGroupName = <resourcegroup-name>
39+
$applianceName = <resource-bridge-name>
40+
41+
$customLocationSubscriptionId = <subscription-id>
42+
$customLocationResourceGroupName = <resourcegroup-name>
43+
$customLocationName = <custom-location-name>
44+
45+
$vCenterSubscriptionId = <subscription-id>
46+
$vCenterResourceGroupName = <resourcegroup-name>
47+
$vCenterName = <vcenter-name-in-azure>
48+
```
49+
50+
4. [Run the onboarding script](quick-start-connect-vcenter-to-arc-using-script.md#run-the-script) again with the `--force` parameter
51+
52+
``` powershell-interactive
53+
./resource-bridge-onboarding-script.ps1 --force
54+
```
55+
56+
5. [Provide the inputs](quick-start-connect-vcenter-to-arc-using-script.md#inputs-for-the-script) as prompted.
57+
58+
6. Once the onboarding is successfully completed, the resource bridge is upgraded to the latest version.
59+
60+
## Updating the vSphere account credentials
61+
62+
Azure Arc-enabled VMware vSphere uses the vSphere account credentials you provided during the onboarding to communicate with your vCenter server. These credentials are only persisted locally on the Arc resource bridge VM.
63+
64+
As part of your security practices, you might need to rotate credentials for your vCenter accounts. As credentials are rotated, you must also update the credentials provided to Azure Arc to ensure the functioning of Azure Arc-enabled VMware services.
65+
66+
There are two different sets of credentials stored on the Arc resource bridge. But you can use the same account credentials for both.
67+
68+
- **Account for Arc resource bridge**. This account is used for deploying the Arc resource bridge VM and will be used for upgrade.
69+
- **Account for VMware cluster extension**. This account is used to discover inventory and perform all VM operations through Azure Arc-enabled VMware vSphere
70+
71+
To update the credentials of the account for Arc resource bridge, run the following command from a workstation that can access cluster configuration IP address of the Arc resource bridge locally:
72+
73+
```azurecli
74+
az arcappliance setcredential vmware --kubeconfig <kubeconfig>
75+
```
76+
77+
To update the credentials used by the VMware cluster extension on the resource bridge. This command can be run from anywhere with `connectedvmware` CLI extension installed.
78+
79+
```azurecli
80+
az connectedvmware vcenter connect --custom-location <name of the custom location> --location <Azure region> --name <name of the vCenter resource in Azure> --resource-group <resource group for the vCenter resource> --username <username for the vSphere account> --password <password to the vSphere account>
81+
```
82+
83+
## Collecting logs from the Arc resource bridge
84+
85+
For any issues encountered with the Azure Arc resource bridge, you can collect logs for further investigation. To collect the logs, use the Azure CLI [`Az arcappliance log`](https://docs.microsoft.com/cli/azure/arcappliance/logs?#az-arcappliance-logs-vmware) command.
86+
87+
The `az arcappliance log` command must be run from a workstation that can communicate with the Arc resource bridge either via the cluster configuration IP address or the IP address of the Arc resource bridge VM.
88+
89+
To save the logs to a destination folder, run the following command. This command requires connectivity to cluster configuration IP address.
90+
91+
```azurecli
92+
az arcappliance logs <provider> --kubeconfig <path to kubeconfig> --out-dir <path to specified output directory>
93+
```
94+
95+
If the Kubernetes cluster on the resource bridge isn't in functional state, you can use the following command. This command requires connectivity to IP address of the Azure Arc resource bridge VM via SSH
96+
97+
```azurecli
98+
az arcappliance logs <provider> --out-dir <path to specified output directory> --ip XXX.XXX.XXX.XXX
99+
```
100+
101+
During initial onboarding, SSH keys are saved to the workstation. If you're running this command from the workstation that was used for onboarding, no other steps are required.
102+
103+
If you're running this command from a different workstation, you must make sure the following files are copied to the new workstation in the same location.
104+
105+
- For a Windows workstation, `C:\ProgramData\kva\.ssh\logkey` and `C:\ProgramData\kva\.ssh\logkey.pub`
106+
107+
- For a Linux workstation, `$HOME\.KVA\.ssh\logkey` and `$HOME\.KVA\.ssh\logkey.pub`
108+
109+
## Next steps
110+
111+
[Troubleshoot common issues related to resource bridge](../resource-bridge/troubleshoot-resource-bridge.md)

articles/azure-arc/vmware-vsphere/quick-start-connect-vcenter-to-arc-using-script.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ After the command finishes running, your setup is complete. You can now use the
146146
## Save SSH keys and kubeconfig
147147
148148
> [!IMPORTANT]
149-
> Performing some day 2 operations on the Arc resource bridge will require the SSH key to the resource bridge VM and kubeconfig to the Kubernetes cluster on it. It is important to store them to a secure location as it is not possible to retrieve them if the workstation used for the onboarding is deleted.
149+
> Performing [day 2 operations on the Arc resource bridge](day2-operations-resource-bridge.md) will require the SSH key to the resource bridge VM and kubeconfig to the Kubernetes cluster on it. It is important to store them to a secure location as it is not possible to retrieve them if the workstation used for the onboarding is deleted.
150150
151151
You will find the kubeconfig file with the name `kubeconfig` in the folder where the onboarding script is downloaded and run.
152152
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
---
2+
title: Remove your VMware vCenter environment from Azure Arc
3+
description: This article explains the steps to cleanly remove your VMware vCenter environment from Azure Arc-enabled VMware vSphere and delete related Azure Arc resources from Azure.
4+
author: snehithm
5+
ms.author: snmuvva
6+
ms.topic: how-to
7+
ms.date: 3/28/2022
8+
# Customer intent: As an infrastructure admin, I want to cleanly remove my VMware vCenter environment from Azure Arc-enabled VMware vSphere.
9+
---
10+
11+
# Remove your VMware vCenter environment from Azure Arc
12+
13+
In this article, you'll learn how to cleanly remove your VMware vCenter environment from Azure Arc-enabled VMware vSphere. For VMware vSphere environments that you no longer want to manage with Azure Arc-enabled VMware vSphere, follow the steps in the article to:
14+
15+
- Remove guest management from VMware virtual machines
16+
- Remove VMware vSphere resource from Azure Arc
17+
- Remove Arc resource bridge related items in your vCenter
18+
19+
## Remove guest management from VMware virtual machines
20+
21+
To prevent continued billing of Azure management services after you remove the vSphere environment from Azure Arc, you must first cleanly remove guest management from all Arc-enabled VMware vSphere virtual machines where it was enabled.
22+
23+
When you enable guest management on Arc-enabled VMware vSphere virtual machines, the Arc connected machine agent is installed on them. Once guest management is enabled, you can install VM extensions on them and use Azure management services like the Log Analytics on them.
24+
25+
To cleanly remove guest management, you must follow the steps below to remove any VM extensions from the virtual machine, disconnect the agent, and uninstall the software from your virtual machine. It's important to complete each of the three steps to fully remove all related software components from your virtual machines.
26+
27+
### Step 1: Remove VM extensions
28+
29+
If you have deployed Azure VM extensions to an Azure Arc-enabled VMware vSphere VM, you must uninstall the extensions before disconnecting the agent or uninstalling the software. Uninstalling the Azure Connected Machine agent doesn't automatically remove extensions, and they won't be recognized if you late connect the VM to Azure Arc again.
30+
Uninstall extensions using following steps:
31+
32+
1. Go to [Azure Arc center in Azure portal](https://portal.azure.com/#blade/Microsoft_Azure_HybridCompute/AzureArcCenterBlade/overview)
33+
34+
2. Select **VMware vCenters**.
35+
36+
3. Search and select the vCenter you want to remove from Azure Arc.
37+
38+
![Browse your VMware Inventory ](./media/browse-vmware-inventory.png)
39+
40+
4. Select **Virtual machines** under **vCenter inventory**.
41+
42+
5. Search and select the virtual machine where you have Guest Management enabled.
43+
44+
6. Select **Extensions**.
45+
46+
7. Select the extensions and select **Uninstall**
47+
48+
### Step 2: Disconnect the agent from Azure Arc
49+
50+
Disconnecting the agent clears the local state of the agent and removes agent information from our systems. To disconnect the agent, sign-in and run the following command as an administrator/root account on the virtual machine.
51+
52+
```powershell
53+
azcmagent disconnect --force-local-only
54+
```
55+
56+
### Step 3: Uninstall the agent
57+
58+
#### For Windows virtual machines
59+
60+
To uninstall the Windows agent from the machine, do the following:
61+
62+
1. Sign in to the computer with an account that has administrator permissions.
63+
2. In Control Panel, select Programs and Features.
64+
3. In Programs and Features, select Azure Connected Machine Agent, select Uninstall, and then select Yes.
65+
4. Delete the `C:\Program Files\AzureConnectedMachineAgent` folder
66+
67+
#### For Linux virtual machines
68+
69+
To uninstall the Linux agent, the command to use depends on the Linux operating system. You must have `root` access permissions or your account must have elevated rights using sudo.
70+
71+
- For Ubuntu, run the following command:
72+
73+
```bash
74+
sudo apt purge azcmagent
75+
```
76+
77+
- For RHEL, CentOS, Oracle Linux run the following command:
78+
79+
```bash
80+
sudo yum remove azcmagent
81+
```
82+
83+
- For SLES, run the following command:
84+
85+
```bash
86+
sudo zypper remove azcmagent
87+
```
88+
89+
## Remove VMware vSphere resources from Azure
90+
91+
When you enable VMware vSphere resources in Azure, an Azure resource representing them is created. Before you can delete the vCenter resource in Azure, you must delete all the Azure resources that represent your related vSphere resources.
92+
93+
1. Go to [Azure Arc center in Azure portal](https://portal.azure.com/#blade/Microsoft_Azure_HybridCompute/AzureArcCenterBlade/overview)
94+
95+
2. Select **VMware vCenters**.
96+
97+
3. Search and select the vCenter you remove from Azure Arc.
98+
99+
4. Select **Virtual machines** under **vCenter inventory**.
100+
101+
5. Select all the VMs that have **Azure Enabled** value as **Yes**.
102+
103+
6. Select **Remove from Azure**.
104+
105+
This action will only remove these resource representations from Azure. The resources will continue to remain in your vCenter.
106+
107+
7. Perform the steps 4,5 and 6 for **Resources pools/clusters/hosts**, **Templates**, **Networks**, and **Datastores**
108+
109+
8. Once the deletion is complete, select **Overview**.
110+
111+
9. Note the **Custom location** and the **Azure Arc Resource bridge** resource in the **Essentials** section.
112+
113+
10. Select **Remove from Azure** to remove the vCenter resource from Azure.
114+
115+
11. Go to the **Custom location** resource and click **Delete**
116+
117+
12. Go to the **Azure Arc Resource bridge** resource and click **Delete**
118+
119+
At this point, all your Arc-enabled VMware vSphere resources are removed from Azure.
120+
121+
## Remove Arc resource bridge related items in your vCenter
122+
123+
During onboarding, to create a connection between your VMware vCenter and Azure, an Azure Arc resource bridge is deployed into your VMware vSphere environment. As the last step, you must delete the resource bridge VM as well the VM template created during the onboarding.
124+
125+
You can find both the virtual machine and the template on the resource pool/cluster/host that you provided during [Azure Arc-enabled VMware vSphere onboarding](quick-start-connect-vcenter-to-arc-using-script.md).
126+
127+
## Next steps
128+
129+
- [Connect the vCenter to Azure Arc again](quick-start-connect-vcenter-to-arc-using-script.md)

articles/azure-arc/vmware-vsphere/toc.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,25 @@
88
items:
99
- name: Connect vCenter to Azure Arc
1010
href: quick-start-connect-vcenter-to-arc-using-script.md
11+
- name: Create a virtual machine on VMware vCenter
12+
href: quick-start-create-a-vm.md
1113
- name: How-to guides
1214
items:
1315
- name: Enable VMware vCenter resources in Azure
1416
href: browse-and-enable-vcenter-resources-in-azure.md
1517
- name: Manage access to VMware resources through Azure RBAC
1618
href: manage-access-to-arc-vmware-resources.md
17-
- name: Create a virtual machine on VMware vCenter
18-
href: quick-start-create-a-vm.md
1919
- name: Perform operations on VMware VMs in Azure
2020
href: manage-vmware-vms-in-azure.md
21-
21+
- name: Administer Arc-enabled VMware vSphere
22+
href: day2-operations-resource-bridge.md
23+
- name: Remove vCenter from Azure Arc
24+
href: remove-vcenter-from-arc-vmware.md
25+
- name: Reference
26+
items:
27+
- name: Azure CLI
28+
items:
29+
- name: Azure Arc-enabled VMware vSphere
30+
href: /cli/azure/connectedvmware
31+
- name: Azure Arc resource bridge
32+
href: /cli/azure/arcappliance

0 commit comments

Comments
 (0)