Skip to content

[Stream Analytics] az stream-analytics output: Support managed identity with the 2021-10-01-preview API - #10231

Merged
Ethan Yang (necusjz) merged 1 commit into
Azure:mainfrom
huiii99:fix/stream-analytics-output-issue
Aug 20, 2026
Merged

[Stream Analytics] az stream-analytics output: Support managed identity with the 2021-10-01-preview API#10231
Ethan Yang (necusjz) merged 1 commit into
Azure:mainfrom
huiii99:fix/stream-analytics-output-issue

Conversation

@huiii99

@huiii99 Jian Hui (huiii99) commented Aug 19, 2026

Copy link
Copy Markdown
Member

🤖 PR Validation — ️✔️ All clear

Breaking Changes
️✔️ None

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

Related command

az stream-analytics output

Description

Regenerate the Stream Analytics output AAZ commands with API version 2021-10-01-preview to support managed identity outputs such as Cosmos DB. Preserve the existing JSON input/output interface, update affected recordings, add managed identity coverage, and bump the extension version to 1.0.6.

Fixes #10164
aaz Azure/aaz#1066

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? (pip install azdev required)
  • 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.

@azure-client-tools-bot-prd

Copy link
Copy Markdown

Hi Jian Hui (@huiii99),
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in pyproject.toml (or setup.py, if the extension has not migrated yet) as well.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

@huiii99
Jian Hui (huiii99) marked this pull request as ready for review August 19, 2026 02:22
Copilot AI lite review requested due to automatic review settings August 19, 2026 02:22
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

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

This PR updates the stream-analytics CLI extension to use the 2021-10-01-preview API for az stream-analytics output, enabling managed identity scenarios (e.g., Cosmos DB / DocumentDB outputs) while preserving the existing JSON --datasource/--serialization interface via translation helpers.

Changes:

  • Bumped the extension version to 1.0.6 and added corresponding release notes.
  • Regenerated stream-analytics output AAZ commands to target 2021-10-01-preview, including expanded typed datasource/serialization schemas.
  • Added a managed identity (DocumentDB/Cosmos) output scenario test and updated recordings for output-related flows and policy-violation tests.

Reviewed changes

Copilot reviewed 15 out of 18 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/stream-analytics/setup.py Bumps extension version to 1.0.6.
src/stream-analytics/HISTORY.rst Adds release notes entry for 1.0.6.
src/stream-analytics/azext_stream_analytics/tests/latest/test_stream_analytics_commands.py Adds MI coverage for DocumentDB output; adjusts output policy violation test payload structure.
src/stream-analytics/azext_stream_analytics/tests/latest/recordings/test_output_documentdb_authentication_mode.yaml New recording for DocumentDB authenticationMode: Msi scenario.
src/stream-analytics/azext_stream_analytics/tests/latest/recordings/test_output_crud.yaml Updates output CRUD recording URIs to 2021-10-01-preview.
src/stream-analytics/azext_stream_analytics/tests/latest/recordings/test_output_create_policy_violation.yaml Updates recording to match new output API version and updated policy API version used by CLI.
src/stream-analytics/azext_stream_analytics/tests/latest/recordings/test_job_scale.yaml Updates embedded output call recording to 2021-10-01-preview.
src/stream-analytics/azext_stream_analytics/tests/latest/recordings/test_input_sql_create_policy_violation.yaml Updates policy API version used by CLI in recordings.
src/stream-analytics/azext_stream_analytics/tests/latest/recordings/test_input_create_policy_violation.yaml Updates policy API version used by CLI in recordings.
src/stream-analytics/azext_stream_analytics/generated/custom.py Routes output create/update/test through a new translation helper to preserve legacy JSON inputs while feeding the new typed AAZ schema.
src/stream-analytics/azext_stream_analytics/generated/_output_helpers.py New helper translating legacy output REST payloads into flattened AAZ command args.
src/stream-analytics/azext_stream_analytics/generated/_input_helpers.py Improves camelCase-to-snake_case normalization (notably for acronyms) for input translations.
src/stream-analytics/azext_stream_analytics/aaz/latest/stream_analytics/output/_create.py Uses 2021-10-01-preview and typed object schemas for datasource/serialization.
src/stream-analytics/azext_stream_analytics/aaz/latest/stream_analytics/output/_update.py Uses 2021-10-01-preview and typed object schemas for datasource/serialization; includes watermark settings and typed output response schema.
src/stream-analytics/azext_stream_analytics/aaz/latest/stream_analytics/output/_test.py Uses 2021-10-01-preview and typed object schemas for datasource/serialization.
src/stream-analytics/azext_stream_analytics/aaz/latest/stream_analytics/output/_show.py Uses 2021-10-01-preview and updated output response schema.
src/stream-analytics/azext_stream_analytics/aaz/latest/stream_analytics/output/_list.py Uses 2021-10-01-preview and updated output response schema.
src/stream-analytics/azext_stream_analytics/aaz/latest/stream_analytics/output/_delete.py Updates delete to 2021-10-01-preview.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@a0x1ab Aditya Pujara (a0x1ab) added the Azure Client Tools Agent Requested Request Azure Client Tools Agent testing and review label Aug 20, 2026
@necusjz
Ethan Yang (necusjz) merged commit 27101ed into Azure:main Aug 20, 2026
44 checks passed
@azclibot

Copy link
Copy Markdown
Collaborator

[Release] Update index.json for extension [ stream-analytics-1.0.6 ] : https://dev.azure.com/msazure/One/_build/results?buildId=177432395&view=results

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 Azure Client Tools Agent Requested Request Azure Client Tools Agent testing and review Stream Analytics

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[stream-analytics] The customer encountered an issue while creating an Azure Stream Analytics output using Azure CLI.

5 participants