We will now setup Dynatrace, Azure, and the workshop environment. You need all of these in place before you are presented with the lab excercises.

What you'll learn in this section

πŸ”· Ensure your have an email for accessing your Dynatrace managed environment

πŸ”· Setup your temporary Azure subscription from the Azure Pass promo code you received from workshop staff.

πŸ”· Automatically provision workshop environment and sample application

For this workshop, we have set-up a free Dynatrace environment with an evaluation license of the complete feature set of our all-in-one performance monitoring platform to monitor Azure resources and complete the workshop exercises.

What you will need

At least 24-48 hours before the workshop, you've received an email similar to the one below in the mailbox you used to register for this workshop.

image

Tasks to complete this step

  1. Login to your DT Environment
    • Click on the link within the email you've received at your corporate account to setup your password for the Dynatrace environment.
    • Once your password is setup, login to your Dynatrace environment.
      • πŸ““Note: Your login ID is your corporate email address

To complete this workshop, you will be provided an Azure Pass Promo code. A workshop staff will provide that code to prior or during the day of the workshop.

That Azure Pass Promo code enables you to have a separate Azure subscription setup under a separate account to provision all the resources needed to complete the workshop.

This free Azure subscription will be available to you for the next 5 days or until when the $100 credit is utilized by the Azure resources (whichever comes first).

Tasks to complete this step

  1. To setup your workshop using free Azure Pass subscription, navigate to Microsoft's Azure Pass website
  2. Click on Start. image
  3. Use a personal email address to signin or create a new Microsoft account email. image image
  4. Confirm the email address you want to use for your Azure pass subscription and "promo" code provided to allow for the Azure subscription to be setup. image

Tasks to complete this step

  1. Navigate to https://portal.azure.com/
  2. Click on the Cloud Shell button image image
    image
  3. Once the storage is created, you should see the Unix bash shell. image
  4. Make a dedicated Azure shell Browser tab by clicking this new tab icon. image
  5. To verify which subscription is configured for the Azure CLI, run this command.
      az account show
    
  1. Within your Azure Cloud Shell window, run this command to download the workshop scripts:
      git clone https://github.com/dt-alliances-workshops/azure-modernization-dt-orders-setup.git
    
  2. To validate all the workshops scripts have download, please run these commands within the Azure Cloud Shell window to display the directories
      cd azure-modernization-dt-orders-setup/
      ls -al
    

This step will automatically provision several Azure resources and Dynatrace configuration needed for the workshop via a shell script.

The process to provision everything will take ~15-20 minutes.

What exactly is this script doing?

1 . Add Azure resources

2 . Set Dynatrace configuration

πŸ’₯ TECHNICAL NOTE

The Dynatrace configuration scripts use a combination of Dynatrace Monitoring as Code framework (a.k.a. monaco) and the Dynatrace Configuration API for those few Dynatrace configurations not yet supported by monaco.

Tasks to complete this step

  1. Login to the Dynatrace UI
  2. From left side in Dynatrace, pick the dashboard menu
  3. On the Dashboard page, open the Workshop Provisioning dashboard. image
  4. While inside the Workshop Provisioning dashboard page, click on edit image
  5. Select the tile that has provisioning command image
  6. Copy ALL the text from the Markdown text on the right. You will paste this in the Azure cloud shell as the next step.
  7. Return back to the window where you have the Azure Cloud shell open
  8. Paste the full command and hit enter. You should see a prompt similar to as one below.
      ===================================================================
      About to Provision Workshop for
      Dynatrace Managed Server: https://name.dynatrace-managed.com/e/aaaaa-bbbb-ccccc-ddddd
      SETUP_TYPE   = all
      ===================================================================
      Proceed? (y/n) : 
    
  9. Enter y at the prompt to begin the provisioning of the workshop. Once the script is complete you should see output as shown below
      =============================================
      Provisioning workshop resources COMPLETE
      End: Thu 25 Nov 2021 12:45:29 PM UTC
      =============================================
    

πŸ’₯NOTE:Only proceed if the provisioning script completed with this status:

...
...
=============================================
Provisioning workshop resources COMPLETE
=============================================

Tasks to complete this step

  1. Go back to the window where you have the Azure Portal screen open
  2. Search for Resource Groups from the search bar at the top image
  3. Click on Resource Groups. From the list of resource group select dynatrace-azure-modernize-workshop.
  4. Once you within the resource group, you will see all of the different types of resources we've automatically provisionined for this workshop image

Verify AKS Cluster is provisioned

  1. Run this command in Azure Cloud shell to get familiar with the command line options for kubectl.
    kubectl --help
    
  2. Configure kubectl to connect to the new cluster by downloading the cluster credentials.
    az aks get-credentials --resource-group dynatrace-azure-modernize-workshop --name dynatrace-workshop-cluster
    
  3. Verify you are connected. You should see dynatrace-workshop-cluster as the output.
    kubectl config current-context
    
  4. List the nodes in the cluster
    kubectl get nodes
    
    The output should look like this:
    NAME                                STATUS   ROLES   AGE   VERSION
    aks-nodepool1-74092643-vmss000000   Ready    agent   21h   v1.19.11
    aks-nodepool1-74092643-vmss000001   Ready    agent   21h   v1.19.11
    
    You can see even more detail with this command.
    kubectl describe nodes
    

Optional Verification of AKS Cluster via Azure Portal

image

image

In this section, you should have completed the following:

βœ… Provisioned a Dynatrace tenant and Azure subscription

βœ… Setup the Azure Cloud Shell to run various UNIX commands

βœ… Captured environment and token info needed for workshop provisioning automation scripts

βœ… Provisioned workshop resources