共用方式為


Get-AzureRmPowerBIWorkspaceCollection

取得 Power BI 工作區集合。

警告

自 2024 年 2 月 29 日起,AzureRM PowerShell 模組已正式淘汰。 建議使用者從 AzureRM 遷移至 Az PowerShell 模組,以確保持續支援和更新。

雖然 AzureRM 模組可能仍可運作,但不再維護或支援它,但會根據用戶的判斷權和風險放置任何繼續使用。 如需轉換至 Az 模組的指引,請參閱我們的 移轉資源

語法

Get-AzureRmPowerBIWorkspaceCollection
   [[-ResourceGroupName] <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzureRmPowerBIWorkspaceCollection
   [-ResourceGroupName] <String>
   [-WorkspaceCollectionName] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Get-AzureRmPowerBIWorkspaceCollection Cmdlet 會取得 Azure 訂用帳戶和資源群組中的 Power BI 工作區集合,或依集合名稱取得。

範例

範例 1:取得資源群組中的所有工作區集合

PS C:\>Get-AzureRmPowerBIWorkspaceCollection -ResourceGroupName "ResourceGroup17"

此命令會取得屬於名為 ResourceGroup17 之資源群組的工作區集合。

範例 2:使用工作區集合的名稱取得工作區集合

PS C:\>Get-AzureRmPowerBIWorkspaceCollection -ResourceGroupName "ResourceGroup17" -WorkspaceCollectionName "WCN11"

此命令會取得指定資源群組中名為 WCN11 的工作區集合。

參數

-DefaultProfile

用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶

類型:IAzureContextContainer
別名:AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ResourceGroupName

指定此 Cmdlet 取得工作區集合的資源群組名稱。

類型:String
Position:0
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-WorkspaceCollectionName

指定此 Cmdlet 取得的 Power BI 工作區集合名稱。

類型:String
別名:Name, ResourceName
Position:1
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

輸入

String

輸出

PSWorkspaceCollection