Skip to content

az postgres flexible-server parameter list: doesn't show actual value by default #32099

@jmealo

Description

@jmealo

Describe the bug

az postgres flexible-server parameter list --output=table
This only provides the default value and allowed value but not the ACTUAL value. If you're greping this can be a real pain.

Additionally, it switches between TRUE FALSE and true false

In JSON mode, booleans are not booleans, they're uppercase strings.

Related command

az postgres flexible-server parameter list

Errors

N/A

Issue script & Debug output

Nonsensical default columns (actual value missing):

az postgres flexible-server parameter list --resource-group application --server-name production-intel-db-2 --output=table
Name                                           DataType     DefaultValue                    Source          AllowedValues

Inconsistent boolean values:

  {
    "allowedValues": "true, false",
    "dataType": "Boolean",
    "defaultValue": "false",
    "description": "Denotes if pgBouncer service is enabled.",
    "documentationLink": "https://www.pgbouncer.org/config.html",
    "id": "<redacted>",
    "isConfigPendingRestart": false,
    "isDynamicConfig": true,
    "isReadOnly": false,
    "name": "pgbouncer.enabled",
    "value": "TRUE"
  },

Expected behavior

  • To show the actual value by default.
  • To use booleans consistently.
  • Someone to test the DX before shipping.

Environment Summary

{
  "azure-cli": "2.73.0",
  "azure-cli-core": "2.73.0",
  "azure-cli-telemetry": "1.1.0",
  "extensions": {
    "aks-preview": "18.0.0b36"
  }
}

Additional context

No response

Metadata

Metadata

Labels

Auto-AssignAuto assign by botAuto-ResolveAuto resolve by botPostgreSQLService AttentionThis issue is responsible by Azure service team.bugThis 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.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions