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:
- Create the Azure Arc resource.
- Generate the script to run in the on-prem VM.
Success Criteria
- Successfully generate the script.
Solution
Expand this section to view the solution
-
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.
-
In the Search resources, services, and docs box at the top of the portal, search for Azure Arc, then select the Azure Arc service.
-
Under Azure Arc resources, select the Machines.
-
On the **Azure Arc Machines** pane, select the + Add/Create option and then the Add a machine option. -
On the Add servers with Azure Arc pane, under Add a single server select Generate script.
-
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
- Resource group: Select the Resource Group created for this lab. For example:
-
On the Tags tab, enter the following tag values to identify this server, then select Next:
- Datacenter:
headquarters
- City:
Richmond
- StateOrDistrict:
Virginia
- CountryOrRegion:
USA
- Datacenter:
- 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 theDownloads
folder.