Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Azure Functions

You're reading from   Learning Azure Functions Build scalable cloud systems with serverless architecture

Arrow left icon
Product type Paperback
Published in Sep 2017
Publisher Packt
ISBN-13 9781787122932
Length 240 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Authors (2):
Arrow left icon
Mitesh Soni Mitesh Soni
Author Profile Icon Mitesh Soni
Mitesh Soni
Manisha Yadav Manisha Yadav
Author Profile Icon Manisha Yadav
Manisha Yadav
Arrow right icon
View More author details
Toc

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 $19.99/month. Cancel anytime