---
id: "asgard-ext-azure-service-bus"
lang: "zh-TW"
name: "Azure Service Bus"
vendor: "Microsoft"
product: "Azure Service Bus"
category: "developer"
summary: "讓 Agent 查看 Azure Service Bus 的佇列與主題、讀取 dead-letter 訊息與失敗原因，並在使用者確認後送出訊息。"
url: "https://www.asgard-ai.com/zh/extensions/asgard-ext-azure-service-bus"
docs: "https://learn.microsoft.com/azure/service-bus-messaging/"
source: null
usages: ["build-time","shared-account"]
produces: ["Workflow","Toolset","Agent"]
requires: {"asgard_cli":">=0.4.0","skills":[],"extensions":[],"platform":[]}
command: "asgard-cli extension get asgard-ext-azure-service-bus"
handoff: "請用 asgard-cli 取得 asgard-ext-azure-service-bus 這個 Extension，帶我判斷要走哪幾條路線，再開始導入。"
updated: "2026-11-30"
---

# Azure Service Bus

讓 Asgard 的 Agent 使用一個 Azure Service Bus namespace：

- 查看每個佇列、主題的 subscription 與 dead-letter 佇列各有多少訊息。
- 讀取 dead-letter 訊息：原因、時間、屬性與內容。
- 在使用者確認後，送一則訊息到佇列或主題。

Agent 讀完 dead-letter 訊息會放回去，不讀佇列裡還在排隊的訊息內容，也不會取走或刪除訊息。

## 要準備什麼

- 一個 Azure Service Bus namespace。要用主題的話，需要 Standard 以上的方案。
- 組織在 Microsoft Entra ID 建立的一個 app registration，以及它的 client secret。還沒有的話，FDE Agent 會一步一步帶著建（大約 15 分鐘）。
- 一位可以建立 app registration、並在 namespace 上指派角色的人（例如 namespace 的擁有者）。
