{IoT} Remove azure-mgmt-iothub, iothubprovisioningservices, and iotcentral Api references#31955
{IoT} Remove azure-mgmt-iothub, iothubprovisioningservices, and iotcentral Api references#31955zhoxing-ms merged 2 commits intoAzure:devfrom
Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
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). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
There was a problem hiding this comment.
Pull Request Overview
This PR removes API references for IoT Hub, DPS, and IoT Central management services by updating the azure-mgmt-iothub package to the latest version (5.0.0b1) and removing hardcoded API version constraints. The changes support migrating to a single API SDK approach and eliminate outdated API version dependencies.
- Updated azure-mgmt-iothub from version 3.0.0 to 5.0.0b1 across all platform requirement files
- Removed API version constraints and profile checks for IoT services
- Fixed test compatibility by excluding unsupported routing sources
Reviewed Changes
Copilot reviewed 8 out of 18 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/azure-cli/setup.py | Updated azure-mgmt-iothub dependency to version 5.0.0b1 |
| src/azure-cli/requirements.py3.*.txt | Updated azure-mgmt-iothub version across Windows, Linux, and Darwin platform requirements |
| src/azure-cli/azure/cli/command_modules/iot/tests/latest/test_iot_commands.py | Added exclusion for unsupported Mqtt_Broker_Messages routing source in tests |
| src/azure-cli/azure/cli/command_modules/iot/custom.py | Removed API profile checks and simplified certificate operations |
| src/azure-cli/azure/cli/command_modules/iot/commands.py | Removed min_api constraint for message enrichment commands |
| src/azure-cli-core/azure/cli/core/profiles/_shared.py | Set IoT Hub, DPS, and IoT Central API versions to None |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Related command
Description
Removing API references for IoT Hub, DPS, and Central. Bumped the sdk version for IoT Hub to the latest single API sdk: https://pypi.org/project/azure-mgmt-iothub/5.0.0b1/
Testing Guide
Re-recorded all the tests. Only had to add one fix for a IoT Hub route source that is not used/supported
History Notes
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.