Skip to content

Conversation

@nachoalonsoportillo
Copy link
Member

@nachoalonsoportillo nachoalonsoportillo commented Dec 15, 2025

Related command
az postgres flexible-server index-tuning
az postgres flexible-server autonomous-tuning

Description
Introduce a new command group that extends the scope of index tuning to also cover other types of recommendations.

Testing Guide
A new test class was added to test all commands of the new az postgres flexible-server autonomous-tuning command group.

History Notes

[RDBMS] az postgres flexible-server index-tuning: Deprecate and redirect to az postgres flexible-server autonomous-tuning command group
[RDBMS] az postgres flexible-server autonomous-tuning list-index-recommendations/list-table-recommendations: Support listing index recommendations and table recommendations


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

Copilot AI review requested due to automatic review settings December 15, 2025 21:38
@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Dec 15, 2025

️✔️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
️✔️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

azure-client-tools-bot-prd bot commented Dec 15, 2025

⚠️AzureCLI-BreakingChangeTest
⚠️rdbms
rule cmd_name rule_message suggest_message
⚠️ 1011 - SubgroupAdd postgres flexible-server autonomous-tuning sub group postgres flexible-server autonomous-tuning added
⚠️ 1013 - SubgroupPropAdd postgres flexible-server index-tuning sub group postgres flexible-server index-tuning added property deprecate_info_redirect
⚠️ 1013 - SubgroupPropAdd postgres flexible-server index-tuning sub group postgres flexible-server index-tuning added property deprecate_info_target
⚠️ 1010 - ParaPropUpdate postgres flexible-server index-tuning list-recommendations cmd postgres flexible-server index-tuning list-recommendations update parameter recommendation_type: updated property choices from ['CreateIndex', 'DropIndex'] to ['CreateIndex', 'DropIndex', 'ReIndex']

@yonzhan
Copy link
Collaborator

yonzhan commented Dec 15, 2025

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions
Copy link

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

Copilot AI review requested due to automatic review settings December 16, 2025 14:17
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a new autonomous-tuning command group for PostgreSQL flexible servers that extends the capabilities of the existing index-tuning command group to support multiple types of recommendations (index and table operations). The original index-tuning command group is being deprecated in favor of the new, more comprehensive autonomous-tuning group.

Key Changes:

  • Added new az postgres flexible-server autonomous-tuning command group with support for both index and table recommendations
  • Deprecated az postgres flexible-server index-tuning command group with proper redirection messaging
  • Extended recommendation types to include ReIndex for indexes and AnalyzeTable/VacuumTable for tables

Reviewed changes

Copilot reviewed 8 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
test_rdbms_flexible_commands.py Renamed existing test class for index tuning and added comprehensive test class for new autonomous tuning commands
flexible_server_custom_postgres.py Renamed recommendations_list to index_tuning_recommendations_list, added six new functions for autonomous tuning feature (update, show, settings operations, and recommendation listing for both index and table types), updated deprecated index tuning functions to use renamed settings map
flexible_server_commands.py Registered new autonomous-tuning command group with commands for update, show, list/show/set settings, and list recommendations for both indexes and tables
_util.py Renamed get_index_tuning_settings_map to get_autonomous_tuning_settings_map to reflect broader scope
_params.py Added parameter definitions for all autonomous tuning commands including new recommendation types (ReIndex, AnalyzeTable, VacuumTable), updated index tuning parameters to use renamed settings map function
_helptext_pg.py Added comprehensive help text and examples for all six autonomous tuning commands
_flexible_server_location_capabilities_util.py Renamed variables from index_tuning to autonomous_tuning for consistency with new naming convention
_breaking_change.py Registered deprecation of index-tuning command group with redirect to autonomous-tuning

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

nachoalonsoportillo and others added 2 commits December 16, 2025 18:26
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…custom_postgres.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@evelyn-ys
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@evelyn-ys
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@evelyn-ys evelyn-ys merged commit de2958e into Azure:dev Dec 18, 2025
48 checks passed
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.

4 participants