Skip to content

[Functions] New-AzFunctionApp fails on Windows PowerShell #29166

@vidai-msft

Description

@vidai-msft

Description

When running the cmdlet New-AzFunctionApp -ResourceGroupName $rgName -Name $funcAppName -Location $location -FunctionsVersion 4 -StorageAccountName $saName -OSType Windows -Runtime PowerShell -RuntimeVersion 7.4, it throws exception Cannot bind parameter because parameter 'Name' is specified more than once. To provide multiple values to parameters that can accept multiple values, use the array syntax. For example, "-parameter value1,value2,value3".

The problem is easy to reproduce and should be caused by this PR #28873

Issue script & Debug output

NA

Environment data

$PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.26100.7462
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.26100.7462
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Module versions

NA

Error output

Metadata

Metadata

Assignees

Labels

Azure PS TeamFunctionsService AttentionThis issue is responsible by Azure service team.TrackingWe will track status and follow internallyact-observability-squadbugThis issue requires a change to an existing behavior in the product in order to be resolved.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions