Skip to content

Missing Parameter #24260

Open
Open
@codyBiem17

Description

@codyBiem17

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

@mikefrobbins

Document Id

53d6331b-ae09-cf2c-ce36-3a81494ed6bb

Metadata

Metadata

Assignees

No one assigned

    Labels

    App Servicesaka WebSitesGap - CLIThis is a feature gap with Azure CLIService AttentionThis issue is responsible by Azure service team.customer-reportedfeature-requestThis issue requires a new behavior in the product in order be resolved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions