您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

Get-AzActionGroup

Gets action group(s).

Syntax

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

Description

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

Examples

Example 1: Get an action group by subscription ID

PS C:\>Get-AzActionGroup

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

Example 2: Get action groups for the given resource group

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

This command lists action groups for the given resource group.

Example 3: Get an action group.

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

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

Parameters

-DefaultProfile

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

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

The name of the action group.

Type:String
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
-ResourceGroupName

The resource group name

Type:String
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

Inputs

String

Outputs

PSActionGroupResource