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.
π· Setup your temporary Azure subscription from the Azure Pass promo code you received from workshop staff.
π· Automatically provision workshop environment and sample application
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).
For this workshop, we will set-up a free Dynatrace Azure SaaS tenant with an temporary license complete with all the features of our all-in-one performance monitoring platform to monitor Azure resources and complete the workshop exercises.
Azure Native Dynatrace Service
click on tile when the search displays the results. Dynatrace for Azure Trial
and click on subscribe Azure Pass - Sponsorship
subscriptionazure-native-dynatrace
dt-trial
Go to resource
button az account show
{
"environmentName": "AzureCloud",
"homeTenantId": "xxx-xxx-xxx-xx-xxx",
"id": "yyy-yyyy-yyy-yyy-yyy",
"isDefault": true,
"managedByTenants": [],
"name": "Azure Pass - Sponsorship", <----- This is the active subscription
"state": "Enabled",
"tenantId": "zzz-zzz-zzz-zzz-zzz",
"user": {
"name": "name@company.com",
"type": "user"
}
}
az account list --output table
Name CloudName SubscriptionId State IsDefault
--------------------------------------- ----------- ------------------------------------ ------- -----------
Subscription 1 AzureCloud aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa Enabled False
Subscription 2 AzureCloud bbbbbbbb-aaaa-aaaa-aaaa-aaaaaaaaaaaa Enabled False
Subscription 3 AzureCloud cccccccc-aaaa-aaaa-aaaa-aaaaaaaaaaaa Enabled False
Subscription 4 AzureCloud dddddddd-aaaa-aaaa-aaaa-aaaaaaaaaaaa Enabled False
Azure Pass - Sponsorship AzureCloud eeeeeeee-aaaa-aaaa-aaaa-aaaaaaaaaaaa Enabled True
Azure Pass - Sponsorship
is not the IsDefault = True
, then run these command to set and verify. # set the subscription
az account set --subscription <YOUR PROMO SUBSCRIPTION ID>
# verify change
az account list --output table
# double check with
az account show
git clone https://github.com/dt-alliances-workshops/azure-modernization-dt-orders-setup.git
cd azure-modernization-dt-orders-setup/
ls -al
In this section, we'll Access the new UI for Grail
Also, we'll setup a access token within your Dynatrace envrionment that will be used by the provisioning script to configure Dynatrace automatically via the API.
dt-trial
from the top search barTake a look
button to access the new UI. Tru the latest Dynatrace
Get started
All we wanted to do here, is quickly get a Dynatrace token and save it for use in the Lab setup. To capture the token, follow these steps:
Access Tokens
app.Generate new token
buttonazure-workshop
Write API Tokens
to the scope.The next steps of this guide will have you gather various information from your Dynatrace environment needed to configure your environment and for the lab exercises.
From your Dynatrace environment, you will capture:
In the code repo you cloned, there is a simple UNIX shell script that prompts for values and writes them to a file called gen/workshop-credentials.json
. Later in the labs, there are a few other simple UNIX shell scripts that will automate the step that reads this file so that you don't need to type or copy-paste these values over and over again during the workshop.
cd ~/azure-modernization-dt-orders-setup/provision-scripts
./input-credentials.sh
==================================================================
Please enter your Dynatrace credentials as requested below:
Press <enter> to keep the current value
===================================================================
Dynatrace Base URL (current: ) :
Dynatrace Access API Token (current: ) :
Azure Subscription ID (current: ) :
===================================================================
../gen/workshop-credentials.json
and will be used by the provision script in the next step. ========================================================================================================
***** Please save the values below in a notepad for Lab2 when we install the Dynatrace Operator on AKS Cluster *****
--------------------------------------------------------------------------------------
Dynatrace Operator & Data Ingest Token : dt0c01.ABC123.ABC124
API URL for Dynatrace Tenant : https://dtenvid.live.dynatrace.com/api
=========================================================================================================
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.
1 . Add Azure resources
dynatrace-azure-grail-modernize
dt-orders-monolith
. At startup, it installs Docker and the Dynatrace Orders application in the Monolith configuration. OneAgent is installed using Azure extensiondynatrace-azure-grail-cluster
.2 . Set Dynatrace configuration
./provision-workshop.sh grail
===================================================================
About to setup Dynatrace Grail Workshop
Dynatrace Server: https://name.live.dynatrace.com
SETUP_TYPE = grail
===================================================================
Proceed? (y/n) :
=============================================
Provisioning workshop resources COMPLETE
End: Thu 25 Nov 2021 12:45:29 PM UTC
=============================================
Resource Groups
from the search bar at the top Resource Groups
. From the list of resource group select dynatrace-azure-grail-modernize
.kubectl
commands.kubectl --help
az aks get-credentials --resource-group dynatrace-azure-grail-modernize --name dynatrace-azure-grail-cluster
dynatrace-azure-grail-cluster
as the output.kubectl config current-context
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
In this section, you should have completed the following:
β Setup your Azure subscription utlizing the Azure Pass Token
β Provisioned a trail Dynatrace Grail tenant through the Azure Marketplace
β Setup the Azure Cloud Shell to run various UNIX commands
β Captured environment and token info needed for workshop provisioning automation scripts
β Provisioned workshop Azure resources