In my previous article, I discussed about how to build GraphQL based Serverless API in Azure. If you haven’t already read that, you may read it from here:

In this chapter, I will talk about how to deploy the function we built to Azure cloud and implement OAuth2 security for the API.

Below is the high level diagram of what we are going to cover in this article,

Let’s create our function App first.

Create the Azure Function App

To deploy our function, I will use Azure CLI Command. First let’s log in to Azure subscription.

Open your console and run

az login

This will prompt you to login to your Azure subscription. Provide your user name and password. Once you authenticated, you may close the browser.

To deploy our function, we need following resources to be create in prior:

  • Azure Resource Group
  • Azure storage account
  • Azure function app

#graphql #azure #serverless #api

Build Serverless API with GraphQL and Azure — Part II
1.10 GEEK