Publishing our Function App
Let's publish our previously created Function application.
Publishing with PowerShell
Since we have already created the Function application locally, deploying to the cloud is a relatively simple process.
- We will first create our resource group for the Function app. We will name it
middleware-function-app-rg
as we discussed earlier. - Next, we will create a storage account that the Function app will use. We will name it
middlewarefuncstore
. - 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 itAzureValidationMiddleware
. - 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 withSimplySql
.
Get hands-on with 1400+ tech skills courses.