Unable to run bash command in sandbox related to AZ-400

Haridas Shinde, Gunjan 0 Reputation points
2024-05-09T08:25:18.4733333+00:00

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.

  1. 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
    following command not giving any output
       gitRepo=https://github.com/MicrosoftDocs/mslearn-capture-application-logs-app-service
    
Azure Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
1,082 questions
{count} votes