共用方式為


New-AzActionGroupAzureFunctionReceiverObject

建立 AzureFunctionReceiver 的記憶體內部物件。

語法

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

Description

建立 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 資源識別碼。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-FunctionName

函式應用程式中的函式名稱。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-HttpTriggerUrl

HTTP 觸發程式 URL,其中 HTTP 要求傳送至 。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-Name

azure 函式接收者的名稱。 名稱在動作群組內的所有接收者中必須是唯一的。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-UseCommonAlertSchema

指出是否要使用一般警示架構。

類型:Boolean
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

輸出

AzureFunctionReceiver