共用方式為


az ams account storage

管理Azure 媒體服務帳戶的儲存體。

命令

名稱 Description 類型 狀態
az ams account storage add

將次要儲存體附加至Azure 媒體服務帳戶。

核心 GA
az ams account storage remove

從Azure 媒體服務帳戶卸離次要儲存體。

核心 GA
az ams account storage set-authentication

設定附加至Azure 媒體服務帳戶的儲存體帳戶驗證。

核心 GA
az ams account storage sync-storage-keys

同步處理與Azure 媒體服務帳戶相關聯之儲存體帳戶的儲存體帳戶金鑰。

核心 GA

az ams account storage add

將次要儲存體附加至Azure 媒體服務帳戶。

az ams account storage add [--account-name]
                           [--ids]
                           [--name]
                           [--resource-group]
                           [--subscription]
                           [--system-assigned {false, true}]
                           [--user-assigned]

選擇性參數

--account-name -a

Azure 媒體服務帳戶的名稱。

--ids

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

--name -n

要與Azure 媒體服務帳戶中斷連結之次要儲存體帳戶的名稱或資源識別碼。

--resource-group -g

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

--subscription

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

--system-assigned

在儲存體帳戶上設定系統受控識別。

接受的值: false, true
預設值: False
--user-assigned

在儲存體帳戶上設定使用者受控識別。

全域參數
--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 ams account storage remove

從Azure 媒體服務帳戶卸離次要儲存體。

az ams account storage remove [--account-name]
                              [--ids]
                              [--name]
                              [--resource-group]
                              [--subscription]

選擇性參數

--account-name -a

Azure 媒體服務帳戶的名稱。

--ids

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

--name -n

要與Azure 媒體服務帳戶中斷連結之次要儲存體帳戶的名稱或資源識別碼。

--resource-group -g

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

--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 ams account storage set-authentication

設定附加至Azure 媒體服務帳戶的儲存體帳戶驗證。

az ams account storage set-authentication --storage-auth {ManagedIdentity, System}
                                          [--account-name]
                                          [--ids]
                                          [--resource-group]
                                          [--storage-account-id]
                                          [--subscription]
                                          [--system-assigned {false, true}]
                                          [--user-assigned]

必要參數

--storage-auth

與媒體服務帳戶相關聯的儲存體帳戶驗證類型。

接受的值: ManagedIdentity, System

選擇性參數

--account-name -a

Azure 媒體服務帳戶的名稱。

--ids

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

--resource-group -g

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

--storage-account-id

儲存體帳戶識別碼。

--subscription

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

--system-assigned

在儲存體帳戶上設定系統受控識別。

接受的值: false, true
預設值: False
--user-assigned

在儲存體帳戶上設定使用者受控識別。

全域參數
--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 ams account storage sync-storage-keys

同步處理與Azure 媒體服務帳戶相關聯之儲存體帳戶的儲存體帳戶金鑰。

az ams account storage sync-storage-keys --storage-account-id
                                         [--account-name]
                                         [--ids]
                                         [--resource-group]
                                         [--subscription]

必要參數

--storage-account-id

儲存體帳戶識別碼。

選擇性參數

--account-name -a

Azure 媒體服務帳戶的名稱。

--ids

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

--resource-group -g

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

--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 來取得完整偵錯記錄。