共用方式為


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。