[Stream Analytics] az stream-analytics input create: Fix authenticationMode being dropped for SQL reference inputs#9942
Merged
necusjz merged 2 commits intoJun 17, 2026
Conversation
️✔️Azure CLI Extensions Breaking Change Test
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes az stream-analytics input create dropping properties.authenticationMode for Azure SQL reference inputs by adding an authentication_mode field to the vendored AzureSqlReferenceInputDataSource model so it serializes to properties.authenticationMode correctly.
Changes:
- Add
authentication_modemapping toAzureSqlReferenceInputDataSourcein both_models.pyand_models_py3.py. - Bump the stream-analytics extension version to
1.0.4and add a correspondingHISTORY.rstentry. - Add a scenario test (+ recording) validating
authenticationModeround-trips on create/show for SQL reference inputs.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
src/stream-analytics/setup.py |
Bumps extension version to 1.0.4. |
src/stream-analytics/HISTORY.rst |
Adds 1.0.4 release note entry. |
src/stream-analytics/azext_stream_analytics/vendored_sdks/streamanalytics/models/_models.py |
Adds authentication_mode attribute mapping for SQL reference input datasource (py2-style model). |
src/stream-analytics/azext_stream_analytics/vendored_sdks/streamanalytics/models/_models_py3.py |
Adds authentication_mode attribute mapping + typing for SQL reference input datasource (py3 model). |
src/stream-analytics/azext_stream_analytics/tests/latest/test_stream_analytics_commands.py |
Adds scenario test covering SQL reference input authenticationMode. |
src/stream-analytics/azext_stream_analytics/tests/latest/recordings/test_input_sql_reference_authentication_mode.yaml |
Adds recording for the new scenario test. |
Collaborator
|
Stream Analytics |
necusjz
approved these changes
Jun 17, 2026
Collaborator
|
[Release] Update index.json for extension [ stream-analytics-1.0.4 ] : https://dev.azure.com/msazure/One/_build/results?buildId=168360434&view=results |
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.
This checklist is used to make sure that common guidelines for a pull request are followed.
Related command
az stream-analytics input createDescription
This PR adds
authentication_mode(mapped toproperties.authenticationMode) toAzureSqlReferenceInputDataSourcein both_models.pyand_models_py3.py, so the value is now forwarded to the service. The extension version is bumped to 1.0.4 and a scenario test is added.Fixes Azure/azure-cli#33553
General Guidelines
azdev style <YOUR_EXT>locally? (pip install azdevrequired)python scripts/ci/test_index.py -qlocally? (pip install wheel==0.30.0required)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.jsonautomatically.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.