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

Task 01 - Generate Azure Arc script to add server

Introduction

Terra Firm Laboratories wants to migrate several on-premises workloads to Microsof Azure. For some workloads there are no plans to migrate it to Azure. In this task, you will start the process of adding a server to Azure Arc by creating the Azure resource and generating a script to run in the on-prem VM.

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

  • Successfully generate the script.

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 Azure Arc resources, select the Machines.

  4. On the **Azure Arc Machines** pane, select the + Add/Create option and then the Add a machine option.
  5. On the Add servers with Azure Arc pane, under Add a single server select Generate script.

  6. On the Add a server with Azure Arc pane, enter the following values, then select Next.

    • Resource group: Select the Resource Group created for this lab. For example: terrafirm.
    • Region: Select East US.
    • Operating system: Linux
    • Connectivity method: Public endpoint
  7. On the Tags tab, enter the following tag values to identify this server, then select Next:

    • Datacenter: headquarters
    • City: Richmond
    • StateOrDistrict: Virginia
    • CountryOrRegion: USA
  8. On the Download and run script tab, select Download to download the generated script. By default, the script named OnboardingScript.sh will be saved to the Downloads folder.