Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Learning Azure Functions

You're reading from  Learning Azure Functions

Product type Book
Published in Sep 2017
Publisher Packt
ISBN-13 9781787122932
Pages 240 pages
Edition 1st Edition
Languages
Concepts

Creating a JavaScript function triggered by a Webhook


Let's create a JavaScript function in Microsoft Azure using Azure Portal:

  1. Log in to the Azure portal and navigate to the function app, which we created in the previous chapter.
  2. Click on the + sign to add a new Azure Function. Set the language as Javascript and the template as Generic Webhook, as shown in the following screenshot:
  1. Now provide a name for the function and click on Create:
  1. A default template will be created, as shown in the following screenshot:
  1. Get the function URL and copy it. We will use it later in the chapter. Save it in a notepad:
  1. Now, we will create a Webhook endpoint in an activity log alert in Azure Monitor. Click on Monitor, as shown in the following screenshot:
  1. Now we need to create an alert. Click on Alerts and then on Add activity log alert:
  1. Provide the following details:
  1. Here's a description of the terms in the preceding screenshot:
    • * Activity log alert name: Name of the activity log alert.
    • * Subscription: Microsoft Azure...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}