Skip to content

azure functionapp update does not properly handle the --slot setting #20901

@dannmichelson

Description

@dannmichelson

Describe the bug
When the trying to update properties for a Azure Function Slot (specifically the loadBalancing property) using Azure CLI, the change is applied to the production slot rather than the slot specified

To Reproduce
ex: az functionapp update -g $resourceGroup -n $name -s $slotName --set siteConfig.loadBalancing=PerSiteRoundRobin

Expected behavior
The expectation is that properties for the $slotName slot is updated.

Environment summary
run in Powershell Core 7.1.3, Azure CLI 2.31.0

Additional context
The biggest reason this is a big problem is that we change all our configuration in our staging slot and then swap into the main slot, which ensures no down time during deployments.

Metadata

Metadata

Assignees

Labels

Functionsaz functionappService AttentionThis issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-author-feedbackMore information is needed from author to address the issue.no-recent-activityThere has been no recent activity on this issue.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions