< Back

Get-AzureRmActionGroup

Tue Jan 29, 2019 9:48 pm

NAME Get-AzureRmActionGroup



SYNOPSIS

Gets action group(s).





SYNTAX

Get-AzureRmActionGroup [-DefaultProfile <IAzureContextContainer>] -Name <String> -ResourceGroupName <String> [<CommonParameters>]



Get-AzureRmActionGroup [-DefaultProfile <IAzureContextContainer>] [-ResourceGroupName <String>] [<CommonParameters>]





DESCRIPTION

The Get-AzureRmActionGroup cmdlet gets one or more action groups.





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>

The name of the action group.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

The resource group name



Required? false

Position? named

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







OUTPUTS

<System.Collections.Generic.List`1[Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupResource]





None







NOTES









Example 1: Get an action group by subscription ID



PS C:\\>Get-AzureRmActionGroup



This command lists all the action group for the current subscription.





Example 2: Get action groups for the given resource group



PS C:\\>Get-AzureRmActionGroup -ResourceGroup "Default-activityLogAlerts"



This command lists action groups for the given resource group.





Example 3: Get an action group.



PS C:\\>Get-AzureRmActionGroup -ResourceGroup "Default-activityLogAlerts" -Name "actionGroup1"



This command lists one (a list with a single element) action group.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... ctiongroup

Set-AzureRmActionGroup

Remove-AzureRmActionGroup

New-AzureRmActionGroupReceiver