Azure / Azure/azure-powershell

Missing Parameter

Open
#24,260 2 comments 0 reactions 0 assignees View on GitHub
act-observability-squad App Services customer-reported feature-request Gap - CLI Service Attention
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

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](https://learn.microsoft.com/en-us/powershell/module/az.websites/new-azwebapp?view=azps-11.3.0)

**Azure CLI command (with 'runtime' parameter)**: [az webapp create](https://learn.microsoft.com/en-us/cli/azure/webapp?view=azure-cli-latest#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

@mikefrobbins

### Document Id

53d6331b-ae09-cf2c-ce36-3a81494ed6bb

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.