Get-AzActionGroup
Gets action group(s).
Sintaxis
BySubscriptionOrResourceGroup (Es el valor predeterminado).
Get-AzActionGroup
[-ResourceGroupName <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
ByName
Get-AzActionGroup
-ResourceGroupName <String>
-Name <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Get-AzActionGroup cmdlet gets one or more action groups.
Ejemplos
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.
Parámetros
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with azure
Propiedades del parámetro
Tipo: | IAzureContextContainer |
Valor predeterminado: | None |
Admite caracteres comodín: | False |
DontShow: | False |
Alias: | AzContext, AzureRmContext, AzureCredential |
Conjuntos de parámetros
(All)
Posición: | Named |
Mandatory: | False |
Valor de la canalización: | False |
Valor de la canalización por nombre de propiedad: | False |
Valor de los argumentos restantes: | False |
-Name
The name of the action group.
Propiedades del parámetro
Tipo: | String |
Valor predeterminado: | None |
Admite caracteres comodín: | False |
DontShow: | False |
Conjuntos de parámetros
ByName
Posición: | Named |
Mandatory: | True |
Valor de la canalización: | False |
Valor de la canalización por nombre de propiedad: | True |
Valor de los argumentos restantes: | False |
-ResourceGroupName
The resource group name
Propiedades del parámetro
Tipo: | String |
Valor predeterminado: | None |
Admite caracteres comodín: | False |
DontShow: | False |
Conjuntos de parámetros
BySubscriptionOrResourceGroup
Posición: | Named |
Mandatory: | False |
Valor de la canalización: | False |
Valor de la canalización por nombre de propiedad: | True |
Valor de los argumentos restantes: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.