How to instantiate edge functions in your application

Instantiate serverless functions directly within your edge application.

This guide uses the pre-configured Azion - Hello World function, which is linked to your account. You can repeat this process using any function already available on Azion Marketplace or develop your own function.


  1. Access Azion Console > Edge Application.
  2. Click the edge application you want to configure.
  3. Activate the Edge Functions module to enable functions.
  4. Click the Save button.
  5. Go to the Functions Instances tab.
  6. Click + Function Instance.
  7. Name your function instance. For example: Hello World function.
  8. Select the Azion - Hello World function.
  9. Click the Save button.

The functions page now lists the newly created instance. However, this new function isn’t yet active in your application. You need to define what will trigger the function in your application. To invoke the instantiated function in the URI xxxxxxxxxx.map.azionedge.net/hello-world:

  1. Still on the Edge Application page, navigate to the Rules Engine tab.
  2. Click the + Rule button.
  3. Give a name for your rule.
  4. Select Request Phase.
  5. Under the Criteria section, select the variable ${uri}.
  1. As a comparison operator, select is equal.
  2. As an argument, add /hello-world.
  3. In the Behaviors section, select Run Function from the behavior list.
  4. Select the Hello World function.
  5. Click the Save button.

To see your function running, access your application using its domain and the URI set in the rule, which is in the format xxxxxxxxx.map.azionedge.net/hello-world.


Contributors