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

New-AzActionGroupAzureFunctionReceiverObject

为 AzureFunctionReceiver 创建内存中对象。

语法

Default (默认值)

New-AzActionGroupAzureFunctionReceiverObject
    -FunctionAppResourceId <String>
    -FunctionName <String>
    -HttpTriggerUrl <String>
    -Name <String>
    [-UseCommonAlertSchema <Boolean>]
    [<CommonParameters>]

说明

为 AzureFunctionReceiver 创建内存中对象。

示例

示例 1:创建作组 Azure 函数接收器

New-AzActionGroupAzureFunctionReceiverObject -FunctionAppResourceId "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp" -FunctionName HttpTriggerCSharp1 -HttpTriggerUrl "http://test.me" -Name "sample azure function" -UseCommonAlertSchema $true
FunctionAppResourceId : /subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp
FunctionName          : HttpTriggerCSharp1
HttpTriggerUrl        : http://test.me
Name                  : sample azure function
UseCommonAlertSchema  : True

此命令创建作组 azure 函数接收器对象。

参数

-FunctionAppResourceId

函数应用的 Azure 资源 ID。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-FunctionName

函数应用中的函数名称。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-HttpTriggerUrl

HTTP 请求发送到的 http 触发器 URL。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Name

Azure 函数接收器的名称。 名称在操作组内的所有接收方中必须是唯一的。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-UseCommonAlertSchema

指示是否使用常见警报架构。

参数属性

类型:Boolean
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

CommonParameters

此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters

输出

AzureFunctionReceiver