Action - Azure Function
This feature adds support for calling Azure functions when an automation stitch is triggered.
To configure an Azure function using the GUI:
- Go to Security Fabric > Automation.
- Configure an Automation Stitch and set the Action to Azure-function.

When the automation stitch is triggered, FortiGate shows the stitch trigger time.

To configure an Azure function using the CLI:
config system automation-action
edit "azure_function"
set action-type azure-function
set azure-app "liang01-no-delete-jlum"
set azure-function "headersResponse"
set azure-function-authorization function
set azure-api-key xxxxxx
set headers "header1:value1" "header2:value2"
next
end
config system automation-trigger
edit "auto-azure"
set event-type security-rating-summary
next
end
config system automation-stitch
edit "auto-azure"
set trigger "auto-azure"
set action "azure_function"
next
end
To see the function log in Azure:
-
The function log shows that the configured function was called, executed, and finished.