Messaging & Integration

Service Bus

Microsoft.ServiceBus

Resource types
15 of 15 supported
Data plane
8 types emulated
API versions
9 newest 2026-01-01
Ships as
Plugin 2026.11
Plan
Starter and above

Data as of 2026-11-20

Resource types

The Resource Types supported by Locally for the Microsoft.ServiceBus plugin are shown below. You can click into a type to see more information.

Note: This is generated from the latest version of the plugin (2026.11) as of 2026-11-20, and may differ in older versions. We aim to keep this information accurate and up to date; if you find something we're missing, then please let us know.

API versions

The latest API version that Locally supports for Microsoft.ServiceBus is 2026-01-01. All 9 versions it supports are listed below.

Stable3

2026-01-01 2024-01-01 2021-11-01

Preview6

2026-07-01-preview 2025-05-01-preview 2023-01-01-preview 2022-10-01-preview 2022-01-01-preview 2021-06-01-preview

Features

  • Queues
  • Topics and subscriptions
  • Sessions
  • Transactions
  • Dead-lettering
  • Scheduled messages
  • SQL and correlation filters
  • Duplicate detection
  • Auto-forwarding
  • AMQP 1.0 and HTTPS, including AMQP over WebSockets on the Service Bus HTTPS port.
  • Administration API: create queues, topics, subscriptions and rules from code with the SDKs' administration clients, using locally servicebus connection-string --management.
  • Microsoft Entra authentication, with roles such as Azure Service Bus Data Sender and Azure Service Bus Data Receiver.
  • Shared access policies, including disabling local authentication on a namespace.
  • Event Grid subscriptions can deliver to a queue or topic, and Premium namespaces raise their Event Grid events.
  • Function App triggers run in the Function App emulator.
  • Chaos Engineering can throttle, fail, slow down or drop requests over AMQP and HTTPS, report a full or disabled entity, lose a message lock, delay, repeat or reorder messages, cut open connections and links, or simulate an outage. Team

Limitations

Namespaces

  • AMQP over WebSockets is served on the Service Bus HTTPS port (5662 by default) rather than 443, so the client's WebSocket endpoint needs that port.
  • Geo-Disaster Recovery and Premium's other features aren't emulated at this time.

Queues

  • Partitioned queues aren't emulated at this time.

Topics

  • Arithmetic in a rule action (SET x = x + 1) has no effect at this time.
  • Parameters on SQL filters aren't stored at this time, so a filter using @parameter sees it as NULL.
  • Partitioned topics aren't emulated.

Examples

Runnable examples from the examples library.

Running a MassTransit saga on App Service with Service Bus and Redis Deploy two .NET apps to App Service with Terraform that talk through MassTransit over Service Bus, keeping the order saga's state in Azure Cache for Redis and signing in to both with managed identities. app-serviceazurerm-providercontainer-registrydotnethashicorp-terraformopentofuredisservice-bus Passing messages from App Service through Service Bus into Table Storage Deploy a producer and a consumer to App Service with Terraform that pass messages through a Service Bus queue into Table Storage, each with its own managed identity and only the roles it needs. app-serviceazurerm-providercontainer-registryhashicorp-terraformopentofuservice-busstorage Passing messages from a Function App through Service Bus into Table Storage Deploy a Node.js Function App with Terraform that sends messages to a Service Bus queue, picks them up with a Service Bus trigger and stores them in Table Storage, with every binding connecting through a managed identity. azurerm-providerfunction-apphashicorp-terraformopentofuservice-busstorage Deploy a Service Bus Namespace to Locally using an ARM Template Provisions a Service Bus Namespace (Standard SKU), into a Resource Group of your choosing. arm-template Deploy a Service Bus Queue to Locally using an ARM Template Provisions a Service Bus Namespace and a Queue, into a Resource Group of your choosing. arm-template Deploy a Service Bus Topic with a Subscription to Locally using an ARM Template Provisions a Service Bus Namespace, a Topic and a Subscription to that Topic, into a Resource Group of your choosing. arm-template Send and receive Service Bus messages on Locally using the Azure SDK for .NET Shows how to send and receive messages through a Service Bus Queue. azure-sdk-for-dotnetdotnet Send and receive Service Bus messages on Locally using the Azure SDK for Go Shows how to send and receive messages through a Service Bus Queue. azure-sdk-for-go Deploy a Service Bus Namespace to Locally using a Bicep Template Provisions a Service Bus Namespace (Standard SKU), into a Resource Group of your choosing. bicep Deploy a Service Bus Queue to Locally using a Bicep Template Provisions a Service Bus Namespace and a Queue, into a Resource Group of your choosing. bicep Deploy a Service Bus Topic with a Subscription to Locally using a Bicep Template Provisions a Service Bus Namespace, a Topic and a Subscription to that Topic, into a Resource Group of your choosing. bicep Deploy a Service Bus Namespace to Locally using Terraform and the Azure/azapi provider Provisions a Resource Group containing a Service Bus Namespace (Standard SKU). azapi-providerhashicorp-terraform Deploy a Service Bus Queue to Locally using Terraform and the Azure/azapi provider Provisions a Resource Group containing a Service Bus Namespace and a Queue. azapi-providerhashicorp-terraform Deploy a Service Bus Topic with a Subscription to Locally using Terraform and the Azure/azapi provider Provisions a Resource Group containing a Service Bus Namespace, a Topic and a Subscription to that Topic. azapi-providerhashicorp-terraform Deploy a Service Bus Namespace to Locally using Terraform and the hashicorp/azurerm provider Provisions a Resource Group containing a Service Bus Namespace (Standard SKU). azurerm-providerhashicorp-terraform Deploy a Service Bus Queue to Locally using Terraform and the hashicorp/azurerm provider Provisions a Resource Group containing a Service Bus Namespace and a Queue. azurerm-providerhashicorp-terraform Deploy a Service Bus Topic with a Subscription to Locally using Terraform and the hashicorp/azurerm provider Provisions a Resource Group containing a Service Bus Namespace, a Topic and a Subscription to that Topic. azurerm-providerhashicorp-terraform Deploy a Service Bus Namespace to Locally using OpenTofu and the Azure/azapi provider Provisions a Resource Group containing a Service Bus Namespace (Standard SKU). azapi-provideropentofu Deploy a Service Bus Queue to Locally using OpenTofu and the Azure/azapi provider Provisions a Resource Group containing a Service Bus Namespace and a Queue. azapi-provideropentofu Deploy a Service Bus Topic with a Subscription to Locally using OpenTofu and the Azure/azapi provider Provisions a Resource Group containing a Service Bus Namespace, a Topic and a Subscription to that Topic. azapi-provideropentofu Deploy a Service Bus Namespace to Locally using OpenTofu and the opentofu/azurerm provider Provisions a Resource Group containing a Service Bus Namespace (Standard SKU). azurerm-provideropentofu Deploy a Service Bus Queue to Locally using OpenTofu and the opentofu/azurerm provider Provisions a Resource Group containing a Service Bus Namespace and a Queue. azurerm-provideropentofu Deploy a Service Bus Topic with a Subscription to Locally using OpenTofu and the opentofu/azurerm provider Provisions a Resource Group containing a Service Bus Namespace, a Topic and a Subscription to that Topic. azurerm-provideropentofu

Documentation

A local cloud for you and your AI agents.

Your Azure infrastructure, running on your machine. Deploy in seconds, break things freely, and ship to Azure when you're ready.