Skip to content

Latest commit

 

History

History
156 lines (54 loc) · 4.32 KB

lab01.md

File metadata and controls

156 lines (54 loc) · 4.32 KB

Lab01 – Azure Arc for servers Onboarding existing Linux Server.

Create a VM and onboarding it on Azure Arc

Overview

Azure Arc-enabled servers lets you manage Windows and Linux physical servers and virtual machines hosted outside of Azure, on your corporate network, or other cloud provider. This management experience is designed to be consistent with how you manage native Azure virtual machines, using standard Azure constructs such as Azure Policy and applying tags.

https://docs.microsoft.com/en-us/azure/azure-arc/servers/overview

Prerequisites

- Physical servers and virtual machines hosted outside of Azure. Azure Arc-enabled servers do not support installing the agent on virtual machines running in Azure, or on virtual machines running on Azure Stack Hub or Azure Stack Edge, as they are already modeled as Azure VMs and able to be managed directly in Azure.

- In this case, the lab will use an on-premises Virtual Machine Linux Ubuntu 20 VM. Arc supports the following operating systems https://docs.microsoft.com/en-us/azure/azure-arc/servers/prerequisites#supported-operating-systems

- Local admin privileges on Virtual Machine

Labs goals

TODO. Add

Instructions

Get subscription, copy an create a env variable

az account show mySubscriptionId=********

Create a group of Azure resources; we will use the SSH access function (PREVIEW). For that reason, we are going to create it in the eastus region

myRG=demoArcEdge

myRegion=eastus

az group create --name $myRG --location $myRegion

Go to the Azure portal and Create a new resource, in IT& Management Tools, Select Create Server - Arc

Graphical user interface, application  Description automatically generated

In Add Servers with Arc, select Add single server option and click on Generate script button

Graphical user interface, text, application, Word  Description automatically generated

Select subscription, Recourse Group and Linux in Operating system

Graphical user interface, text, application, email  Description automatically generated

Select Next

Graphical user interface, text, application, email  Description automatically generated

Define your locations tags and next

Graphical user interface  Description automatically generated

Don’t close the window and copy the script.

Graphical user interface, text, application, email  Description automatically generated

In your VM paste the script

Graphical user interface, text  Description automatically generated

Last script requires authenticate in the portal, please open the URL and put the verification code

A screenshot of a computer  Description automatically generated with medium confidence

A picture containing text, businesscard, screenshot  Description automatically generated

When you done, return to Azure and validate in your RG the Server – Azure Arc

Graphical user interface, text, application, email  Description automatically generated

Now you can manage this server with Azure

Graphical user interface, application  Description automatically generated

Go to Insights and click on Enable button.

Graphical user interface, text, application  Description automatically generated

Select Azure Monitor agent and click on Configure

Graphical user interface, text, application, email  Description automatically generated

To play and learn

Lab01 – Azure Arc for servers - Onboarding existing Linux Server.

Lab02 – Enable SSH access.

Lab03 – Installing Azure IoT Edge via Azure Arc for Servers.

Lab04 – Azure Edge Deployments Layered

Lab05 – Implementing microk8s.

Lab06 – Azure Arc for Kubernetes

Lab07 – Dapr

Lab08 - DevOps

Lab09 - Working with GitOps on Arc