Complete the code to create a resource group in Azure CLI.
az group create --name [1] --location eastusThe --name parameter specifies the resource group name. 'MyResourceGroup' is a common example name.
Complete the code to create an Azure App Service plan.
az appservice plan create --name [1] --resource-group MyResourceGroup --sku B1The --name parameter sets the name of the App Service plan. 'MyAppServicePlan' is a clear and valid example.
Fix the error in the command to create a web app with the correct runtime stack.
az webapp create --resource-group MyResourceGroup --plan AppPlan1 --name MyWebApp --runtime [1]The --runtime parameter specifies the runtime stack. 'node|14-lts' is a valid runtime for Node.js apps.
Fill both blanks to configure deployment source from a GitHub repository.
az webapp deployment source config --name MyWebApp --resource-group MyResourceGroup --repo-url [1] --branch [2]
The --repo-url is the GitHub repository URL, and --branch specifies the branch to deploy from. 'main' is the default branch name in many repos.
Fill all three blanks to set environment variables for the web app.
az webapp config appsettings set --name MyWebApp --resource-group MyResourceGroup --settings [1]=[2] [3]=production
Environment variables are set as key=value pairs. Here, 'ENVIRONMENT=development' and 'MODE=production' are examples.