< Back

Get-AzureRmOperationalInsightsWorkspaceManagementGroups

Thu Apr 04, 2019 5:39 am

NAME Get-AzureRmOperationalInsightsWorkspaceManagementGroups



SYNOPSIS

Gets details of management groups connected to a workspace.





SYNTAX

Get-AzureRmOperationalInsightsWorkspaceManagementGroups [-ResourceGroupName] <String> [-Name] <String> [-DefaultProfile <IAzureContextContainer>]

[<CommonParameters>]





DESCRIPTION

The Get-AzureRmOperationalInsightsWorkspaceManagementGroups cmdlet lists the management groups that are connected to a workspace.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

Specifies the workspace name.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

Specifies the name of an Azure resource group.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None

This cmdlet does not accept any input.





OUTPUTS

System.Collections.Generic.List`1[Microsoft.Azure.Commands.OperationalInsights.Models.PSManagementGroup]







NOTES









Example 1: Get management groups by workspace name



PS C:\\>Get-AzureRmOperationalInsightsWorkspaceManagementGroups -ResourceGroupName "ContosoResourceGroup" -Name "MyWorkspace"



This command gets the management groups for the workspace named MyWorkspace in the resource group named ContosoResourceGroup.





Example 2: Get management groups by using the pipeline



PS C:\\>Get-AzureRmOperationalInsightsWorkspace -ResourceGroupName "ContosoResourceGroup" -Name "MyWorkspace" |

Get-AzureOperationalInsightsWorkspaceManagementGroups



This command uses the Get-AzureRmOperationalInsightsWorkspace cmdlet to get the workspace named MyWorkspace, and then passes the workspace to the

current cmdlet, which gets the management groups for that workspace.







RELATED LINKS

Online Version:

https://docs.microsoft.com/en-us/powers ... mentgroups

Azure Operational Insights Cmdlets

Get-AzureRmOperationalInsightsWorkspace