Thank you for participating in the Azure Load Testing What The Hack. Before you can hack, you will need to set up some prerequisites.
Now that you have the common prerequisites installed on your workstation, there is a sample application that we will be working off of for this hack.
Your coach will provide you with a Resources.zip file that contains resources you will need to complete the hack. If you plan to work locally, you should unzip it on your workstation. If you plan to use the Azure Cloud Shell, you should upload it to the Cloud Shell and unzip it there.
The sample app is a WebApp deployed on App Service with Cosmos DB as a database. It counts the number of visitors visiting the page and inserts the same into a sample collection in Cosmos DB.
In your terminal window, log into Azure and set a subscription(subscription which would contain the webapp) :
az login
az account set -s mySubscriptionName
Deploy the sample app using the PowerShell script. (Tip: macOS users can install PowerShell here)
cd nodejs-appsvc-cosmosdb-bottleneck
.\deploymentscript.ps1
eastus
). A resource group for the resources would be created with the same name.Once deployment is complete, browse to the running sample application with your browser.
https://<app_name>.azurewebsites.net
You may want to delete the resources to avoid incurring additional charges at the end of this hack. Use the az group delete
command to remove the resource group and all related resources.
az group delete --name myResourceGroup
Similarly, you can utilize the Delete resource group toolbar button on the sample application’s resource group to remove all the resources.
To complete this challenge successfully, you should be able to: