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.
π· 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.
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.
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).
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
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-modernize-workshop
dynatrace-azure-modernize-workshop-sp
needed for the Azure monitor integration.dt-orders-monolith
. At startup, it installs Docker and the Dynatrace Orders application in the Monolith configuration. OneAgent is installed using Azure extensiondt-orders-active-gate
. At startup, it installs the Dynatrace ActiveGate process needed for the Azure monitor integration.dynatrace-workshop-cluster
.2 . Set Dynatrace configuration
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.
===================================================================
About to Provision Workshop for
Dynatrace Managed Server: https://name.dynatrace-managed.com/e/aaaaa-bbbb-ccccc-ddddd
SETUP_TYPE = all
===================================================================
Proceed? (y/n) :
=============================================
Provisioning workshop resources COMPLETE
End: Thu 25 Nov 2021 12:45:29 PM UTC
=============================================
...
...
=============================================
Provisioning workshop resources COMPLETE
=============================================
Resource Groups
from the search bar at the top Resource Groups
. From the list of resource group select dynatrace-azure-modernize-workshop
.kubectl
commands.kubectl --help
az aks get-credentials --resource-group dynatrace-azure-modernize-workshop --name dynatrace-workshop-cluster
dynatrace-workshop-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:
β 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