Skip to content

Commit 452a7ae

Browse files
Merge pull request #259744 from Farha-Bano/Ad-hoc-updates-SCVMM_Nov29
Ad-hoc updates for scripts
2 parents 9afb412 + 053894f commit 452a7ae

File tree

4 files changed

+30
-18
lines changed

4 files changed

+30
-18
lines changed

articles/azure-arc/system-center-virtual-machine-manager/disaster-recovery.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Recover from accidental deletion of resource bridge VM
33
description: Learn how to perform recovery operations for the Azure Arc resource bridge VM in Azure Arc-enabled System Center Virtual Machine Manager disaster scenarios.
44
ms.topic: how-to
55
ms.custom:
6-
ms.date: 11/15/2023
6+
ms.date: 11/29/2023
77
ms.services: azure-arc
88
ms.subservice: azure-arc-scvmm
99
author: PriskeyJeronika-MS
@@ -13,12 +13,16 @@ manager: jsuri
1313

1414
# Recover from accidental deletion of resource bridge virtual machine
1515

16-
In this article, you'll learn how to recover the Azure Arc resource bridge connection into a working state in disaster scenarios such as accidental deletion. In such cases, the connection between on-premises infrastructure and Azure is lost and any operations performed through Arc will fail.
16+
In this article, you learn how to recover the Azure Arc resource bridge connection into a working state in disaster scenarios such as accidental deletion. In such cases, the connection between on-premises infrastructure and Azure is lost and any operations performed through Arc will fail.
1717

1818
## Recover the Arc resource bridge in case of virtual machine deletion
1919

2020
To recover from Arc resource bridge VM deletion, you need to deploy a new resource bridge with the same resource ID as the current resource bridge using the following steps.
2121

22+
>[!Note]
23+
> This note is applicable only if you're performing this recovery operation to upgrade your Arc resource bridge.<br><br>
24+
> If you have VMs that are still in the older version, i.e., have *Enabled (Deprecated)* set under the *Virtual hardware operations* column in the Virtual Machines inventory of your SCVMM server in Azure, switch them to the new version by following the steps in [this article](./switch-to-the-new-version-scvmm.md#switch-to-the-new-version-existing-customer) before proceeding with the steps for resource bridge recovery.
25+
2226
1. Copy the Azure region and resource IDs of the Arc resource bridge, custom location, and SCVMM Azure resources.
2327

2428
2. Find and delete the old Arc resource bridge resource under the [Resource Bridges tab from the Azure Arc center](https://ms.portal.azure.com/#view/Microsoft_Azure_HybridCompute/AzureArcCenterBlade/~/resourceBridges).
@@ -40,19 +44,19 @@ To recover from Arc resource bridge VM deletion, you need to deploy a new resour
4044
$vmmserverName= <SCVMM-name-in-azure>
4145
```
4246
43-
4. [Run the onboarding script](/azure/azure-arc/system-center-virtual-machine-manager/quickstart-connect-system-center-virtual-machine-manager-to-arc#download-the-onboarding-script) again with the `--force` parameter.
47+
4. [Run the onboarding script](/azure/azure-arc/system-center-virtual-machine-manager/quickstart-connect-system-center-virtual-machine-manager-to-arc#download-the-onboarding-script) again with the `-Force` parameter.
4448
4549
``` powershell-interactive
46-
./resource-bridge-onboarding-script.ps1 --force
50+
./resource-bridge-onboarding-script.ps1 -Force
4751
```
4852
4953
5. [Provide the inputs](/azure/azure-arc/system-center-virtual-machine-manager/quickstart-connect-system-center-virtual-machine-manager-to-arc#script-runtime) as prompted.
5054
5155
6. In the same machine, run the following scripts, as applicable:
52-
- [Download the script](https://download.microsoft.com/download/6/b/4/6b4a5009-fed8-46c2-b22b-b24a4d0a06e3/arcvmm-appliance-dr.ps1) if you are running the script from a Windows machine
53-
- [Download the script](https://download.microsoft.com/download/0/5/c/05c2bcb8-87f8-4ead-9757-a87a0759071c/arcvmm-appliance-dr.sh) if you are running the script from a Linux machine
56+
- [Download the script](https://download.microsoft.com/download/6/b/4/6b4a5009-fed8-46c2-b22b-b24a4d0a06e3/arcvmm-appliance-dr.ps1) if you're running the script from a Windows machine
57+
- [Download the script](https://download.microsoft.com/download/0/5/c/05c2bcb8-87f8-4ead-9757-a87a0759071c/arcvmm-appliance-dr.sh) if you're running the script from a Linux machine
5458
55-
7. Once the script is run successfully, the old Resource Bridge will be recovered and the connection is re-established to the existing Azure-enabled SCVMM resources.
59+
7. Once the script is run successfully, the old Resource Bridge is recovered and the connection is re-established to the existing Azure-enabled SCVMM resources.
5660
5761
## Next steps
5862

articles/azure-arc/system-center-virtual-machine-manager/install-arc-agents-using-script.md

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Install Arc agent using a script for SCVMM VMs
33
description: Learn how to enable guest management using a script for Arc enabled SCVMM VMs.
44
ms.topic: how-to
5-
ms.date: 11/15/2023
5+
ms.date: 11/29/2023
66
ms.service: azure-arc
77
author: PriskeyJeronika-MS
88
ms.author: v-gjeronika
@@ -15,7 +15,7 @@ ms.subservice: azure-arc-scvmm
1515

1616
# Install Arc agents using a script
1717

18-
In this article, you'll learn how to install Arc agents on Azure-enabled SCVMM VMs using a script.
18+
In this article, you learn how to install Arc agents on Azure-enabled SCVMM VMs using a script.
1919

2020
## Prerequisites
2121

@@ -29,22 +29,30 @@ Ensure the following before you install Arc agents using a script for SCVMM VMs:
2929
- Is running a [supported operating system](/azure/azure-arc/servers/prerequisites#supported-operating-systems).
3030
- Is able to connect through the firewall to communicate over the Internet and [these URLs](/azure/azure-arc/servers/network-requirements?tabs=azure-cloud#urls) aren't blocked.
3131
- Has Azure CLI [installed](https://learn.microsoft.com/cli/azure/install-azure-cli).
32-
- Has the Arc agent installation script downloaded from [here](https://download.microsoft.com/download/7/1/6/7164490e-6d8c-450c-8511-f8191f6ec110/arcscvmm-enable-guest-management.ps1).
32+
- Has the Arc agent installation script downloaded from [here](https://download.microsoft.com/download/7/1/6/7164490e-6d8c-450c-8511-f8191f6ec110/arcscvmm-enable-guest-management.ps1) for a Windows VM or from [here](https://download.microsoft.com/download/0/9/b/09bd9ef4-a7af-49e5-ad5f-9e8f85fae75b/arcscvmm-enable-guest-management.sh) for a Linux VM.
3333

3434
>[!NOTE]
3535
>- 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>`.
3636
>- If your VM template has these changes incorporated, you won't need to do this for the VM created from that template.
3737
3838
## Steps to install Arc agents using a script
3939

40-
1. Log in to the target VM as an administrator.
40+
1. Sign in to the target VM as an administrator.
4141
2. Run the Azure CLI with the `az` command from either Windows Command Prompt or PowerShell.
42-
3. Log in to your Azure account in Azure CLI using `az login --use-device-code`
43-
4. Run the downloaded script *arcscvmm-enable-guest-management.ps1*. The `vmmServerId` parameter should denote your VMM Server’s ARM ID.
42+
3. Sign in to your Azure account in Azure CLI using `az login --use-device-code`
43+
4. Run the downloaded script *arcscvmm-enable-guest-management.ps1* or *arcscvmm-enable-guest-management.sh*, as applicable, using the following commands. The `vmmServerId` parameter should denote your VMM Server’s ARM ID.
4444

45-
```azurecli
46-
./arcscvmm-enable-guest-management.ps1 -<vmmServerId> '/subscriptions/<subscriptionId>/resourceGroups/<rgName>/providers/Microsoft.ScVmm/vmmServers/<vmmServerName>
47-
```
45+
**For a Windows VM:**
46+
47+
```azurecli
48+
./arcscvmm-enable-guest-management.ps1 -<vmmServerId> '/subscriptions/<subscriptionId>/resourceGroups/<rgName>/providers/Microsoft.ScVmm/vmmServers/<vmmServerName>
49+
```
50+
51+
**For a Linux VM:**
52+
53+
```azurecli
54+
./arcscvmm-enable-guest-management.sh -<vmmServerId> '/subscriptions/<subscriptionId>/resourceGroups/<rgName>/providers/Microsoft.ScVmm/vmmServers/<vmmServerName>
55+
```
4856
4957
## Next steps
5058
Loading

articles/azure-arc/system-center-virtual-machine-manager/switch-to-the-new-version-scvmm.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: PriskeyJeronika-MS
77
ms.author: v-gjeronika
88
manager: jsuri
99
ms.topic: how-to
10-
ms.date: 11/15/2023
10+
ms.date: 11/29/2023
1111
keywords: "VMM, Arc, Azure"
1212

1313
#Customer intent: As a VI admin, I want to switch to the new version of Arc-enabled SCVMM and leverage the associated capabilities
@@ -28,7 +28,7 @@ If you've onboarded to Arc-enabled SCVMM before September 22, 2023, for VMs that
2828
> If you had enabled guest management on any of the VMs, [disconnect](/azure/azure-arc/servers/manage-agent?tabs=windows#step-2-disconnect-the-server-from-azure-arc) and [uninstall agents](/azure/azure-arc/servers/manage-agent?tabs=windows#step-3a-uninstall-the-windows-agent).
2929
3030
1. From your browser, go to the SCVMM management servers blade on [Azure Arc Center](https://ms.portal.azure.com/#view/Microsoft_Azure_HybridCompute/AzureArcCenterBlade/~/overview) and select the SCVMM management server resource.
31-
2. Select all the virtual machines that are Azure enabled with the older version.
31+
2. Select all the virtual machines that are Azure enabled with the older version. The virtual machines in the older version will have *Enabled (Deprecated)* set under the Virtual hardware management column.
3232
3. Select **Remove from Azure**.
3333
:::image type="Virtual Machines" source="media/switch-to-the-new-version-scvmm/virtual-machines.png" alt-text="Screenshot of virtual machines.":::
3434
4. After successful removal from Azure, enable the same resources again in Azure.

0 commit comments

Comments
 (0)