Skip to content

{Eventhub/Servicebus} Remove azure-mgmt-Eventhub azure-mgmt-servicebus multiapi references#31804

Merged
evelyn-ys merged 5 commits intoAzure:devfrom
schaudhari6254888:API
Jul 16, 2025
Merged

{Eventhub/Servicebus} Remove azure-mgmt-Eventhub azure-mgmt-servicebus multiapi references#31804
evelyn-ys merged 5 commits intoAzure:devfrom
schaudhari6254888:API

Conversation

@schaudhari6254888
Copy link
Member

Related command

Description

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature


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

Copilot AI review requested due to automatic review settings July 14, 2025 11:00
@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Jul 14, 2025

️✔️AzureCLI-FullTest
️✔️acr
️✔️latest
️✔️3.12
️✔️3.9
️✔️acs
️✔️latest
️✔️3.12
️✔️3.9
️✔️advisor
️✔️latest
️✔️3.12
️✔️3.9
️✔️ams
️✔️latest
️✔️3.12
️✔️3.9
️✔️apim
️✔️latest
️✔️3.12
️✔️3.9
️✔️appconfig
️✔️latest
️✔️3.12
️✔️3.9
️✔️appservice
️✔️latest
️✔️3.12
️✔️3.9
️✔️aro
️✔️latest
️✔️3.12
️✔️3.9
️✔️backup
️✔️latest
️✔️3.12
️✔️3.9
️✔️batch
️✔️latest
️✔️3.12
️✔️3.9
️✔️batchai
️✔️latest
️✔️3.12
️✔️3.9
️✔️billing
️✔️latest
️✔️3.12
️✔️3.9
️✔️botservice
️✔️latest
️✔️3.12
️✔️3.9
️✔️cdn
️✔️latest
️✔️3.12
️✔️3.9
️✔️cloud
️✔️latest
️✔️3.12
️✔️3.9
️✔️cognitiveservices
️✔️latest
️✔️3.12
️✔️3.9
️✔️compute_recommender
️✔️latest
️✔️3.12
️✔️3.9
️✔️computefleet
️✔️latest
️✔️3.12
️✔️3.9
️✔️config
️✔️latest
️✔️3.12
️✔️3.9
️✔️configure
️✔️latest
️✔️3.12
️✔️3.9
️✔️consumption
️✔️latest
️✔️3.12
️✔️3.9
️✔️container
️✔️latest
️✔️3.12
️✔️3.9
️✔️containerapp
️✔️latest
️✔️3.12
️✔️3.9
️✔️core
️✔️latest
️✔️3.12
️✔️3.9
️✔️cosmosdb
️✔️latest
️✔️3.12
️✔️3.9
️✔️databoxedge
️✔️latest
️✔️3.12
️✔️3.9
️✔️dls
️✔️latest
️✔️3.12
️✔️3.9
️✔️dms
️✔️latest
️✔️3.12
️✔️3.9
️✔️eventgrid
️✔️latest
️✔️3.12
️✔️3.9
️✔️eventhubs
️✔️latest
️✔️3.12
️✔️3.9
️✔️feedback
️✔️latest
️✔️3.12
️✔️3.9
️✔️find
️✔️latest
️✔️3.12
️✔️3.9
️✔️hdinsight
️✔️latest
️✔️3.12
️✔️3.9
️✔️identity
️✔️latest
️✔️3.12
️✔️3.9
️✔️iot
️✔️latest
️✔️3.12
️✔️3.9
️✔️keyvault
️✔️latest
️✔️3.12
️✔️3.9
️✔️lab
️✔️latest
️✔️3.12
️✔️3.9
️✔️managedservices
️✔️latest
️✔️3.12
️✔️3.9
️✔️maps
️✔️latest
️✔️3.12
️✔️3.9
️✔️marketplaceordering
️✔️latest
️✔️3.12
️✔️3.9
️✔️monitor
️✔️latest
️✔️3.12
️✔️3.9
️✔️mysql
️✔️latest
️✔️3.12
️✔️3.9
️✔️netappfiles
️✔️latest
️✔️3.12
️✔️3.9
️✔️network
️✔️latest
️✔️3.12
️✔️3.9
️✔️policyinsights
️✔️latest
️✔️3.12
️✔️3.9
️✔️privatedns
️✔️latest
️✔️3.12
️✔️3.9
️✔️profile
️✔️latest
️✔️3.12
️✔️3.9
️✔️rdbms
️✔️latest
️✔️3.12
️✔️3.9
️✔️redis
️✔️latest
️✔️3.12
️✔️3.9
️✔️relay
️✔️latest
️✔️3.12
️✔️3.9
️✔️resource
️✔️latest
️✔️3.12
️✔️3.9
️✔️role
️✔️latest
️✔️3.12
️✔️3.9
️✔️search
️✔️latest
️✔️3.12
️✔️3.9
️✔️security
️✔️latest
️✔️3.12
️✔️3.9
️✔️servicebus
️✔️latest
️✔️3.12
️✔️3.9
️✔️serviceconnector
️✔️latest
️✔️3.12
️✔️3.9
️✔️servicefabric
️✔️latest
️✔️3.12
️✔️3.9
️✔️signalr
️✔️latest
️✔️3.12
️✔️3.9
️✔️sql
️✔️latest
️✔️3.12
️✔️3.9
️✔️sqlvm
️✔️latest
️✔️3.12
️✔️3.9
️✔️storage
️✔️latest
️✔️3.12
️✔️3.9
️✔️synapse
️✔️latest
️✔️3.12
️✔️3.9
️✔️telemetry
️✔️latest
️✔️3.12
️✔️3.9
️✔️util
️✔️latest
️✔️3.12
️✔️3.9
️✔️vm
️✔️latest
️✔️3.12
️✔️3.9

@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Jul 14, 2025

️✔️AzureCLI-BreakingChangeTest
️✔️Non Breaking Changes

@yonzhan
Copy link
Collaborator

yonzhan commented Jul 14, 2025

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions
Copy link

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).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

Copy link
Contributor

Copilot AI left a comment

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 removes multi-API references for Event Hubs and Service Bus by updating dependency versions, removing API gating in parameters, and clearing default API versions.

  • Bump azure-mgmt-eventhub from 10.1.0 to 11.2.0 in setup and requirements.
  • Drop min_api constraints in Event Hubs CLI parameter contexts.
  • Set default API versions for Service Bus and Event Hubs to None in core profiles.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

File Description
src/azure-cli/setup.py Updated azure-mgmt-eventhub version to ~=11.2.0.
src/azure-cli/requirements.py3.windows.txt (and Linux, Darwin) Aligned azure-mgmt-eventhub version bumps across all platforms.
src/azure-cli/azure/cli/command_modules/eventhubs/_params.py Removed min_api filters from namespace and create contexts.
src/azure-cli-core/azure/cli/core/profiles/_shared.py Cleared default API versions for MGMT_SERVICEBUS and MGMT_EVENTHUB.
Comments suppressed due to low confidence (5)

src/azure-cli/setup.py:86

  • Ensure that Event Hubs command tests cover compatibility with the updated azure-mgmt-eventhub 11.2.0 API or add new tests for any breaking changes.
    'azure-mgmt-eventhub~=11.2.0',

src/azure-cli-core/azure/cli/core/profiles/_shared.py:222

  • Consider updating the module’s documentation or HISTORY.rst to explain why the default API version for Service Bus has been cleared.
        ResourceType.MGMT_SERVICEBUS: None,

src/azure-cli-core/azure/cli/core/profiles/_shared.py:223

  • Add a note in HISTORY.rst or inline comments to clarify the removal of the default API version for Event Hubs.
        ResourceType.MGMT_EVENTHUB: None,

src/azure-cli/azure/cli/command_modules/eventhubs/_params.py:31

  • Removing the min_api filter may expose parameters to API versions where they aren't supported; confirm that these arguments are valid across all versions or restore version gating.
    with self.argument_context('eventhubs namespace' ) as c:

src/azure-cli/azure/cli/command_modules/eventhubs/_params.py:61

  • Dropping the min_api constraint here may apply parameters to unsupported API versions; verify compatibility or reintroduce the version check.
    with self.argument_context('eventhubs namespace create') as c:

evelyn-ys
evelyn-ys previously approved these changes Jul 15, 2025
Copy link
Member

@msyyc msyyc left a comment

Choose a reason for hiding this comment

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

azure-mgmt-eventhub==11.2.0 and azure-mgmt-servicebus==9.0.0 is actually not singleapi package. And SDK team will try to release singleapi version for these 2 packages soon.

@evelyn-ys evelyn-ys self-requested a review July 15, 2025 09:06
@schaudhari6254888
Copy link
Member Author

azure-mgmt-eventhub==11.2.0 and azure-mgmt-servicebus==9.0.0 is actually not singleapi package. And SDK team will try to release singleapi version for these 2 packages soon.

Changed to latest API version
azure-mgmt-eventhub==12.0.0b1
azure-mgmt-servicebus==10.0.0b1

@evelyn-ys evelyn-ys merged commit 88d766d into Azure:dev Jul 16, 2025
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants