az purview default-account

注意

此參考是 Azure CLI 的 purview 延伸模組的一部分 (2.15.0 版或更高版本)。 擴充功能會在您第一次執行 az purview default-account 命令時自動安裝。 深入了解擴充功能。

命令群組 'purview' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

使用 purview 管理預設帳戶。

命令

名稱 Description 類型 狀態
az purview default-account remove

從範圍中移除預設帳戶。

擴充 預覽版
az purview default-account set

設定範圍的預設帳戶。

擴充 預覽版
az purview default-account show

取得範圍的預設帳戶。

擴充 預覽版

az purview default-account remove

預覽

命令群組 'purview' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

從範圍中移除預設帳戶。

az purview default-account remove --scope-tenant-id
                                  --scope-type {Subscription, Tenant}
                                  [--scope]

範例

DefaultAccounts_Remove

az purview default-account remove --scope "12345678-1234-1234-12345678abc" --scope-tenant-id "12345678-1234-1234-12345678abc" --scope-type "Tenant"

必要參數

--scope-tenant-id

租使用者識別碼。

--scope-type

預設帳戶的範圍。

接受的值: Subscription, Tenant

選擇性參數

--scope

範圍物件的識別碼,例如,如果範圍是 「Subscription」,則它是該訂用帳戶的識別碼。

全域參數
--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 purview default-account set

預覽

命令群組 'purview' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

設定範圍的預設帳戶。

az purview default-account set --scope-tenant-id
                               --subscription-id
                               [--account-name]
                               [--resource-group]
                               [--scope]
                               [--scope-type {Subscription, Tenant}]

範例

DefaultAccounts_Set

az purview default-account set --account-name "myDefaultAccount" --resource-group "rg-1" --scope "12345678-1234-1234-12345678abc" --scope-tenant-id "12345678-1234-1234-12345678abc" --scope-type "Tenant" --subscription-id "12345678-1234-1234-12345678aaa"

必要參數

--scope-tenant-id

設定預設帳戶的範圍租使用者。

--subscription-id

設定為預設值之帳戶的訂用帳戶識別碼。

選擇性參數

--account-name --name -n

設定為預設值的帳戶名稱。

--resource-group -g

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

--scope

範圍物件識別碼。 例如,子識別碼或租使用者識別碼。

--scope-type

設定預設帳戶的範圍。

接受的值: Subscription, Tenant
全域參數
--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 purview default-account show

預覽

命令群組 'purview' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

取得範圍的預設帳戶。

az purview default-account show --scope-tenant-id
                                --scope-type {Subscription, Tenant}
                                [--scope]

範例

DefaultAccounts_Get

az purview default-account show --scope "12345678-1234-1234-12345678abc" --scope-tenant-id "12345678-1234-1234-12345678abc" --scope-type "Tenant"

必要參數

--scope-tenant-id

租使用者識別碼。

--scope-type

預設帳戶的範圍。

接受的值: Subscription, Tenant

選擇性參數

--scope

範圍物件的識別碼,例如,如果範圍是 「Subscription」,則它是該訂用帳戶的識別碼。

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