Creating a Function Subscription

Create a function subscription in Notifications.

Use a function subscription to invoke and run a function when a triggering condition occurs.

When the configured triggering condition occurs, an alarm, announcement subscription, event rule, connector, or contextual notification (alarm or event rule) sends (publishes) a message  to the configured topic, and Notifications delivers that message to active subscriptions in the topic. On receipt of the message, the function is invoked and run. For an example scenario, see Scenario A: Automatically Resizing VMs.

The Notifications service has no information about a function after it's invoked. For details, see the troubleshooting information in Function Not Invoked or Run.

Before You Begin

You must have FN_INVOCATION permission against the function to be able to add the function as a subscription to a topic. See Add a Function Subscription in Securing Notifications.