< Back
New-AzureRmActionGroupReceiver
Post
NAME New-AzureRmActionGroupReceiver
SYNOPSIS
Creates an new action group receiver.
SYNTAX
New-AzureRmActionGroupReceiver [-CountryCode <String>] [-DefaultProfile <IAzureContextContainer>] -Name <String> -PhoneNumber <String>
[-SmsReceiver] [<CommonParameters>]
New-AzureRmActionGroupReceiver [-DefaultProfile <IAzureContextContainer>] -EmailAddress <String> [-EmailReceiver] -Name <String>
[<CommonParameters>]
New-AzureRmActionGroupReceiver [-DefaultProfile <IAzureContextContainer>] -Name <String> -ServiceUri <String> [-WebhookReceiver]
[<CommonParameters>]
DESCRIPTION
The New-AzureRmActionGroupReceiver cmdlet creates new action group receiver in memory.
PARAMETERS
-CountryCode <String>
Specifies the country code for the SMS receiver.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-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
-EmailAddress <String>
Specifies the address for the Email receiver.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-EmailReceiver [<SwitchParameter>]
Specifies to create an Email receiver
Required? false
Position? named
Default value False
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Name <String>
Specifies the name for the receiver.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-PhoneNumber <String>
Specifies the phone number for the SMS receiver.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ServiceUri <String>
Specifies the URI for the webhook receiver.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-SmsReceiver [<SwitchParameter>]
Specifies to create a SMS receiver
Required? false
Position? named
Default value False
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-WebhookReceiver [<SwitchParameter>]
Specifies to create a webhook receiver
Required? false
Position? named
Default value False
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
Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupReceiverBase
NOTES
Example 1: Create a new Email receiver in memory.
PS C:\\>$emailReceiver = New-AzureRmActionGroupReceiver -Name 'emailReceiver1' -EmailReceiver -EmailAddress 'user1@example.com'
This command creates a new Email receiver in memory.
Example 2: Create a new SMS receiver in memory.
PS C:\\>$smsReceiver = New-AzureRmActionGroupReceiver -Name 'smsReceiver1' -SmsReceiver -CountryCode '1' -PhoneNumber '5555555555'
This command creates a new SMS receiver in memory.
Example 3: Create a new webhook receiver in memory.
PS C:\\>$webhookReceiver = New-AzureRmActionGroupReceiver -Name 'webhookReceiver1' -SMSReceiver -ServiceUri 'http://test.com'
This command creates a new webhook receiver in memory.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... upreceiver
Set-AzureRmActionGroup
Get-AzureRmActionGroup
Remove-AzureRmActionGroup
SYNOPSIS
Creates an new action group receiver.
SYNTAX
New-AzureRmActionGroupReceiver [-CountryCode <String>] [-DefaultProfile <IAzureContextContainer>] -Name <String> -PhoneNumber <String>
[-SmsReceiver] [<CommonParameters>]
New-AzureRmActionGroupReceiver [-DefaultProfile <IAzureContextContainer>] -EmailAddress <String> [-EmailReceiver] -Name <String>
[<CommonParameters>]
New-AzureRmActionGroupReceiver [-DefaultProfile <IAzureContextContainer>] -Name <String> -ServiceUri <String> [-WebhookReceiver]
[<CommonParameters>]
DESCRIPTION
The New-AzureRmActionGroupReceiver cmdlet creates new action group receiver in memory.
PARAMETERS
-CountryCode <String>
Specifies the country code for the SMS receiver.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-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
-EmailAddress <String>
Specifies the address for the Email receiver.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-EmailReceiver [<SwitchParameter>]
Specifies to create an Email receiver
Required? false
Position? named
Default value False
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Name <String>
Specifies the name for the receiver.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-PhoneNumber <String>
Specifies the phone number for the SMS receiver.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ServiceUri <String>
Specifies the URI for the webhook receiver.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-SmsReceiver [<SwitchParameter>]
Specifies to create a SMS receiver
Required? false
Position? named
Default value False
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-WebhookReceiver [<SwitchParameter>]
Specifies to create a webhook receiver
Required? false
Position? named
Default value False
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
Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupReceiverBase
NOTES
Example 1: Create a new Email receiver in memory.
PS C:\\>$emailReceiver = New-AzureRmActionGroupReceiver -Name 'emailReceiver1' -EmailReceiver -EmailAddress 'user1@example.com'
This command creates a new Email receiver in memory.
Example 2: Create a new SMS receiver in memory.
PS C:\\>$smsReceiver = New-AzureRmActionGroupReceiver -Name 'smsReceiver1' -SmsReceiver -CountryCode '1' -PhoneNumber '5555555555'
This command creates a new SMS receiver in memory.
Example 3: Create a new webhook receiver in memory.
PS C:\\>$webhookReceiver = New-AzureRmActionGroupReceiver -Name 'webhookReceiver1' -SMSReceiver -ServiceUri 'http://test.com'
This command creates a new webhook receiver in memory.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... upreceiver
Set-AzureRmActionGroup
Get-AzureRmActionGroup
Remove-AzureRmActionGroup