Get-AzOperationalInsightsWorkspaceManagementGroup
取得連線至工作區的管理群組詳細數據。
語法
Get-AzOperationalInsightsWorkspaceManagementGroup
[-ResourceGroupName] <String>
[-Name] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get-AzOperationalInsightsWorkspaceManagementGroup Cmdlet 會列出聯機至工作區的管理群組。
範例
範例 1:依工作區名稱取得管理群組
Get-AzOperationalInsightsWorkspaceManagementGroup -ResourceGroupName "ContosoResourceGroup" -Name "MyWorkspace"
此命令會在名為 ContosoResourceGroup 的資源群組中,取得名為 MyWorkspace 的工作區管理群組。
範例 2:使用管線取得管理群組
Get-AzOperationalInsightsWorkspace -ResourceGroupName "ContosoResourceGroup" -Name "MyWorkspace" | Get-AzOperationalInsightsWorkspaceManagementGroup
此命令會使用 Get-AzOperationalInsightsWorkspace Cmdlet 來取得名為 MyWorkspace 的工作區,然後將工作區傳遞至目前的 Cmdlet,以取得該工作區的管理群組。
參數
-DefaultProfile
用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-Name
指定工作區名稱。
類型: | String |
Position: | 1 |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-ResourceGroupName
指定 Azure 資源群組的名稱。
類型: | String |
Position: | 0 |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |