Example

We will create an HTTP request API which gives a weather report in JSON format in response. In this example, we will use Google Weather API, which is open source:

  1. Log into the Azure Portal and create Azure App. We have created Azure App in the previous chapter. Now we will create the function. Click on the + sign and select the language, as shown in the following screenshot:
  1. There are only two options available for us, that is HttpTrigger - Python and QueueTrigger - Python:
    • HttpTrigger - Python: This trigger gets fired whenever it receives an Http request
    • QueueTrigger - Python: This trigger gets fired when a message is added to ...

Get Learning Azure Functions now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.