Skip to content

[Storage] az storage advanced-platform-metric create/update/show/list/delete: Support Advanced Platform Metrics#33224

Merged
calvinhzy merged 4 commits intoAzure:devfrom
calvinhzy:storage-advanced-platform-metric
Apr 27, 2026
Merged

[Storage] az storage advanced-platform-metric create/update/show/list/delete: Support Advanced Platform Metrics#33224
calvinhzy merged 4 commits intoAzure:devfrom
calvinhzy:storage-advanced-platform-metric

Conversation

@calvinhzy
Copy link
Copy Markdown
Member

@calvinhzy calvinhzy commented Apr 20, 2026

Related command

Description

New command az storage advanced-platform-metric create/update/show/list/delete from 2026-04-01
aaz Azure/aaz#987

Testing Guide

History Notes

[Storage] az storage advanced-platform-metric create/update/show/list/delete: Support Advanced Platform Metrics


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

…list/delete` from api version 2026-04-01 for preview
@calvinhzy calvinhzy self-assigned this Apr 20, 2026
@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd Bot commented Apr 20, 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

Hi @calvinhzy,
Since the current milestone time is less than 7 days, this pr will be reviewed in the next milestone.

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

azure-client-tools-bot-prd Bot commented Apr 20, 2026

⚠️AzureCLI-BreakingChangeTest
⚠️storage
rule cmd_name rule_message suggest_message
⚠️ 1011 - SubgroupAdd storage advanced-platform-metric sub group storage advanced-platform-metric added

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Apr 20, 2026

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

@github-actions
Copy link
Copy Markdown

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>

@calvinhzy
Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@calvinhzy
Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@calvinhzy calvinhzy marked this pull request as ready for review April 23, 2026 08:55
Copilot AI review requested due to automatic review settings April 23, 2026 08:55
Copy link
Copy Markdown
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

Adds new Storage command group az storage advanced-platform-metric (2026-04-01 API version) with CRUD operations and a custom update behavior, plus scenario coverage and recordings in the storage module.

Changes:

  • Introduces AAZ-generated commands for create/show/list/update/delete under storage advanced-platform-metric.
  • Adds a custom AdvancedPlatformMetricUpdate wrapper to relax the required rule-type argument and normalize filter values for AllContainersFilter.
  • Adds scenario test + recording for the new command group.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/azure-cli/azure/cli/command_modules/storage/tests/latest/test_storage_advanced_platform_metric_scenarios.py New scenario test covering create/show/update/list/delete flows.
src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_advanced_platform_metric.yaml Test recording for the new scenario.
src/azure-cli/azure/cli/command_modules/storage/operations/advanced_platform_metric.py Custom wrapper for update to default rule type and normalize filter values.
src/azure-cli/azure/cli/command_modules/storage/commands.py Wires the custom update command into the command table.
src/azure-cli/azure/cli/command_modules/storage/aaz/latest/storage/advanced_platform_metric/_create.py AAZ-generated create command and argument schema.
src/azure-cli/azure/cli/command_modules/storage/aaz/latest/storage/advanced_platform_metric/_update.py AAZ-generated update command (generic update enabled).
src/azure-cli/azure/cli/command_modules/storage/aaz/latest/storage/advanced_platform_metric/_show.py AAZ-generated show command.
src/azure-cli/azure/cli/command_modules/storage/aaz/latest/storage/advanced_platform_metric/_list.py AAZ-generated list command with pagination support.
src/azure-cli/azure/cli/command_modules/storage/aaz/latest/storage/advanced_platform_metric/_delete.py AAZ-generated delete command with confirmation.
src/azure-cli/azure/cli/command_modules/storage/aaz/latest/storage/advanced_platform_metric/init.py Package exports for the new command group.
src/azure-cli/azure/cli/command_modules/storage/aaz/latest/storage/advanced_platform_metric/__cmd_group.py Registers the new command group.

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

Comment on lines +7 to +11
from knack.log import get_logger

logger = get_logger(__name__)


Copy link

Copilot AI Apr 23, 2026

Choose a reason for hiding this comment

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

logger is defined but never used in this module. Please remove the unused logger (or add a log statement if it’s intended) to avoid lint failures and keep the customization minimal.

Suggested change
from knack.log import get_logger
logger = get_logger(__name__)

Copilot uses AI. Check for mistakes.
@calvinhzy calvinhzy merged commit 1612f59 into Azure:dev Apr 27, 2026
49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants