Azure / azure-cli

Azure Command-Line Interface
MIT License
4.03k stars 3.01k forks source link

An Error in "az functionapp config appsettings set" command #28491

Open surashirishi opened 8 months ago

surashirishi commented 8 months ago

Describe the bug

The following command execution was failed due to "Parameter with name AzureFunctionsJobHostloggingLogLevel__Function already exists." error in Linux environment.

az functionapp config appsettings set --resource-group {resouceGroup} --name {name}
 --slot staging --slot-settings {file}

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 "AzureFunctionsJobHostloggingLogLevel__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 AzureFunctionsJobHostloggingLogLevel__Function already exists.

Issue script & Debug output

The request body sent to the ARM endpoint contained duplicate "AzureFunctionsJobHostloggingLogLevelFunction" even though setting file specified in command has only one "AzureFunctionsJobHostloggingLogLevelFunction".

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

yonzhan commented 8 months ago

Thank you for opening this issue, we will look into it.

microsoft-github-policy-service[bot] commented 8 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AnatoliB, @Francisco-Gamino, @shreyabatra4.

microsoft-github-policy-service[bot] commented 6 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AnatoliB, @Francisco-Gamino, @shreyabatra4.

microsoft-github-policy-service[bot] commented 6 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AnatoliB, @Francisco-Gamino, @shreyabatra4.