Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Task 01 - Enable Azure Arc on Windows VM

Introduction

Tailspin Toys has certain Windows servers that must continue running on‑premises to support workloads that cannot be fully migrated to the cloud. They want to connect their on-premises Windows Server and SQL Server workloads to Azure Arc to enable Extended Security Updates (ESU) capabilities.

Description

In this task, you will create the Azure Arc resource and the script to run.

The key tasks are as follows:

  1. Create the Azure Arc resource.
  2. Generate the script to run in the on-prem VM.

Success Criteria

  • Azure Arc resource created.
  • Onboarding script generated with correct parameters.
  • ESU-related options (e.g., Connect SQL Server) selected.

Solution

Expand this section to view the solution
  1. Sign in to the Azure Portal. Ensure that you’re using a subscription associated with the same resources you created during the lab set up.

  2. In the Search resources, services, and docs box at the top of the portal, search for Azure Arc, then select the Azure Arc service.

  3. Under Infrastructure, select Machines in the left-hand menu.

    The Azure Arc Machines pane is shown with the + Add/Create option highlighted.

  4. On the Azure Arc Machines pane, select the + Onboard/Create option and then the Onboard existing machines option.

    The Azure Arc Machines pane is shown with the Onboard existing machines option highlighted from the + Onboard/Create menu.

  5. On the Onboard existing machines with Azure Arc pane, enter the following values, then select Next.

    • Resource group: Select the Resource Group created for this lab. For example: rg-tailspin.
    • Region: Select the region to which the tailspinxx-onprem-win-vm is deployed. For example: East US.
    • Operating system: Windows
    • Connectivity method: Public endpoint

    The Onboard existing machines with Azure Arc Basics pane is shown with the Resource group, Region, Operating system, and Connectivity method fields filled in and highlighted.

  6. On the Tags tab, enter the following tag values to identify this server, then select Download and run script:

    • Datacenter: headquarters
    • City: Milwaukee
    • StateOrDistrict: Wisconsin
    • CountryOrRegion: USA

    The Onboard existing machines with Azure Arc Tags pane is shown with the Datacenter, City, StateOrDistrict, and CountryOrRegion tag fields filled in and highlighted.

  7. On the Download and run script tab, select Download to download the generated script. By default, the script named OnboardingScript.ps1 will be saved to the Downloads folder.

    IMPORTANT: Do not run the script locally. In the next task, you will update the script and copy it to the tailspin<uniqueid>-onprem-win-vm VM for execution.