I’m trying to create webapp through azure cli. I do get error as ‘6.0’ is not recognized as an internal or external command. Any idea how to resolve this error?
az webapp create -n testwebapp1 -g test-rg1 -p s1 -r "dotnetcore|6.0"
Above command would create webapp in azure.
TechExplorer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
On the “az webapp create
” command, when using the parameter ‘--runtime
‘ or ‘-r
‘ to specify runtime, the correct format should be “Framework:Version
” instead of “Framework|Version
“.
You can run the “az webapp list-runtimes
” command to check the list of available runtimes based on the OS (Linux or Windows).
If you want to create a Linux web app with .NET 6, the value of parameter ‘--runtime
‘ or ‘-r
‘ should be “DOTNETCORE:6.0
“. If Windows, it is “dotnet:6
“.
# For Linux
az webapp create -n testwebapp1 -g test-rg1 -p s1 -r "DOTNETCORE:6.0"
# For Windows
az webapp create -n testwebapp1 -g test-rg1 -p s1 -r "dotnet:6"
1