Skip to content

[PostgreSQL] Align postgres flexible-server firewall-rule arguments with announced breaking change#33335

Draft
Copilot wants to merge 4 commits intodevfrom
copilot/fix-postgres-firewall-rule
Draft

[PostgreSQL] Align postgres flexible-server firewall-rule arguments with announced breaking change#33335
Copilot wants to merge 4 commits intodevfrom
copilot/fix-postgres-firewall-rule

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 8, 2026

Related command
az postgres flexible-server firewall-rule create
(show, update, delete, list are updated for the same contract)

Description
postgres flexible-server firewall-rule did not accept --server-name in v2.86.0 despite documented breaking-change guidance, causing wrappers and automation that followed docs to fail.
This PR aligns command argument wiring and docs/tests with the announced contract.

  • Argument contract alignment

    • Add --server-name/-s (server_name) to firewall-rule operations.
    • Repurpose --name/-n to firewall_rule_name on create/delete/show/update.
    • Keep list scoped to server (--server-name) only.
  • Help text updates

    • Update firewall-rule examples to use:
      • --server-name for server identity
      • --name for firewall rule identity
  • Scenario test updates

    • Update firewall-rule scenario commands to the new argument model so coverage matches the shipped UX.
# New expected form
az postgres flexible-server firewall-rule create \
  --resource-group <rg> \
  --server-name <server> \
  --name <rule> \
  --start-ip-address <ip> \
  --end-ip-address <ip>

Testing Guide
Use the firewall-rule command family with the updated parameter contract:

  • Create:
    • az postgres flexible-server firewall-rule create -g <rg> -s <server> -n <rule> --start-ip-address <ip> --end-ip-address <ip>
  • Show:
    • az postgres flexible-server firewall-rule show -g <rg> -s <server> -n <rule>
  • Update:
    • az postgres flexible-server firewall-rule update -g <rg> -s <server> -n <rule> --start-ip-address <ip>
  • Delete:
    • az postgres flexible-server firewall-rule delete -g <rg> -s <server> -n <rule> --yes
  • List:
    • az postgres flexible-server firewall-rule list -g <rg> -s <server>

History Notes
[PostgreSQL] BREAKING CHANGE: az postgres flexible-server firewall-rule {create|show|update|delete} now use --server-name/-s for server and --name/-n for firewall rule name (--rule-name/-r no longer used).


This checklist is used to make sure that common guidelines for a pull request are followed.

@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd Bot commented May 8, 2026

️✔️AzureCLI-FullTest
️✔️acr
️✔️latest
️✔️3.12
️✔️3.13
️✔️acs
️✔️latest
️✔️3.12
️✔️3.13
️✔️advisor
️✔️latest
️✔️3.12
️✔️3.13
️✔️ams
️✔️latest
️✔️3.12
️✔️3.13
️✔️apim
️✔️latest
️✔️3.12
️✔️3.13
️✔️appconfig
️✔️latest
️✔️3.12
️✔️3.13
️✔️appservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️aro
️✔️latest
️✔️3.12
️✔️3.13
️✔️backup
️✔️latest
️✔️3.12
️✔️3.13
️✔️batch
️✔️latest
️✔️3.12
️✔️3.13
️✔️batchai
️✔️latest
️✔️3.12
️✔️3.13
️✔️billing
️✔️latest
️✔️3.12
️✔️3.13
️✔️botservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️cdn
️✔️latest
️✔️3.12
️✔️3.13
️✔️cloud
️✔️latest
️✔️3.12
️✔️3.13
️✔️cognitiveservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️compute_recommender
️✔️latest
️✔️3.12
️✔️3.13
️✔️computefleet
️✔️latest
️✔️3.12
️✔️3.13
️✔️config
️✔️latest
️✔️3.12
️✔️3.13
️✔️configure
️✔️latest
️✔️3.12
️✔️3.13
️✔️consumption
️✔️latest
️✔️3.12
️✔️3.13
️✔️container
️✔️latest
️✔️3.12
️✔️3.13
️✔️containerapp
️✔️latest
️✔️3.12
️✔️3.13
️✔️core
️✔️latest
️✔️3.12
️✔️3.13
️✔️cosmosdb
️✔️latest
️✔️3.12
️✔️3.13
️✔️databoxedge
️✔️latest
️✔️3.12
️✔️3.13
️✔️dls
️✔️latest
️✔️3.12
️✔️3.13
️✔️dms
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventgrid
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventhubs
️✔️latest
️✔️3.12
️✔️3.13
️✔️feedback
️✔️latest
️✔️3.12
️✔️3.13
️✔️find
️✔️latest
️✔️3.12
️✔️3.13
️✔️hdinsight
️✔️latest
️✔️3.12
️✔️3.13
️✔️identity
️✔️latest
️✔️3.12
️✔️3.13
️✔️iot
️✔️latest
️✔️3.12
️✔️3.13
️✔️keyvault
️✔️latest
️✔️3.12
️✔️3.13
️✔️lab
️✔️latest
️✔️3.12
️✔️3.13
️✔️managedservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️maps
️✔️latest
️✔️3.12
️✔️3.13
️✔️marketplaceordering
️✔️latest
️✔️3.12
️✔️3.13
️✔️monitor
️✔️latest
️✔️3.12
️✔️3.13
️✔️mysql
️✔️latest
️✔️3.12
️✔️3.13
️✔️netappfiles
️✔️latest
️✔️3.12
️✔️3.13
️✔️network
️✔️latest
️✔️3.12
️✔️3.13
️✔️policyinsights
️✔️latest
️✔️3.12
️✔️3.13
️✔️postgresql
️✔️latest
️✔️3.12
️✔️3.13
️✔️privatedns
️✔️latest
️✔️3.12
️✔️3.13
️✔️profile
️✔️latest
️✔️3.12
️✔️3.13
️✔️rdbms
️✔️latest
️✔️3.12
️✔️3.13
️✔️redis
️✔️latest
️✔️3.12
️✔️3.13
️✔️relay
️✔️latest
️✔️3.12
️✔️3.13
️✔️resource
️✔️latest
️✔️3.12
️✔️3.13
️✔️role
️✔️latest
️✔️3.12
️✔️3.13
️✔️search
️✔️latest
️✔️3.12
️✔️3.13
️✔️security
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicebus
️✔️latest
️✔️3.12
️✔️3.13
️✔️serviceconnector
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicefabric
️✔️latest
️✔️3.12
️✔️3.13
️✔️signalr
️✔️latest
️✔️3.12
️✔️3.13
️✔️sql
️✔️latest
️✔️3.12
️✔️3.13
️✔️sqlvm
️✔️latest
️✔️3.12
️✔️3.13
️✔️storage
️✔️latest
️✔️3.12
️✔️3.13
️✔️synapse
️✔️latest
️✔️3.12
️✔️3.13
️✔️telemetry
️✔️latest
️✔️3.12
️✔️3.13
️✔️util
️✔️latest
️✔️3.12
️✔️3.13
️✔️vm
️✔️latest
️✔️3.12
️✔️3.13

@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd Bot commented May 8, 2026

❌AzureCLI-BreakingChangeTest
❌postgresql
rule cmd_name rule_message suggest_message
1010 - ParaPropUpdate postgres flexible-server firewall-rule create cmd postgres flexible-server firewall-rule create update parameter firewall_rule_name: updated property options from ['--rule-name', '-r'] to ['--name', '-n'] please change property options from ['--name', '-n'] to ['--rule-name', '-r'] for parameter firewall_rule_name of cmd postgres flexible-server firewall-rule create
1010 - ParaPropUpdate postgres flexible-server firewall-rule create cmd postgres flexible-server firewall-rule create update parameter server_name: updated property options from ['--name', '-n'] to ['--server-name', '-s'] please change property options from ['--server-name', '-s'] to ['--name', '-n'] for parameter server_name of cmd postgres flexible-server firewall-rule create
1010 - ParaPropUpdate postgres flexible-server firewall-rule delete cmd postgres flexible-server firewall-rule delete update parameter firewall_rule_name: updated property options from ['--rule-name', '-r'] to ['--name', '-n'] please change property options from ['--name', '-n'] to ['--rule-name', '-r'] for parameter firewall_rule_name of cmd postgres flexible-server firewall-rule delete
1010 - ParaPropUpdate postgres flexible-server firewall-rule delete cmd postgres flexible-server firewall-rule delete update parameter server_name: updated property options from ['--name', '-n'] to ['--server-name', '-s'] please change property options from ['--server-name', '-s'] to ['--name', '-n'] for parameter server_name of cmd postgres flexible-server firewall-rule delete
1010 - ParaPropUpdate postgres flexible-server firewall-rule list cmd postgres flexible-server firewall-rule list update parameter server_name: updated property options from ['--name', '-n'] to ['--server-name', '-s'] please change property options from ['--server-name', '-s'] to ['--name', '-n'] for parameter server_name of cmd postgres flexible-server firewall-rule list
1010 - ParaPropUpdate postgres flexible-server firewall-rule show cmd postgres flexible-server firewall-rule show update parameter firewall_rule_name: updated property options from ['--rule-name', '-r'] to ['--name', '-n'] please change property options from ['--name', '-n'] to ['--rule-name', '-r'] for parameter firewall_rule_name of cmd postgres flexible-server firewall-rule show
1010 - ParaPropUpdate postgres flexible-server firewall-rule show cmd postgres flexible-server firewall-rule show update parameter server_name: updated property options from ['--name', '-n'] to ['--server-name', '-s'] please change property options from ['--server-name', '-s'] to ['--name', '-n'] for parameter server_name of cmd postgres flexible-server firewall-rule show
1010 - ParaPropUpdate postgres flexible-server firewall-rule update cmd postgres flexible-server firewall-rule update update parameter firewall_rule_name: updated property options from ['--rule-name', '-r'] to ['--name', '-n'] please change property options from ['--name', '-n'] to ['--rule-name', '-r'] for parameter firewall_rule_name of cmd postgres flexible-server firewall-rule update
1010 - ParaPropUpdate postgres flexible-server firewall-rule update cmd postgres flexible-server firewall-rule update update parameter server_name: updated property options from ['--name', '-n'] to ['--server-name', '-s'] please change property options from ['--server-name', '-s'] to ['--name', '-n'] for parameter server_name of cmd postgres flexible-server firewall-rule update

Please submit your Breaking Change Pre-announcement ASAP if you haven't already. Please note:

  • Breaking changes can only be merged during the designated breaking change window
  • A pre-announcement must be released at least one month in advance

For more details on how to introduce breaking changes, refer to the documentation: azure-cli/doc/how_to_introduce_breaking_changes.md

Copilot AI and others added 3 commits May 8, 2026 05:48
Copilot AI changed the title [WIP] Fix postgres flexible-server firewall-rule change not included in v2.86.0 [PostgreSQL] Align postgres flexible-server firewall-rule arguments with announced breaking change May 8, 2026
Copilot AI requested a review from a0x1ab May 8, 2026 05:50
Copilot finished work on behalf of a0x1ab May 8, 2026 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Auto-Assign Auto assign by bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

postgres flexible-server firewall-rule change not included in v2.86.0

3 participants