-
Notifications
You must be signed in to change notification settings - Fork 3.4k
An Error in "az functionapp config appsettings set" command #28491
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botFunctionsaz functionappaz functionappService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.act-observability-squadazf_bugazf_reviewedbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Metadata
Metadata
Labels
Auto-AssignAuto assign by botAuto assign by botFunctionsaz functionappaz functionappService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.act-observability-squadazf_bugazf_reviewedbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Describe the bug
The following command execution was failed due to "Parameter with name AzureFunctionsJobHost__logging__LogLevel__Function already exists." error in Linux environment.
I think the expected behavior for this command should be idempotence regardless of whether the setting exists or not..
Regarding debug log, the request body sent to the ARM endpoint contained duplicate "AzureFunctionsJobHost__logging__LogLevel__Function" setting so I belive that that seems to be the cause of the issue.
Related command
az functionapp config appsettings set --resource-group {resouceGroup} --name {name}
--slot staging --slot-settings {file}
Errors
Parameter with name AzureFunctionsJobHost__logging__LogLevel__Function already exists.
Issue script & Debug output
The request body sent to the ARM endpoint contained duplicate "AzureFunctionsJobHost__logging__LogLevel__Function"
even though setting file specified in command has only one "AzureFunctionsJobHost__logging__LogLevel__Function".
Expected behavior
The expected behavior for this command should be idempotence and successful.
Environment Summary
This issue appear to be caused in Linux environment. The following environment has experienced the issue.
AZURECLI/2.52.0 (RPM) azsdk-python-azure-mgmt-web/7.0.0 Python/3.9.7 (Linux-4.18.0-372.70.1.el8_6.x86_64-x86_64-with-glibc2.28)
Additional context
No response