Skip to content

[Stream Analytics] Migrate az stream-analytics input to AAZ#10031

Open
huiii99 wants to merge 3 commits into
Azure:mainfrom
huiii99:feat/migrate-stream-analytics-input-to-aaz
Open

[Stream Analytics] Migrate az stream-analytics input to AAZ#10031
huiii99 wants to merge 3 commits into
Azure:mainfrom
huiii99:feat/migrate-stream-analytics-input-to-aaz

Conversation

@huiii99

@huiii99 huiii99 commented Jun 23, 2026

Copy link
Copy Markdown
Member

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

Related command

az stream-analytics input create / update / show / list / delete / test

Description

Migrates the az stream-analytics input command group from the vendored SDK to the auto-generated AAZ framework, following the same pattern already used for az stream-analytics output. The custom functions in generated/custom.py now call the AAZ command classes internally, so the existing --properties CLI interface is fully preserved (no breaking change).

Fixes Azure/azure-cli#33553
aaz Azure/aaz#1032

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (azdev required; see .azure-pipelines/templates/azdev_setup.yml for the install command until azdev==0.2.11b1 is on PyPI)
  • My extension version conforms to the Extension version schema

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

feat: migrate stream analytics input command to aaz
@azure-client-tools-bot-prd

azure-client-tools-bot-prd Bot commented Jun 23, 2026

Copy link
Copy Markdown
️✔️Azure CLI Extensions Breaking Change Test
️✔️Non Breaking Changes

@yonzhan

yonzhan commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Stream Analytics

@huiii99 huiii99 marked this pull request as ready for review June 23, 2026 05:41
Copilot AI review requested due to automatic review settings June 23, 2026 05:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Migrates the az stream-analytics input command group from the vendored SDK implementation to the auto-generated AAZ framework, while preserving the existing --properties JSON interface via a translation helper and updating tests/recordings accordingly.

Changes:

  • Switch stream-analytics input custom command implementations to invoke AAZ command classes (list/show/create/update/delete/test).
  • Add a helper to translate legacy --properties payloads into flattened AAZ command arguments.
  • Update scenario tests and recordings (including scoping/cleanup for policy assignments) and bump extension version/history.

Reviewed changes

Copilot reviewed 16 out of 21 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/stream-analytics/setup.py Bumps extension version to 1.0.5.
src/stream-analytics/HISTORY.rst Adds 1.0.5 changelog entry for the input AAZ migration.
src/stream-analytics/azext_stream_analytics/tests/latest/test_stream_analytics_commands.py Updates/extends input policy + SQL auth scenario coverage and scopes policy assignments to RG.
src/stream-analytics/azext_stream_analytics/tests/latest/recordings/test_output_create_policy_violation.yaml Updates recording for RG-scoped policy assignment + cleanup call.
src/stream-analytics/azext_stream_analytics/tests/latest/recordings/test_job_scale.yaml Updates recording to reflect input API version change to 2021-10-01-preview.
src/stream-analytics/azext_stream_analytics/tests/latest/recordings/test_input_sql_reference_authentication_mode.yaml Updates recording for new input API version and MSI auth scenario.
src/stream-analytics/azext_stream_analytics/tests/latest/recordings/test_input_sql_create_policy_violation.yaml Adds new recording for SQL input policy-violation scenario on upgraded API.
src/stream-analytics/azext_stream_analytics/tests/latest/recordings/test_input_create_policy_violation.yaml Updates recording for RG-scoped policy assignment + cleanup call.
src/stream-analytics/azext_stream_analytics/generated/custom.py Re-routes input commands through AAZ and uses the --properties translation helper.
src/stream-analytics/azext_stream_analytics/generated/commands.py Removes input client factory usage and registers input group to use cmd-based custom handlers.
src/stream-analytics/azext_stream_analytics/generated/_input_helpers.py Introduces helper to map legacy --properties JSON into AAZ args.
src/stream-analytics/azext_stream_analytics/generated/_client_factory.py Removes unused cf_input factory after migration.
src/stream-analytics/azext_stream_analytics/aaz/latest/stream_analytics/input/_test.py Adds generated AAZ implementation for stream-analytics input test.
src/stream-analytics/azext_stream_analytics/aaz/latest/stream_analytics/input/_show.py Adds generated AAZ implementation for stream-analytics input show.
src/stream-analytics/azext_stream_analytics/aaz/latest/stream_analytics/input/_list.py Adds generated AAZ implementation for stream-analytics input list.
src/stream-analytics/azext_stream_analytics/aaz/latest/stream_analytics/input/_delete.py Adds generated AAZ implementation for stream-analytics input delete.
src/stream-analytics/azext_stream_analytics/aaz/latest/stream_analytics/input/init.py Exposes generated input command modules.
src/stream-analytics/azext_stream_analytics/aaz/latest/stream_analytics/input/__cmd_group.py Registers the generated AAZ command group for stream-analytics input.

Comment thread src/stream-analytics/HISTORY.rst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deploying Azure Stram Analytics(ASA) SQL Input using CLI will not trigger the policy

4 participants