chore: regenerate dps control plane sdk on 2026-06-01-preview#848
Merged
cheatsheet1999 merged 1 commit intoJun 30, 2026
Merged
Conversation
Contributor
|
Have we run integration tests for it to make sure no regressions? |
Member
Author
Yes, let me run it one more time and attach a result screenshot. Thanks for the remainder. |
ketkimnaik
approved these changes
Jun 30, 2026
HangyiWang
approved these changes
Jun 30, 2026
Member
Author
|
@HangyiWang @ketkimnaik , updated int test result, will merge it in a moment. Thank you! |
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.
Summary
Generate IoT DPS control plane (mgmt) SDK on API version 2026-06-01-preview. The new API Version includes
for feature to use
Changes
azext_iot/sdk/dps/mgmt/was regenerated via the TypeSpec-
azext_iot/_factory.py: changed the IotDpsClient(...) call from endpoint= to base_url= .-
azext_iot/tests/test_factory_unit.py: updated the matching assertion ( endpoint -> base_url ).Why _factory.py had to change
The regenerated IotDpsClient renamed its constructor parameter from endpoint to base_url (and added cloud_setting ). Since the constructor also takes **kwargs , leaving
endpointdoes not raise - it's silently dropped, and base_url falls back to the default public ARM endpoint. The client would then ignore_get_arm_endpoint(cli_ctx)and always target public-cloud ARM, breaking sovereign clouds (Fairfax/Mooncake) and the canary endpoint used for preview testing. Switching to base_url= restores correct endpoint resolution (verified: endpoint= -> management.azure.com ; base_url= -> canary).Integration test result