az image builder identity

管理映射產生器範本的身分識別。

命令

名稱 Description 類型 狀態
az image builder identity assign

將受控識別新增至現有的映射產生器範本。 目前僅支援一個使用者身分識別。

核心 GA
az image builder identity remove

從現有的映射產生器範本中移除受控識別。

核心 GA
az image builder identity show

顯示映射產生器範本的受控識別。

核心 GA

az image builder identity assign

將受控識別新增至現有的映射產生器範本。 目前僅支援一個使用者身分識別。

az image builder identity assign [--defer]
                                 [--ids]
                                 [--name]
                                 [--resource-group]
                                 [--subscription]
                                 [--user-assigned]

範例

將使用者指派的受控識別新增至現有的映射產生器範本。

az image builder identity assign --name MyImageBuilderTemplate --resource-group MyResourceGroup --user-assigned MyAssignedId

選擇性參數

--defer

暫時將物件儲存在本機快取中,而不是傳送至 Azure。 使用 az cache 命令來檢視/清除。

--ids

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

--name -n

映射範本的名稱。

--resource-group -g

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

--subscription

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

--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 image builder identity remove

從現有的映射產生器範本中移除受控識別。

az image builder identity remove [--defer]
                                 [--ids]
                                 [--name]
                                 [--resource-group]
                                 [--subscription]
                                 [--user-assigned]
                                 [--yes]

範例

從現有的映射產生器範本中移除使用者指派的受控識別。

az image builder identity remove --name MyImageBuilderTemplate --resource-group MyResourceGroup --user-assigned MyAssignedId

從現有的映射產生器中移除所有使用者指派的受控識別。

az image builder identity remove --name MyImageBuilderTemplate --resource-group MyResourceGroup --user-assigned

選擇性參數

--defer

暫時將物件儲存在本機快取中,而不是傳送至 Azure。 使用 az cache 命令來檢視/清除。

--ids

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

--name -n

映射範本的名稱。

--resource-group -g

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

--subscription

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

--user-assigned

指定映射範本的一個使用者指派的身分識別(名稱或識別碼、空格分隔)。

--yes -y

不提示確認。

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

az image builder identity show

顯示映射產生器範本的受控識別。

az image builder identity show [--defer]
                               [--ids]
                               [--name]
                               [--resource-group]
                               [--subscription]

範例

顯示映射產生器範本的受控識別。

az image builder identity show --name MyImageBuilderTemplate --resource-group MyResourceGroup

選擇性參數

--defer

暫時將物件儲存在本機快取中,而不是傳送至 Azure。 使用 az cache 命令來檢視/清除。

--ids

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

--name -n

映射範本的名稱。

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