az servicebus namespace

Servicebus 命名空間。

命令

名稱 Description 類型 狀態
az servicebus namespace authorization-rule

Servicebus 命名空間授權規則。

核心 GA
az servicebus namespace authorization-rule create

建立命名空間的授權規則。

核心 GA
az servicebus namespace authorization-rule delete

刪除命名空間授權規則。

核心 GA
az servicebus namespace authorization-rule keys

Servicebus 命名空間授權規則金鑰。

核心 GA
az servicebus namespace authorization-rule keys list

取得命名空間的主要和次要 連接字串。

核心 GA
az servicebus namespace authorization-rule keys renew

重新產生命名空間的主要或次要 連接字串。

核心 GA
az servicebus namespace authorization-rule list

列出命名空間的授權規則。

核心 GA
az servicebus namespace authorization-rule show

依規則名稱取得命名空間的授權規則。

核心 GA
az servicebus namespace authorization-rule update

更新命名空間的授權規則。

核心 GA
az servicebus namespace create

建立 服務匯流排 命名空間。

核心 GA
az servicebus namespace delete

刪除現有的命名空間。 此作業也會移除命名空間下的所有相關聯資源。

核心 GA
az servicebus namespace encryption

管理 servicebus 命名空間加密屬性。

核心 GA
az servicebus namespace encryption add

將加密屬性新增至命名空間。

核心 GA
az servicebus namespace encryption remove

從命名空間中移除一或多個 Encryption 屬性。

核心 GA
az servicebus namespace exists

檢查提供命名空間名稱的可用性。

核心 GA
az servicebus namespace identity

管理 servicebus 命名空間身分識別。

核心 GA
az servicebus namespace identity assign

將系統或使用者或系統、使用者指派的身分識別指派給命名空間。

核心 GA
az servicebus namespace identity remove

從命名空間移除系統或使用者或系統、使用者指派的身分識別。

核心 GA
az servicebus namespace list

依資源群組列出訂用帳戶內的所有可用命名空間,以及不論資源群組為何。

核心 GA
az servicebus namespace network-rule-set

Servicebus 命名空間 network-rule-set。

核心 GA
az servicebus namespace network-rule-set create

建立命名空間的 NetworkRuleSet。

核心 GA
az servicebus namespace network-rule-set ip-rule

在 networkruleSet 中管理命名空間的 Azure ServiceBus ip-rules。

核心 GA
az servicebus namespace network-rule-set ip-rule add

為命名空間的網路規則新增IP規則。

核心 GA
az servicebus namespace network-rule-set ip-rule remove

從命名空間的網路規則中移除Ip-Rule。

核心 GA
az servicebus namespace network-rule-set list

列出命名空間的 NetworkRuleSet 清單。

核心 GA
az servicebus namespace network-rule-set show

取得命名空間的 NetworkRuleSet。

核心 GA
az servicebus namespace network-rule-set update

更新命名空間的 NetworkRuleSet。

核心 GA
az servicebus namespace network-rule-set virtual-network-rule

在 networkruleSet 中管理命名空間的 Azure ServiceBus 子網規則。

核心 GA
az servicebus namespace network-rule-set virtual-network-rule add

為命名空間的網路規則新增虛擬網路規則。

核心 GA
az servicebus namespace network-rule-set virtual-network-rule remove

拿掉命名空間的網路規則。

核心 GA
az servicebus namespace private-endpoint-connection

管理 servicebus 命名空間私人端點連線。

核心 GA
az servicebus namespace private-endpoint-connection approve

核准 servicebus 命名空間的私人端點連線要求。

核心 GA
az servicebus namespace private-endpoint-connection create

建立服務命名空間的 PrivateEndpoint 連線 ion。

核心 GA
az servicebus namespace private-endpoint-connection delete

刪除 servicebus 命名空間的私人端點連線要求。

核心 GA
az servicebus namespace private-endpoint-connection list

列出命名空間內可用的 PrivateEndpoint 連線 ion。

核心 GA
az servicebus namespace private-endpoint-connection reject

拒絕 servicebus 命名空間的私人端點連線要求。

核心 GA
az servicebus namespace private-endpoint-connection show

取得指定之私人端點 連線 的描述。

核心 GA
az servicebus namespace private-endpoint-connection update

更新服務命名空間的 PrivateEndpoint 連線 ion。

核心 GA
az servicebus namespace private-endpoint-connection wait

將 CLI 置於等候狀態,直到符合條件為止。

核心 GA
az servicebus namespace private-link-resource

管理 servicebus 命名空間私人鏈接資源。

核心 GA
az servicebus namespace private-link-resource show

列出支援 Privatelinks 的資源清單。

核心 GA
az servicebus namespace show

取得指定命名空間的描述。

核心 GA
az servicebus namespace update

更新服務命名空間。 建立之後,此命名空間的資源指令清單是不可變的。 此作業是等冪的。

核心 GA
az servicebus namespace wait

將 CLI 置於等候狀態,直到符合條件為止。

核心 GA

az servicebus namespace create

建立 服務匯流排 命名空間。

az servicebus namespace create --name
                               --resource-group
                               [--alternate-name]
                               [--capacity {1, 16, 2, 4, 8}]
                               [--disable-local-auth {false, true}]
                               [--encryption-config]
                               [--infra-encryption {false, true}]
                               [--location]
                               [--mi-system-assigned {false, true}]
                               [--mi-user-assigned]
                               [--min-tls {1.0, 1.1, 1.2}]
                               [--no-wait]
                               [--premium-messaging-partitions]
                               [--public-network {Disabled, Enabled}]
                               [--sku {Basic, Premium, Standard}]
                               [--tags]
                               [--zone-redundant {false, true}]

範例

建立 服務匯流排 命名空間。

az servicebus namespace create --resource-group myresourcegroup --name mynamespace --location westus --tags tag1=value1 tag2=value2 --sku Standard

建立已啟用身分識別和加密的新命名空間。

az servicebus namespace create --resource-group myresourcegroup --name mynamespace --location westus --sku Premium --mi-user-assigned /subscriptions/{subscriptionId}/resourceGroups/{resourcegroup}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/MSIName --encryption-config key-name=key1 key-vault-uri=https://mykeyvault.vault.azure.net/ user-assigned-identity=/subscriptions/{subscriptionId}}/resourceGroups/{resourcegroup}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/MSIName --encryption-config key-name=key1 key-vault-uri=https://mykeyvault.vault.azure.net/ user-assigned-identity=/subscriptions/{subscriptionId}}/resourceGroups/{resourcegroup}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/MSIName

必要參數

--name -n

命名空間的名稱。

--resource-group -g

資源群組的名稱。 您可以使用 來設定預設群組 az configure --defaults group=<name>

選擇性參數

--alternate-name

別名和命名空間名稱相同時指定的替代名稱。

--capacity

訊息單位數目。 此屬性僅適用於 進階版 SKU 的命名空間。

接受的值: 1, 16, 2, 4, 8
--disable-local-auth

布爾值,指出是否為 服務匯流排 啟用/停用 SAS 驗證。

接受的值: false, true
--encryption-config

KeyVaultProperties 對象的清單。

--infra-encryption

布爾值,指出基礎結構加密是否為雙重加密。

接受的值: false, true
--location -l

位置。​​ 來自的值: az account list-locations。 您可以使用 az configure --defaults location=<location> 設定預設位置。

--mi-system-assigned

啟用系統指派的身分識別。

接受的值: false, true
--mi-user-assigned

使用者指派的身分識別標識碼清單。

--min-tls --minimum-tls-version

叢集支援的最低 TLS 版本,例如 1.2。

接受的值: 1.0, 1.1, 1.2
--no-wait

請勿等候長時間執行的作業完成。

預設值: False
--premium-messaging-partitions --premium-partitions
預覽

服務匯流排 命名空間的數據分割數目。 此屬性僅適用於 進階版 SKU 命名空間。 默認值為 1,可能的值為 1、2 和 4。

--public-network --public-network-access

這會判斷是否允許透過公用網路傳輸流量。 默認會啟用。 如果值為 SecuredByPerimeter,則輸入和輸出通訊是由網路安全性周邊和配置檔的存取規則所控制。

接受的值: Disabled, Enabled
--sku

命名空間 SKU。

接受的值: Basic, Premium, Standard
預設值: Standard
--tags

以空格分隔的標記:key[=value] [key[=value] ...]。使用 「清除現有的標記」。

--zone-redundant

啟用此屬性會在支援的可用性區域中建立 ServiceBus 區域備援命名空間。

接受的值: false, true
全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az servicebus namespace delete

刪除現有的命名空間。 此作業也會移除命名空間下的所有相關聯資源。

az servicebus namespace delete [--ids]
                               [--name]
                               [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                               [--resource-group]
                               [--subscription]

範例

刪除 服務匯流排 命名空間

az servicebus namespace delete --resource-group myresourcegroup --name mynamespace

選擇性參數

--ids

一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。

--name --namespace-name -n

命名空間名稱。

--no-wait

請勿等候長時間執行的作業完成。

接受的值: 0, 1, f, false, n, no, t, true, y, yes
--resource-group -g

resourceGroup 名稱。

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az servicebus namespace exists

檢查提供命名空間名稱的可用性。

az servicebus namespace exists --name

必要參數

--name

檢查命名空間名稱可用性的 Name 和命名空間名稱只能包含字母、數位和連字元。 命名空間必須以字母開頭,且結尾必須是字母或數位。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az servicebus namespace list

依資源群組列出訂用帳戶內的所有可用命名空間,以及不論資源群組為何。

az servicebus namespace list [--resource-group]

範例

列出資源群組底下的 服務匯流排 命名空間。

az servicebus namespace list --resource-group myresourcegroup

列出訂用帳戶底下的 服務匯流排 命名空間

az servicebus namespace list

選擇性參數

--resource-group -g

資源群組的名稱。 您可以使用 來設定預設群組 az configure --defaults group=<name>

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az servicebus namespace show

取得指定命名空間的描述。

az servicebus namespace show [--ids]
                             [--name]
                             [--resource-group]
                             [--subscription]

範例

會顯示命名空間詳細數據。

az servicebus namespace show --resource-group myresourcegroup --name mynamespace

選擇性參數

--ids

一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。

--name --namespace-name -n

命名空間名稱。

--resource-group -g

resourceGroup 名稱。

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az servicebus namespace update

更新服務命名空間。 建立之後,此命名空間的資源指令清單是不可變的。 此作業是等冪的。

az servicebus namespace update [--add]
                               [--alternate-name]
                               [--capacity]
                               [--connections]
                               [--disable-local-auth {0, 1, f, false, n, no, t, true, y, yes}]
                               [--encryption]
                               [--force-string {0, 1, f, false, n, no, t, true, y, yes}]
                               [--identity]
                               [--ids]
                               [--minimum-tls-version {1.0, 1.1, 1.2}]
                               [--name]
                               [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                               [--premium-messaging-partitions]
                               [--public-network-access {Disabled, Enabled, SecuredByPerimeter}]
                               [--remove]
                               [--resource-group]
                               [--set]
                               [--sku {Basic, Premium, Standard}]
                               [--subscription]
                               [--tags]
                               [--tier {Basic, Premium, Standard}]

範例

更新 服務匯流排 命名空間

az servicebus namespace update --resource-group myresourcegroup --name mynamespace --tags tag=value
az az servicebus namespace update --name mynamespace --resource-group myresourcegroup --sku Basic

選擇性參數

--add

藉由指定路徑和索引鍵值組,將物件加入物件清單。 範例:--add property.listProperty <key=value、string 或 JSON 字串>。

--alternate-name

命名空間的替代名稱。

--capacity

服務總線進階命名空間的傳訊單位。 有效的容量是 {1, 2, 4, 8, 16} 個屬性的倍數。premiumMessagingPartitions 設定。 例如,如果 properties.premiumMessagingPartitions 是 1,則可能的容量值為 1、2、4、8 和 16。 如果 properties.premiumMessagingPartitions 是 4,則可能的容量值為 4、8、16、32 和 64。

--connections --private-endpoint-connections

私人端點連線的清單。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

--disable-local-auth

此屬性會停用 服務匯流排 命名空間的 SAS 驗證。

接受的值: 0, 1, f, false, n, no, t, true, y, yes
--encryption

BYOK 加密描述的屬性支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

--force-string

使用 'set' 或 'add' 時,請保留字串常值,而不是嘗試轉換成 JSON。

接受的值: 0, 1, f, false, n, no, t, true, y, yes
--identity

BYOK 身分識別描述的屬性支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

--ids

一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。

--minimum-tls-version

叢集支援的最低 TLS 版本,例如 『1.2』。

接受的值: 1.0, 1.1, 1.2
--name --namespace-name -n

命名空間名稱。

--no-wait

請勿等候長時間執行的作業完成。

接受的值: 0, 1, f, false, n, no, t, true, y, yes
--premium-messaging-partitions --premium-partitions

服務匯流排 命名空間的數據分割數目。 此屬性僅適用於 進階版 SKU 命名空間。 默認值為 1,可能的值為 1、2 和 4。

--public-network-access

這會判斷是否允許透過公用網路傳輸流量。 默認會啟用。

接受的值: Disabled, Enabled, SecuredByPerimeter
--remove

從清單中移除屬性或專案。 範例:--remove property.list OR --remove 屬性ToRemove。

--resource-group -g

resourceGroup 名稱。

--set

指定要設定的屬性路徑和值,以更新物件。 範例:--set property1.property2=。

--sku

此 SKU 的名稱。

接受的值: Basic, Premium, Standard
--subscription

訂用帳戶的名稱或標識碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--tags

資源標籤支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

--tier

這個特定 SKU 的計費層。

接受的值: Basic, Premium, Standard
全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az servicebus namespace wait

將 CLI 置於等候狀態,直到符合條件為止。

az servicebus namespace wait [--created]
                             [--custom]
                             [--deleted]
                             [--exists]
                             [--ids]
                             [--interval]
                             [--name]
                             [--resource-group]
                             [--subscription]
                             [--timeout]
                             [--updated]

選擇性參數

--created

請等候在 'Succeeded' 使用 'provisioningState' 建立。

預設值: False
--custom

等到條件符合自定義 JMESPath 查詢為止。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。

--deleted

等到刪除為止。

預設值: False
--exists

等候資源存在。

預設值: False
--ids

一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。

--interval

輪詢間隔以秒為單位。

預設值: 30
--name --namespace-name -n

命名空間名稱。

--resource-group -g

resourceGroup 名稱。

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--timeout

以秒為單位的等候上限。

預設值: 3600
--updated

等到 provisioningState 更新為 'Succeeded'。

預設值: False
全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。