Unleash the Power of Hybrid Cloud with Azure Arc

Introduction

Ready to unlock the full potential of your on-premises environment?

This guide will walk you through the process of seamlessly integrating your Windows server into the Azure ecosystem using Azure Arc. By extending Azure managem…


This content originally appeared on DEV Community and was authored by Jimi

Introduction

Ready to unlock the full potential of your on-premises environment?

This guide will walk you through the process of seamlessly integrating your Windows server into the Azure ecosystem using Azure Arc. By extending Azure management and services to your on-premises infrastructure, you can gain the benefits of a unified management plane and hybrid cloud capabilities without the limitations of cloud-native environments.

While Azure VMs typically come pre-installed with the Azure Arc agent, this tutorial focuses on an AWS Windows VM to avoid the complexities of agent removal and reinstallation.

We'll cover the following steps:

  • Creating a Windows VM on AWS
  • Installing the Azure Arc agent on the Windows server
  • Managing your Azure Arc-enabled server within the Azure portal

Let's begin!

Pre-requisites

  • An active Azure subscription
  • An active AWS account

Note: If you already possess a pre-configured Windows VM, you can skip to Part 2: Installing Azure Arc on a Windows VM.

Part 1: Creating a Windows VM on AWS

  1. Log in to your AWS account and navigate to the VPC service:

    • In the search bar, type "VPC" and select it. Finding VPC
  2. Create a VPC:

    • Click on "Create VPC." Clicking on Create VPC
    • Select "VPC and more" and choose a descriptive name for your VPC.
    • Since we'll be connecting to the VM remotely, ensure you have at least one Availability Zone selected. Configuring the VPC part 1
    • Leave the number of private subnets at 0 for this basic setup.
    • For simplicity, set NAT gateways and VPC endpoints to "None" for now.
    • Click "Create VPC" to complete the process. Configuring VPC part 2
  3. Launch an EC2 Instance:

    • Go to the EC2 service by searching for it in the search bar. Seaching for EC2
    • Click on "Launch Instance." Creating an EC2 Instance
  4. Configure Instance Details:

    • Provide a recognizable name for your EC2 instance.
    • Select a Windows Server Application Image that suits your needs. Configuring EC2 part 1
    • Choose an appropriate instance type, keeping in mind higher tiers incur higher charges.
  5. Create a Key Pair:

    • Click on "Create new key pair" and generate a Key Pair. Configuring EC2 instance part 2
    • Give your Key Pair a descriptive name and download it securely. Store it somewhere you can easily access it later. Configuring EC2 instance part 3
  6. Configure Network Settings:

    • Leave "Create Security Group" selected.
    • For demonstration purposes, we will allow RDP traffic from "Anywhere" temporarily. You can restrict this later to specific IP addresses for increased security. Configuring EC2 instance part 4
  7. Launch the Instance:

    • Review all configurations and click "Launch Instances" to begin the creation process.
  8. Connect to the Windows VM:

    • Once launched, locate the EC2 instance you created and check the "Launch" state.
    • Click on "Connect" to initiate the remote desktop connection. EC2 Instance Instantiated
  9. Establish Remote Desktop Connection:

    • Choose the RDP client you prefer. Choosing RDP client
    • Click "Get Password" and select the option to "Upload private key file." Locate the downloaded Key Pair file and click "Decrypt Password." Locating the Private Key
    • Copy the decrypted password and download the provided remote desktop file. Downloading the RDP file
    • Open the downloaded RDP file and paste the copied password when prompted. Connect to the VM. Logging into the VM

Part 2: Installing Azure Arc on a Windows VM

  1. Allow the VM to boot up and connect to Microsoft Edge.

  2. Sign in to Azure Portal:

    • Open Microsoft Edge and navigate to portal.azure.com. Locating Microsoft Edge
    • Log in to your Azure account. Logging into Azure
  3. Install Azure Arc Agent:

    • Search for "Azure Arc" in the search bar and select it. Locating Azure Arc
    • Locate the "Manage resources across environments" section and click on "Add resources" Finding the add resources section
    • Navigate to the "Machines" category and click "Add/Create" followed by "Add a Machine." Adding a machine
    • In the "Add a Single Server" section, click "Generate Script." Configuring a script for the Arc machine
    • Choose a suitable region for your environment.
    • Under "Resource Group," click "Create New" and give your resource group a descriptive name. Leave other settings as default and click "Download and Run Script." Configuring the script
    • Save the downloaded script (usually in your Downloads folder). Downloading the script
  4. Run the Onboarding Script:

    • Open the Start Menu and search for "PowerShell." Right-click on PowerShell and select "Run as administrator." Finding Powershell
    • Use the following commands to navigate to your Downloads folder and run the script:
     cd downloads
     ./OnboardingScript.ps1
    
    • Confirm any security warnings by typing "Y" and letting the script run. Loading the OnboardingScript
    • Choose your Azure account and allow the script to complete the installation. Signing into the Azure account
  5. Verify Azure Arc Connection:

    • Go back to the Azure portal and search for "Azure Arc."
    • Under "Azure Arc resources" on the left side, click on "Machines." Locating Arc Machines
    • You should now see your Windows VM listed. This confirms successful connection to your Azure environment. Confirming the Machine is an Arc machine

Conclusion:
Congratulations, you have now installed an Azure Arc agent onto your Windows server.

Next Steps:
The next guide will explore managing Azure Arc-enabled Windows servers using Azure Policy for centralized configuration and control.


This content originally appeared on DEV Community and was authored by Jimi


Print Share Comment Cite Upload Translate Updates
APA

Jimi | Sciencx (2024-08-15T22:11:37+00:00) Unleash the Power of Hybrid Cloud with Azure Arc. Retrieved from https://www.scien.cx/2024/08/15/unleash-the-power-of-hybrid-cloud-with-azure-arc/

MLA
" » Unleash the Power of Hybrid Cloud with Azure Arc." Jimi | Sciencx - Thursday August 15, 2024, https://www.scien.cx/2024/08/15/unleash-the-power-of-hybrid-cloud-with-azure-arc/
HARVARD
Jimi | Sciencx Thursday August 15, 2024 » Unleash the Power of Hybrid Cloud with Azure Arc., viewed ,<https://www.scien.cx/2024/08/15/unleash-the-power-of-hybrid-cloud-with-azure-arc/>
VANCOUVER
Jimi | Sciencx - » Unleash the Power of Hybrid Cloud with Azure Arc. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/08/15/unleash-the-power-of-hybrid-cloud-with-azure-arc/
CHICAGO
" » Unleash the Power of Hybrid Cloud with Azure Arc." Jimi | Sciencx - Accessed . https://www.scien.cx/2024/08/15/unleash-the-power-of-hybrid-cloud-with-azure-arc/
IEEE
" » Unleash the Power of Hybrid Cloud with Azure Arc." Jimi | Sciencx [Online]. Available: https://www.scien.cx/2024/08/15/unleash-the-power-of-hybrid-cloud-with-azure-arc/. [Accessed: ]
rf:citation
» Unleash the Power of Hybrid Cloud with Azure Arc | Jimi | Sciencx | https://www.scien.cx/2024/08/15/unleash-the-power-of-hybrid-cloud-with-azure-arc/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.