github Azure/azure-sdk-for-go sdk/messaging/azservicebus/v1.11.0-beta.1

pre-release2 hours ago

1.11.0-beta.1 (2026-08-21)

Features Added

  • Added Client.NewListSessionsForQueuePager() and Client.NewListSessionsForSubscriptionPager() to list the IDs of sessions in session-enabled queues and subscriptions. By default they list sessions that have active messages, as well as sessions that have session state set but no active messages; set SessionStateUpdatedAfter to instead list sessions whose session state was updated after a given time. (PR#26688)
  • Added SQLFilterCount and CorrelationFilterCount to TopicRuntimeProperties, exposing the total number of SQL filters and correlation filters across all of a topic's subscriptions, including the default rule each subscription is created with. The service reports these at api-version 2024-05 or later. (PR#27323)

Bugs Fixed

  • Setting APIVersion in the administration client's ClientOptions now takes effect. Setting it previously made every administration call fail with "this client doesn't support overriding its API version". (PR#27323)
  • Management operations (PeekMessages, ScheduleMessages, CancelScheduledMessages, and others) now send a server-timeout that expires one second before the caller's context, so the broker answers first and the caller gets a service-side timeout instead of context deadline exceeded. When the context has no deadline, each attempt asks the broker to answer within 60 seconds, where it was previously given no bound at all. The client still waits only on its context, so set one to cap the call itself. (#26421)
  • Read com.microsoft:max-message-batch-size vendor property from the AMQP sender link to correctly limit batch size on Premium large-message entities, where max-message-size can be up to 100 MB but the batch limit is 1 MB.

Other Changes

  • Added unit-testing guidance and a compile-checked example for code that uses
    Receiver through a consumer-defined interface.
  • Every administration operation now runs against service api-version 2024-05, where it previously ran against 2021-05. Responses follow the 2024-05 contract, which adds fields to some entity descriptions, and the topic filter counts above require this version. Set APIVersion on the azcore.ClientOptions embedded in the client's ClientOptions to pin a different version. (PR#27323)
  • Cleaned up accumulated golangci-lint findings in azservicebus (deprecated
    runtime.WithHTTPHeader calls switched to policy.WithHTTPHeader, duplicate
    log package imports consolidated under the azlog alias, unchecked Close
    errors wrapped with the _ = ... ignore pattern, and assorted staticcheck
    style nits). No behavioral changes.

Don't miss a new azure-sdk-for-go release

NewReleases is sending notifications on new releases.