A common architecture places Service Bus between an API and background compute. The API validates a request and sends a small command message; Azure Functions or AKS workers retrieve it, update application state, and complete it only after successful processing. Managed identities authenticate the components through Microsoft Entra ID, with separate sender and receiver roles. Where database changes and message publication must remain consistent, use a transactional outbox rather than assuming a broker transaction covers both systems.
Topics extend this pattern to independent business consumers. Fulfillment workers, notification functions, and Logic Apps workflows can each maintain a subscription, with filters selecting relevant messages. Store large documents in Blob Storage and send references so broker payloads remain small. Align blob retention with retry and dead-letter recovery windows.
Operationally, combine Azure Monitor metrics with application telemetry to track backlog, processing latency, lock failures, and dead-letter growth. For private deployments, verify DNS resolution, compute outbound routing, and connector network support. Regional recovery plans should cover both the messaging namespace and its dependent compute, identity, storage, and downstream systems.
Azure Functions
Service Bus triggers start function executions for messages arriving on queues or topic subscriptions, and output bindings can send messages. For example, a function can process an invoice request and publish a completion event. Configure concurrency, lock renewal, and settlement behavior for the workload, and use managed identity with the required messaging roles.
Logic Apps
Logic Apps provides Service Bus connectors for message-driven integration workflows. For example, a workflow can receive an order message, call an ERP connector, and send a status message to another queue. Connector capabilities and network-access options differ between hosting models, so verify private connectivity and message-settlement behavior before deployment.
Azure Kubernetes Service (AKS)
Applications running on AKS can use Service Bus SDKs to publish and consume messages. For example, fulfillment worker deployments can scale from queue backlog using KEDA. Use Microsoft Entra Workload ID for authentication and tune scaling, prefetch, and consumer concurrency to respect downstream capacity.
Azure Blob Storage
Use the claim-check pattern to keep large payloads in Blob Storage and send a blob reference through Service Bus. For example, store an uploaded document in a private container and enqueue its blob identifier for extraction workers. Coordinate retention and cleanup so blobs remain available through message retries, and use identity-based access rather than long-lived embedded credentials.
Azure Monitor
Azure Monitor collects Service Bus platform metrics and supports diagnostic settings for available resource logs. For example, alert when dead-lettered messages increase, throttled requests appear, or active-message counts remain elevated. Instrument application handlers separately to measure business processing latency and correlate failures with message identifiers.
API Management
Service Bus queues and topics can receive messages directly from an API Management policy. For example, an API can put an order request on a queue using a managed identity and return an acceptance response without waiting for fulfillment.
App Service
Service Bus can trigger App Service WebJobs when a message arrives on a queue or topic subscription. Service Connector can also configure an App Service application's namespace settings and authentication for sending or receiving messages.
Azure Arc
A network-restricted Service Bus namespace can allow eligible Azure Arc traffic through its trusted Microsoft services firewall exception without opening the namespace to general public traffic. The exception does not grant messaging permissions.
Azure Container Apps
Service Bus queue depth or a topic subscription's message backlog can drive scaling for a container app or trigger event-driven Container Apps jobs. For example, a worker app can scale out as orders accumulate and scale back to zero when the queue is empty.
Azure Data Explorer
Service Bus recognizes Azure Data Explorer under its trusted Microsoft services firewall setting. A restricted namespace can allow eligible Azure Data Explorer traffic while still requiring authorization for messaging operations.
Azure DevOps
Service Bus queues and topics can receive Azure DevOps service hook notifications. For example, a queue can hold build-completion events until a deployment worker is ready to process them.
Azure Digital Twins
Service Bus topics can receive events from Azure Digital Twins through a configured endpoint and event route. For example, a route can publish equipment state changes to a topic so maintenance and reporting consumers can each receive a copy.
Azure DNS
A Service Bus private endpoint can use an Azure Private DNS zone named `privatelink.servicebus.windows.net`. Clients on linked virtual networks can then resolve the usual namespace hostname to the private endpoint's IP address.
Azure ExpressRoute
Clients on premises can reach a Service Bus namespace through its private endpoint over ExpressRoute private peering. This lets them use the namespace with public network access disabled.
Azure Firewall
Azure Firewall network rules can use the `ServiceBus` service tag to permit outbound traffic to public Service Bus endpoints without maintaining the service's IP ranges by hand. Service Bus still authenticates each client and enforces its messaging permissions.
Azure Health Data Services
A Service Bus namespace with network restrictions can allow eligible Azure Health Data Services traffic through its trusted Microsoft services firewall exception. The namespace still requires the calling identity to be authorized.
Azure IoT Central
Service Bus queues and topics can receive data from a configured IoT Central export. For example, IoT Central can send device events to a topic using its managed identity so separate consumers can handle maintenance and reporting.
Azure IoT Hub
Service Bus queues and topics are supported custom endpoints for IoT Hub message routing. For example, a routing rule can send device alarm messages to a Service Bus queue for a maintenance worker.
Azure Key Vault
A Premium Service Bus namespace can use a customer-managed key stored in Azure Key Vault to protect its data at rest. The namespace uses its managed identity to access the key.
Azure Machine Learning
Service Bus can permit eligible Azure Machine Learning traffic through the trusted Microsoft services firewall exception on a restricted namespace. The exception affects network access only; it does not grant send or receive permissions.
Azure Policy
Built-in Azure Policy definitions can audit or enforce Service Bus namespace settings, such as disabling public network access or local authentication. This lets administrators apply the same messaging security requirements across subscriptions.
Azure portal
The Azure portal can provision and configure Service Bus namespaces, queues, topics, and subscriptions. Its built-in Service Bus Explorer can send a test message or peek at messages in a queue or dead-letter queue.
Azure Private Link
A Premium Service Bus namespace can expose a private endpoint in a virtual network through Azure Private Link. Clients can use that endpoint to send and receive messages even when public network access is disabled.
Azure Resource Manager
Azure Resource Manager exposes Service Bus namespaces, queues, topics, subscriptions, rules, and other settings as deployable resource types. A template can create a namespace and its messaging entities together, including subscription filters.
Azure role-based access control (Azure RBAC)
Service Bus uses Azure RBAC to authorize management and messaging operations. For example, the Azure Service Bus Data Sender role can let a managed identity send messages to a single queue without giving it permission to receive them.
Azure Service Health
Service Health reports Azure incidents and planned maintenance that affect Service Bus. Its Resource Health view also shows the reported availability of individual Service Bus namespaces.
Azure Spring Apps
Service Connector can configure a Spring Apps application with the namespace and authentication settings it needs to use Service Bus. Spring Cloud Azure can then map application message producers and consumers to Service Bus queues or topics.
Azure SQL Database
Service Bus can accept messages from Azure SQL Database through the supported Service Bus REST endpoint and the built-in `sp_invoke_external_rest_endpoint` procedure. For example, a stored procedure can submit a notification to a queue using Microsoft Entra authentication.
Azure SQL Managed Instance
Service Bus can receive messages from an Azure SQL Managed Instance that supports `sp_invoke_external_rest_endpoint`. The procedure can call the Service Bus REST endpoint to publish a message from a SQL workflow.
Azure Stream Analytics
Service Bus queues and topics are native output destinations for Stream Analytics jobs. A streaming query can send an alert to a queue when a reading crosses a threshold, or publish it to a topic for multiple consumers.
Azure Synapse Analytics
Service Bus supports connections authenticated with a Synapse workspace's managed identity. A restricted namespace can allow eligible Synapse traffic through its trusted services exception, with an Azure RBAC role controlling whether the workspace can send or receive messages.
Azure Virtual Machine Scale Sets
A virtual machine scale set can use a Service Bus queue's message count as an autoscale metric. For example, it can add worker instances when the backlog grows and remove them as the workers catch up.
Azure Virtual Network
A Premium Service Bus namespace can restrict access to selected Azure Virtual Network subnets through virtual network service endpoints. Workloads in an authorized subnet can use the namespace's regular hostname even though the namespace rejects traffic from networks that are not allowed.
Event Grid
Service Bus can publish events to Event Grid when messages are available and no receiver is active. In the other direction, Event Grid can deliver subscribed events to Service Bus queues or topics so consumers can process them asynchronously.
Event Hubs
Service Bus diagnostic settings can stream namespace resource logs and supported metrics to Event Hubs. A central monitoring pipeline can consume that stream without reading the application messages held in Service Bus queues or topics.
Microsoft Defender for Cloud
Defender for Cloud can surface security recommendations for Service Bus namespaces, such as restricting network access. Service Bus also recognizes eligible Defender for Cloud traffic under its trusted Microsoft services firewall setting.
Microsoft Entra ID (formerly Azure AD)
Service Bus accepts Microsoft Entra access tokens from authorized users, service principals, and managed identities. For example, a worker can receive queue messages using its managed identity instead of storing a shared access key.
Microsoft Purview
A restricted Service Bus namespace can admit eligible Microsoft Purview traffic through the trusted Microsoft services firewall exception. The exception does not grant Purview permission to send or receive messages.