az feedback auto-generates most of the information requested below, as of CLI version 2.0.62
Describe the bug
Calling "az functionapp cors add" from the CI/CD pipeline creates a new cors entry every time, instead of checking if the entry already exists.
This is important since I use it in the pipelines which are called every time the git repo is updated.
To Reproduce
az functionapp cors add --resource-group $(ResourceGroupName) --name $(AppName) --allowed-origins $(allowedOrigins)
Expected behavior
If I call az functionapp cors add multiple time, it should just create a single entry of the origin and not multiple.
Environment summary
Azure pipeline
Additional context
Image from the azure dashboard

Describe the bug
Calling "az functionapp cors add" from the CI/CD pipeline creates a new cors entry every time, instead of checking if the entry already exists.
This is important since I use it in the pipelines which are called every time the git repo is updated.
To Reproduce
Expected behavior
If I call
az functionapp cors addmultiple time, it should just create a single entry of the origin and not multiple.Environment summary
Azure pipeline
Additional context

Image from the azure dashboard