Get-AzPurviewDefaultAccount
取得範圍的預設帳戶。
語法
Get-AzPurviewDefaultAccount
-ScopeTenantId <String>
-ScopeType <ScopeType>
[-Scope <String>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
取得範圍的預設帳戶。
範例
範例 1:取得租使用者範圍的默認帳戶。
Get-AzPurviewDefaultAccount -ScopeTenantId xxxxxxxx-38d6-4fb2-bad9-b7b93a3e9c5a -ScopeType Tenant
AccountName ResourceGroupName Scope ScopeTenantId ScopeType SubscriptionId
----------- ----------------- ----- ------------- --------- --------------
test-pa test-rg xxxxxxxx-38d6-4fb2-bad9-b7b93a3e9c5a xxxxxxxx-38d6-4fb2-bad9-b7b93a3e9c5a Tenant xxxxxxxx-1bf0-4dda-aec3
取得範圍租用戶的預設帳戶
參數
-DefaultProfile
DefaultProfile 參數無法運作。 如果針對不同的訂用帳戶執行 Cmdlet,請使用 SubscriptionId 參數。
類型: | PSObject |
別名: | AzureRMContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-Scope
範圍物件的標識碼,例如,如果範圍是 “Subscription”,則它是該訂用帳戶的標識符。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-ScopeTenantId
租用戶標識碼。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-ScopeType
默認帳戶的範圍。
類型: | ScopeType |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |