Skip to content

az webapp up - second app in plan doesn't work due to --runtime parameter failure #25743

@diberry

Description

@diberry

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

  1. First command to create plan on correct (Windows) os is:
az webapp up --resource-group myAuthResourceGroup --name frontend-diberry-win-16 --plan myPlan --sku FREE --os-type Windows --location "West Europe" --runtime "NODE:16LTS"
  1. Second command fails with same --runtime syntax:
az webapp up --resource-group myAuthResourceGroup --name backend-diberry-win-16 --plan myPlan --runtime "NODE:16LTS"

Error is: Linux runtime 'NODE|16LTS' is not supported. Please check supported runtimes with: 'az webapp list-runtimes --os Linux'

Issue: why does it think the plan is Linux when the 1st command stated the os type for Windows and the returned JSON shows the os as Windows. See Screenshot below.

If I add the correct OS to the command, I get an error about location:

az webapp up --resource-group myAuthResourceGroup --name backend-diberry-win-16 --plan myPlan --runtime "NODE:16LTS" --os-type Windows

The only way to get it to work is to then specify the location

 az webapp up --resource-group myAuthResourceGroup --name backend-diberry-win-16 --plan myPlan --runtime "NODE:16LTS" --os-type Windows --location "West Europe"

Isn't the point of az webapp up that if the information can be derived/assumed from the plan that I don't have to enter it?

Don't have to add these params for Linux OS

az webapp up --resource-group myAuthResourceGroup-lin --name frontend-diberry-lin-16 --plan myPlan-lin --sku B1 --location "West Europe" --os-type Linux --runtime "NODE:16-lts"

az webapp up --resource-group myAuthResourceGroup-lin --name backend-diberry-lin-16 --plan myPlan-lin --runtime "NODE:16-lts"

Why are the operating system not sharing the runtime values? They are completely different in case and syntax.

Related command

Describe the bug

To Reproduce

Expected behavior

Environment summary

Additional context
image

image

image

Don't have to add these params for Linux OS

image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions