Unable to run bash command in sandbox related to AZ-400
Exercise - Enable and configure App Service application logging using the Azure portal
Completed100 XP
- 15 minutes
Sandbox activated! Time remaining: 2 hr 46 min
You have used 1 of 10 sandboxes for today. More sandboxes will be available tomorrow.
In this exercise, you deploy a sample ASP.NET Core Web app from GitHub, which has the code required to generate trace output messages. Then, you use the Azure portal to enable app logging for the app.
Use Azure CLI to deploy a web app
In this task, you use Azure CLI to create an ASP.NET Web app using code from a GitHub repository. You also create a new storage account in the same region as the Web app, for log storage.
- Let's set some variables, so we can use them throughout the rest of the exercise. Run the following commands in Azure Cloud Shell, replacing <your-local-Azure-region>, with the region closest to you from the following list. The free sandbox allows you to create resources in a subset of the Azure global regions. Select a region from this list when you create resources:
- westus2
- southcentralus
- centralus
- eastus
- westeurope
- southeastasia
- japaneast
- brazilsouth
- australiasoutheast
- centralindia
gitRepo=https://github.com/MicrosoftDocs/mslearn-capture-application-logs-app-service