你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

New-AzActionGroupReceiver

创建新的操作组接收器。

语法

New-AzActionGroupReceiver
   -Name <String>
   [-UseCommonAlertSchema]
   [-EmailReceiver]
   -EmailAddress <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
New-AzActionGroupReceiver
   -Name <String>
   [-UseCommonAlertSchema]
   [-SmsReceiver]
   [-CountryCode <String>]
   -PhoneNumber <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
New-AzActionGroupReceiver
   -Name <String>
   [-UseCommonAlertSchema]
   [-WebhookReceiver]
   -ServiceUri <String>
   [-UseAadAuth]
   [-ObjectId <String>]
   [-IdentifierUri <String>]
   [-TenantId <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
New-AzActionGroupReceiver
   -Name <String>
   [-UseCommonAlertSchema]
   [-ItsmReceiver]
   -WorkspaceId <String>
   -ConnectionId <String>
   -TicketConfiguration <String>
   -Region <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
New-AzActionGroupReceiver
   -Name <String>
   [-UseCommonAlertSchema]
   [-VoiceReceiver]
   [-VoiceCountryCode <String>]
   -VoicePhoneNumber <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
New-AzActionGroupReceiver
   -Name <String>
   [-UseCommonAlertSchema]
   [-ArmRoleReceiver]
   -RoleId <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
New-AzActionGroupReceiver
   -Name <String>
   [-UseCommonAlertSchema]
   [-AzureFunctionReceiver]
   -FunctionAppResourceId <String>
   -HttpTriggerUrl <String>
   -FunctionName <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
New-AzActionGroupReceiver
   -Name <String>
   [-UseCommonAlertSchema]
   [-LogicAppReceiver]
   -ResourceId <String>
   -CallbackUrl <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
New-AzActionGroupReceiver
   -Name <String>
   [-UseCommonAlertSchema]
   [-AutomationRunbookReceiver]
   -AutomationAccountId <String>
   -RunbookName <String>
   [-IsGlobalRunbook]
   -AutomationRunbookServiceUri <String>
   -WebhookResourceId <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
New-AzActionGroupReceiver
   -Name <String>
   [-UseCommonAlertSchema]
   [-AzureAppPushReceiver]
   -AzureAppPushEmailAddress <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

说明

New-AzActionGroupReceiver cmdlet 会在内存中创建新的操作组接收器。

示例

示例 1:在内存中创建新的Email接收器。

$emailReceiver = New-AzActionGroupReceiver -Name 'emailReceiver1' -EmailReceiver -EmailAddress 'user1@example.com'

此命令在内存中创建新的Email接收器。

示例 2:在内存中创建新的 SMS 接收器。

$smsReceiver = New-AzActionGroupReceiver -Name 'smsReceiver1' -SmsReceiver -CountryCode '1' -PhoneNumber '5555555555'

此命令在内存中创建新的 SMS 接收器。

示例 3:在内存中创建新的 Webhook 接收器。

$webhookReceiver = New-AzActionGroupReceiver -Name 'webhookReceiver1' -WebhookReceiver -ServiceUri 'http://test.com'

此命令在内存中创建新的 Webhook 接收器。

参数

-ArmRoleReceiver

创建 ArmRoleReceiver

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

-AutomationAccountId

AutomationAccountId

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

-AutomationRunbookReceiver

创建 AutomationRunbookReceiver

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

-AutomationRunbookServiceUri

应发送 Webhook 的 URI

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

-AzureAppPushEmailAddress

AzureAppPushEmailAddress

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

-AzureAppPushReceiver

创建 AzureAppPushReceiver

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

-AzureFunctionReceiver

创建 ArmRoleReceiver

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

-CallbackUrl

CallbackUrl

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

-ConnectionId

此接收器的 itsm 连接 ID

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

-CountryCode

指定短信接收方的国家/地区代码。

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

-DefaultProfile

用于与 Azure 通信的凭据、帐户、租户和订阅

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

-EmailAddress

指定Email接收方的地址。

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

-EmailReceiver

指定创建Email接收器

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

-FunctionAppResourceId

函数应用 resourceId

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

-FunctionName

functionName

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

-HttpTriggerUrl

httpTriggerUrl

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

-IdentifierUri

aad 身份验证的标识符 URI

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

-IsGlobalRunbook

指示此实例是否为全局 Runbook

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

-ItsmReceiver

创建 ItsmReceiver

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

-LogicAppReceiver

创建 LogicAppReceiver

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

-Name

指定接收方的名称。

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

-ObjectId

aad 身份验证的 Webhook 应用对象 ID

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

-PhoneNumber

指定短信接收方的电话号码。

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

-Region

此接收器的 itsm 区域

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

-ResourceId

ResourceId

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

-RoleId

接收方的 arm 角色 ID

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

-RunbookName

RunbookName

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

-ServiceUri

指定 Webhook 接收器的 URI。

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

-SmsReceiver

指定创建短信接收器

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

-TenantId

aad 身份验证的租户 ID

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

-TicketConfiguration

此接收器的 itsm TicketConfiguration

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

-UseAadAuth

用于添加身份验证的标志

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

-UseCommonAlertSchema

标志是否使用常见警报架构。 对于短信、Azure 应用推送、ITSM 和语音接收者,此值将被忽略。

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

-VoiceCountryCode

语音接收器的国家/地区代码

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

-VoicePhoneNumber

语音接收器的电话号码

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

-VoiceReceiver

创建语音接收器

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

-WebhookReceiver

指定创建 Webhook 接收器

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

-WebhookResourceId

WebhookResourceId

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

-WorkspaceId

此接收器的 itsm 工作区 ID

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

输入

String

SwitchParameter

输出

PSActionGroupReceiverBase