Get-AzPurviewAccount
取得帳戶
語法
Get-AzPurviewAccount
[-SubscriptionId <String[]>]
[-SkipToken <String>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzPurviewAccount
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzPurviewAccount
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-SkipToken <String>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzPurviewAccount
-InputObject <IPurviewIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
取得帳戶
範例
範例 1:列出所有 Purview 帳戶
Get-AzPurviewAccount
IdentityPrincipalId IdentityTenantId IdentityType Location Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType
------------------- ---------------- ------------ -------- ---- ------------------- ------------------- --------
xxxxxxxx-a087-43aa-8a7f-c17a4bbd4d36 xxxxxxxx-38d6-4fb2-bad9-b7b93a3e9c5a SystemAssigned eastus pvac 8/4/2021 8:34:28 AM xxx@microsoft.com User
xxxxxxxx-bbe7-4506-a9c4-4d602d8e4e1c xxxxxxxx-38d6-4fb2-bad9-b7b93a3e9c5a SystemAssigned eastus purview-test 8/9/2021 9:38:47 AM xxxxxxxxx@microsoft.com User
xxxxxxxx-7956-4978-87e8-9ddd82cfe2b7 xxxxxxxx-38d6-4fb2-bad9-b7b93a3e9c5a SystemAssigned eastus test-pa 8/17/2021 6:18:57 AM xxxxxxxxxx@microsoft.com User
列出所有 purview 帳戶。
範例 2:依資源組名和名稱取得 Purview 帳戶
Get-AzPurviewAccount -Name test-pa -ResourceGroupName test-rg
IdentityPrincipalId IdentityTenantId IdentityType Location Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt
------------------- ---------------- ------------ -------- ---- ------------------- ------------------- ----------------------- -----------------
xxxxxxxx-7956-4978-87e8-9ddd82cfe2b7 xxxxxxxx-38d6-4fb2-bad9-b7b93a3e9c5a SystemAssigned eastus test-pa 8/17/2021 6:18:57 AM xxxxxxxxxx@microsoft.com User 8/17/2021 6:18:5…
在資源群組 test-pa 中取得 purview 帳戶名稱 test-rg
範例 3:列出指定資源群組中的 Purview 帳戶
Get-AzPurviewAccount -ResourceGroupName test-rg
IdentityPrincipalId IdentityTenantId IdentityType Location Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt
------------------- ---------------- ------------ -------- ---- ------------------- ------------------- ----------------------- -----------------
xxxxxxxx-7956-4978-87e8-9ddd82cfe2b7 xxxxxxxx-38d6-4fb2-bad9-b7b93a3e9c5a SystemAssigned eastus test-pa 8/17/2021 6:18:57 AM xxxxxxxxxx@microsoft.com User 8/17/2021 6:18:5…
列出資源群組 test-pa 中的 purview 帳戶
範例 4:依 InputObject 取得 Purview 帳戶
$got = Get-AzPurviewAccount -Name test-pa -ResourceGroupName test-rg
Get-AzADDomainService -InputObject $got
IdentityPrincipalId IdentityTenantId IdentityType Location Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt
------------------- ---------------- ------------ -------- ---- ------------------- ------------------- ----------------------- -----------------
xxxxxxxx-7956-4978-87e8-9ddd82cfe2b7 xxxxxxxx-38d6-4fb2-bad9-b7b93a3e9c5a SystemAssigned eastus test-pa 8/17/2021 6:18:57 AM xxxxxxxxxx@microsoft.com User 8/17/2021 6:18:5…
依 InputObject 取得 purview 帳戶
參數
-DefaultProfile
DefaultProfile 參數無法運作。 如果針對不同的訂用帳戶執行 Cmdlet,請使用 SubscriptionId 參數。
類型: | PSObject |
別名: | AzureRMContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-InputObject
Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
類型: | IPurviewIdentity |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-Name
帳戶的名稱。
類型: | String |
別名: | AccountName |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-ResourceGroupName
資源組名。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-SkipToken
略過令牌。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-SubscriptionId
訂用帳戶標識碼
類型: | String[] |
Position: | Named |
預設值: | (Get-AzContext).Subscription.Id |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |