Open
Description
Type of issue
Missing information
Feedback
The Az PowerShell command in the doc below to create WebApp does not include a parameter for web Runtime in the format of Framework|Version unlike the Azure cli command equivalent. See error output below :
New-AzWebApp -Name $webAppName -Location $location -AppServicePlan $aspname.Name -ResourceGroupName $resourcegroupname.ResourceGroupName -Runtime "java|11-java11"
New-AzWebApp : A parameter cannot be found that matches parameter name 'Runtime'.
At line:1 char:138
+ ... sourceGroupName $resourcegroupname.ResourceGroupName -Runtime "java|1 ...
+ ~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [New-AzWebApp], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps.NewAzureWebAppCmdlet
Az Powershell command (with missing parameter): New-AzWebApp
Azure CLI command (with 'runtime' parameter): az webapp create
Page URL
https://learn.microsoft.com/en-us/powershell/module/az.websites/new-azwebapp?view=azps-11.3.0
Content source URL
https://github.com/Azure/azure-powershell/blob/main/src/Websites/Websites/help/New-AzWebApp.md
Author
Document Id
53d6331b-ae09-cf2c-ce36-3a81494ed6bb