Book Image

Implementing Hybrid Cloud with Azure Arc

By : Amit Malik, Daman Kaur
Book Image

Implementing Hybrid Cloud with Azure Arc

By: Amit Malik, Daman Kaur

Overview of this book

With all the options available for deploying infrastructure on multi-cloud platforms and on-premises comes the complexity of managing it, which is adeptly handled by Azure Arc. This book will show you how you can manage environments across platforms without having to migrate workloads from on-premises or multi-cloud to Azure every time. Implementing Hybrid Cloud with Azure Arc starts with an introduction to Azure Arc and hybrid cloud computing, covering use cases and various supported topologies. You'll learn to set up Windows and Linux servers as Arc-enabled machines and get to grips with deploying applications on Kubernetes clusters with Azure Arc and GitOps. The book then demonstrates how to onboard an on-premises SQL Server infrastructure as an Arc-enabled SQL Server and deploy and manage a hyperscale PostgreSQL infrastructure on-premises through Azure Arc. Along with deployment, the book also covers security, backup, migration, and data distribution aspects. Finally, it shows you how to deploy and manage Azure's data services on your own private cloud and explore multi-cloud solutions with Azure Arc. By the end of this book, you'll have a firm understanding of Azure Arc and how it interacts with various cutting-edge technologies such as Kubernetes and PaaS data services.
Table of Contents (12 chapters)
1
Section 1: Azure Arc Enabled Infrastructure
6
Section 2: Azure Arc Enabled Data Services
9
Section 3: Azure Arc Enabled Multi-Cloud Governance

Building the lab prerequisite for Azure Arc

We have designed this book to be a hands-on focused book, so you will see a lot of implementation steps and example deployments. In order to prepare for that, we will need you to prepare your Azure accounts in advance.

In this section, we will create the required Azure infrastructure to simulate the on-premises environments. If you have an on-premises infrastructure, you may use that as well, rather than hosting everything in Azure.

Getting started with Azure

To start your Azure journey, you can go to https://azure.microsoft.com/free/. This takes you to the landing page of the free account offer, which looks like this:

Figure 1.5 – Signing up for a free trial

Figure 1.5 – Signing up for a free trial

You can explore the page to learn more about the offer. You can use the services that follow on the sign-up page for free for 12 months, within the free service limits for the service. For instance, you get 750 hours of a Windows VM for free. You can spend these hours over 12 months. In addition to that, you get $200 of Azure credit for the first 30 days.

To create your free account, you need to do the following:

  1. Go to https://azure.microsoft.com/free/ and click on the Start free button.
  2. Log in with a Microsoft account or a GitHub account. If you don't have one yet, you can create one.
  3. First, you need to verify your identity by phone. You can do that by entering your phone number and giving the verification code that you receive.
  4. Next, you will have to give the details of a credit card. Don't worry, you won't be charged. By default, the Azure subscription that you create has a spending limit on it, so you can't use more than the free $200 that you receive until you remove this limit manually.
  5. Fill in the personal details and click Next.
  6. Finally, agree to the agreement and click Sign up. Your free Azure account will be ready in a few moments. Go to portal.azure.com and start using it.

Creating a resource group in Azure

A resource group is a container that holds related resources for an Azure solution. A resource group includes those resources that you want to manage as a group. We'll be creating three resource groups, each for its own individual lab and purpose, which will be used in their respective chapters:

  • The On-prem-Server resource group will be created to host the Windows VMs considered to be on-premises servers.
  • The On-prem-Kubernetes resource group will be created to host the Kubernetes cluster that will be managed by the Azure Arc management pane in Chapter 3, Azure Arc Enabled Kubernetes.
  • The On-prem-Data resource group will be created in the same fashion to host the data services managed by Azure Arc.

Let's create the resource groups in Azure by following these steps:

  1. Log in to the Azure portal using https://portal.azure.com with your Azure credentials.
  2. Click on + Create a resource and search for resource group as you can see here:
    Figure 1.6 – Searching resource group in Azure

    Figure 1.6 – Searching resource group in Azure

  3. Click Create on the resource group page.
  4. Select your subscription, as seen in Figure 1.7, and enter the resource group name as On-prem-Server.
  5. Next, choose the region closest to your location:
    Figure 1.7 – Creating a resource group in Azure

    Figure 1.7 – Creating a resource group in Azure

  6. Click on Review + create and then Create to start the deployment.
  7. Repeat the steps to create two additional resource groups for Kubernetes and a data lab environment, named On-prem-Kubernetes and On-prem-Data respectively.

You've now created resource groups to host Azure resources.