[PostgreSQL] Change selection criteria for default SKU when --sku-name not provided - #33897
Open
Nacho Alonso Portillo (nachoalonsoportillo) wants to merge 1 commit into
Conversation
Nacho Alonso Portillo (nachoalonsoportillo)
requested a review
from a team
as a code owner
August 14, 2026 12:43
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Copilot started reviewing on behalf of
Nacho Alonso Portillo (nachoalonsoportillo)
August 14, 2026 12:44
View session
microsoft-github-policy-service
Bot
requested review from
Yu Chen (jsntcy),
ZelinWang (wangzelin007) and
Yong Zhang (yonzhan)
August 14, 2026 12:45
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates az postgres flexible-server create to pick the default compute SKU based on the capability API’s per-tier default SKU (to align CLI behavior with the Azure portal) when --sku-name isn’t provided.
Changes:
- Extend parsed location/server capabilities to include
default_sku_nameper tier. - Add a utility helper to retrieve the default SKU for a given tier.
- Update
flexible_server_createto use the default SKU from capabilities instead of sorting available SKUs.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
src/azure-cli/azure/cli/command_modules/postgresql/utils/_flexible_server_util.py |
Adds get_postgres_default_sku() helper for extracting the tier’s default SKU from capability info. |
src/azure-cli/azure/cli/command_modules/postgresql/utils/_flexible_server_location_capabilities_util.py |
Persists default_sku_name into the tier capability dictionary used throughout the module. |
src/azure-cli/azure/cli/command_modules/postgresql/commands/custom_commands.py |
Switches default SKU selection in flexible_server_create to use the capability-provided default SKU. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Member
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
Alex Hughes (alxhghs)
approved these changes
Aug 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 PR Validation — ️✔️ All clear
Related command
az postgres flexible-server createDescription
To make experience consistent with Azure portal.
Testing Guide
History Notes
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.