az containerapp dapr
管理 Dapr 的命令。 若要管理 Dapr 元件,請參閱 az containerapp env dapr-component。
命令
| 名稱 | Description | 類型 | 狀態 |
|---|---|---|---|
| az containerapp dapr disable |
停用容器應用程式的 Dapr。 拿掉現有的值。 |
Core | GA |
| az containerapp dapr enable |
為容器應用程式啟用 Dapr。 更新現有的值。 |
Core | GA |
az containerapp dapr disable
停用容器應用程式的 Dapr。 拿掉現有的值。
az containerapp dapr disable [--ids]
[--name]
[--resource-group]
[--subscription]
範例
停用容器應用程式的 Dapr。
az containerapp dapr disable -n my-containerapp -g MyResourceGroup
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
Containerapp 的名稱。 名稱必須包含小寫英數位元或 '-'、以字母開頭、以英數位元結尾、不能有 '--' 且必須小於 32 個字元。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az containerapp dapr enable
為容器應用程式啟用 Dapr。 更新現有的值。
az containerapp dapr enable [--dal --dapr-enable-api-logging]
[--dapr-app-id]
[--dapr-app-port]
[--dapr-app-protocol {grpc, http}]
[--dapr-http-max-request-size --dhmrs]
[--dapr-http-read-buffer-size --dhrbs]
[--dapr-log-level {debug, error, info, warn}]
[--ids]
[--name]
[--resource-group]
[--subscription]
範例
為容器應用程式啟用 Dapr。
az containerapp dapr enable -n my-containerapp -g MyResourceGroup --dapr-app-id my-app-id --dapr-app-port 8080
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
啟用 Dapr 側車的 API 記錄。
| 屬性 | 值 |
|---|---|
| 參數群組: | Dapr Arguments |
| 預設值: | False |
Dapr 應用程式識別碼。
| 屬性 | 值 |
|---|---|
| 參數群組: | Dapr Arguments |
Dapr 埠會使用 來與應用程式通訊。
| 屬性 | 值 |
|---|---|
| 參數群組: | Dapr Arguments |
Dapr 用來與應用程式通訊的通訊協定。
| 屬性 | 值 |
|---|---|
| 參數群組: | Dapr Arguments |
| 接受的值: | grpc, http |
以 MB 增加要求本文 HTTP 和 grpc 伺服器參數的大小上限,以處理大型檔案上傳。
| 屬性 | 值 |
|---|---|
| 參數群組: | Dapr Arguments |
傳送多 KB 標頭標頭時,要處理之 HTTP 標頭讀取緩衝區的大小上限。
| 屬性 | 值 |
|---|---|
| 參數群組: | Dapr Arguments |
設定 Dapr sidecar 的記錄層級。
| 屬性 | 值 |
|---|---|
| 參數群組: | Dapr Arguments |
| 接受的值: | debug, error, info, warn |
一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
Containerapp 的名稱。 名稱必須包含小寫英數位元或 '-'、以字母開頭、以英數位元結尾、不能有 '--' 且必須小於 32 個字元。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |