Publishing our Function App

Publishing with PowerShell

Since we have already created the Function application locally, deploying to the cloud is a relatively simple process.

  1. We will first create our resource group for the Function app. We will name it middleware-function-app-rg as we discussed earlier.
  2. Next, we will create a storage account that the Function app will use. We will name it middlewarefuncstore.
  3. After creating our storage, we will create our function app in Azure. This can be done by using the New-AzFunctionApp command. We will name it AzureValidationMiddleware.
  4. Finally, we will use the func azure functionapp publish command to publish. This command takes the name of the application as a parameter. We will use the same name we used before, AzureValidationMiddleware.

Below you will find the complete directory of our project so far. It is placed in the AzureValidationMiddlewareFunction folder. Let’s publish it!

The modules folder is not visible in the widget below, but it resides in our directory with SimplySql.

Get hands-on with 1400+ tech skills courses.