Skip to content

Runtime parameter is missing in Azure CLI - #41

Open
rramoscabral wants to merge 3 commits into
MicrosoftLearning:mainfrom
rramoscabral:main
Open

Runtime parameter is missing in Azure CLI#41
rramoscabral wants to merge 3 commits into
MicrosoftLearning:mainfrom
rramoscabral:main

Conversation

@rramoscabral

Copy link
Copy Markdown

Runtime is mandatory when creating an Azure WebApp using AZ CLI.

Runtime is mandatory when creating an Azure WebApp using AZ CLI.
Runtime is mandatory when creating an Azure WebApp using AZ CLI.
Copilot AI review requested due to automatic review settings August 6, 2026 14:48
@rramoscabral rramoscabral changed the title Runtime paramter is missing in Azure CLI Runtime parameter is missing in Azure CLI Aug 6, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates advanced lab instructions to include a runtime stack when creating Azure App Service Web Apps via Azure CLI, addressing the reported requirement that az webapp create needs an explicit runtime.

Changes:

  • Added --runtime to az webapp create commands in three advanced instruction guides.
  • Standardized the runtime value used across those instructions.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
Instructions/advanced/08-monitor-application-performance-azure-load-testing.md Adds --runtime to the Web App creation command in the load testing lab.
Instructions/advanced/04-control-deployments-release-gates.md Adds --runtime to both DevTest and Prod Web App creation commands.
Instructions/advanced/03-configure-pipelines-code-yaml.md Adds --runtime to the Web App creation command in the YAML pipelines lab.
Suppressed comments (1)

Instructions/advanced/04-control-deployments-release-gates.md:138

  • Same issue as the DevTest web app: for a Windows web app, DOTNETCORE|10.0 is the Linux runtime-stack format and mismatches the .NET 8 app used in the labs. Use a Windows runtime identifier (for example dotnet:8).
   az webapp create -g $RESOURCEGROUPNAME -p $SERVICEPLANNAME -n RGATES$SUFFIX-Prod --runtime "DOTNETCORE|10.0"

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

```bash
WEBAPPNAME=az400eshoponweb$RANDOM$RANDOM
az webapp create --resource-group $RESOURCEGROUPNAME --plan $SERVICEPLANNAME --name $WEBAPPNAME
az webapp create --resource-group $RESOURCEGROUPNAME --plan $SERVICEPLANNAME --name $WEBAPPNAME --runtime "DOTNETCORE|10.0"
SUFFIX=$RANDOM$RANDOM
az webapp create -g $RESOURCEGROUPNAME -p $SERVICEPLANNAME -n RGATES$SUFFIX-DevTest
az webapp create -g $RESOURCEGROUPNAME -p $SERVICEPLANNAME -n RGATES$SUFFIX-Prod
az webapp create -g $RESOURCEGROUPNAME -p $SERVICEPLANNAME -n RGATES$SUFFIX-DevTest --runtime "DOTNETCORE|10.0"
```bash
WEBAPPNAME=eshoponWebYAML$RANDOM$RANDOM
az webapp create --resource-group $RESOURCEGROUPNAME --plan $SERVICEPLANNAME --name $WEBAPPNAME
az webapp create --resource-group $RESOURCEGROUPNAME --plan $SERVICEPLANNAME --name $WEBAPPNAME --runtime "DOTNETCORE|10.0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants