ContainerApp connection creation fails for PostgreSQL when default output is not json #7135
Labels
Auto-Assign
Auto assign by bot
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
ContainerApp
Service Attention
This issue is responsible by Azure service team.
Subscription
Describe the bug
If the default output type for AZCLI is not JSON (defined in az cli config file), creating Container App connections for PostgreSQL flexible server fails.
Related command
Errors
Unexpected error:
Issue script & Debug output
Not necessary as the stack is clear about the issue.
Expected behavior
It should work even if the user set a different output type in his config.
It works when removing the configuration from ~/.azure/config
Environment Summary
Tested in Cloud Shell:
Additional context
Seems that the issue is comes from lines like:
run_cli_cmd
will try to parse the command's output as JSON and revert to returning the bytes if it fails.The text was updated successfully, but these errors were encountered: