az cli commands should be idempotent #26770
Labels
Auto-Assign
Auto assign by bot
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
PostgreSQL
Service Attention
This issue is responsible by Azure service team.
Related command
az postgres flexible-server create
https://learn.microsoft.com/en-us/cli/azure/postgres/flexible-server?view=azure-cli-latest#az-postgres-flexible-server-create
Is your feature request related to a problem? Please describe.
When issuing the above command in a deployment pipeline, the pipeline exits with error code 1:
WARNING: Checking the existence of the resource group '##obfuscated##'...
WARNING: Resource group '##obfuscated##' exists ? : True
ERROR: Specified server name is already used.
##[error]Script failed with exit code: 1
Describe the solution you'd like
This command should be able to be executed even if the resource already exists. just raise a warning.
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: