Skip to content

Latest commit

 

History

History
132 lines (81 loc) · 6.29 KB

File metadata and controls

132 lines (81 loc) · 6.29 KB

HOL-3: Exercise 1: Getting Started with Azure Arc enabled data services

Duration: 20 minutes

Contoso’s R&D teams are well-invested in containerized workloads for the modernized applications. Contoso is using Kubernetes as their container orchestration platform. Kubernetes is deployed both as self-managed Kubernetes clusters in their on-premises environments and managed Kubernetes deployments in the cloud. Contoso has already deployed Data Controller in their Azure Arc data services environment.

Contoso wants you to verify their Azure Arc data services environment and connect to the Data Controller. Azure Data Controller is the local control plane that enables Azure Data Services in customer managed environments. To know more about Azure Arc data controller, you can check : Azure Arc enabled data services

Let us get familiar with the existing Kubernetes cluster and the following

  • How to connect to the data controller
  • Verifying the status of the Azure Arc data controller.

Task 1: Getting started with the existing Kubernetes cluster

  1. On the JumpVM provided, launch the Command Prompt by double-clicking on the cmd shortcut on the desktop.

  2. Now the command prompt window will open up. In the command prompt, run the following command to retrieve the Kubernetes cluster-info.

    kubectl cluster-info

  3. Run the following command to list the current namespaces in the cluster. A namespace in Kubernetes creates a logical isolation boundary.

    kubectl get namespace
  4. A node is a worker machine in Kubernetes and may be either a virtual or a physical machine, depending on the cluster.

    Info: Each node is managed by the Master. A node can have multiple pods, and the Kubernetes master automatically handles scheduling the pods across the nodes in the cluster.

    Run the following command to see the status of the Kubernetes node.

    kubectl get nodes

  5. Now, run the following command to get the list of all pods in all namespaces.

    kubectl get pods -A

  6. Run the following command to get the detailed information of a specific pod.

    Note: In the below command, please replace the pod name and namespace name with any pod name and the corresponding namespace from the previous command's output.

    kubectl describe pod <pod name> -n <your namespace name>

    kubectl describe pod controldb-0 -n arcdc
    

Note: You can explore and learn more about Kubernetes from the following links - Azure Kubernetes Services Workshop.

Task 2: Connect to the data controller using Azure Data Studio.

Now let us connect to the data controller using Azure Data Studio.

In the environment provided, the Azure Arc Data controller is already deployed on to the Kubernetes Cluster. We are using direct connectivity mode for the Azure Arc enabled data services environment to Azure.

Info: There are multiple modes available to connect to Azure. if the Azure Arc enabled data services are directly connected to Azure, then users can use Azure Resource Manager APIs, the Azure CLI, and the Azure portal to operate the Azure Arc data services. The experience in directly connected mode is much like how you would use any other Azure service with provisioning/de-provisioning, scaling, configuring, and so on all in the Azure portal.

If you want to know more about this, refer to the Connectivity Modes

  1. On your JumpVM, open Azure Data studio from the desktop shortcut and select Connections.

  2. In the Connections panel under Azure Arc Controllers, click on Connect Controller.

  3. In the Connect to Controller page, provide the following details.

    • Namespace:

      arcdc
    • Name : Enter arcdc

      arcdc

  4. Now, click on Connect.

  5. Once the connection is successful, you can see the Azure Arc data controller listed under Azure Arc Controllers on the bottom left of the Azure Data Studio.

Task 3: Monitor with Data Controller Dashboard

Now that you are connected to an Azure Arc data controller, let us view the dashboards for the data controller and any SQL managed instances or PostgreSQL Hyperscale server group resources that you have.

  1. In the Connections panel, under AZURE ARC CONTROLLERS, right-click on the arcdc data controller and select Manage.

    Note: You will see that there is no Azure Arc Resources. This is because you have not deployed any resource on the Azure Arc data services environment yet. In the next exercises, you will be deploying the resources.

  2. Once you are in the Azure Arc Data Controller dashboard, you can see following details about the data controller

    • Name of the Arc Data Controller
    • Region where it is deployed
    • Connection mode
    • Resource Group
    • Subscription ID of the Azure Subscription
    • Controller Endpoint
    • Namespace

    You will also see that we have deployed using the Indirect connection mode of the Azure Arc Data controller.

    Note: If you click on the Open in Azure portal button from the menu on the top, you will not be able to find the resources because we have not yet uploaded any logs to the Azure portal and without uploading any logs to azure, you will not be able to view the Azure Arc data controller resource in Azure portal.

In this exercise, you have covered the following:

  • Getting started with the existing Kubernetes cluster.
  • Deploying Azure Arc Data controller on to Azure Kubernetes Cluster(AKS).
  • Connect to the data controller using Azure Data Studio.
  • Monitor with Data Controller Dashboard.