Deploying the functions to Azure
The final step in this chapter is to deploy the functions to Azure. You can do that as a part of a continuous integration/continuous deployment (CI/CD) pipeline – for example, with Azure DevOps. But the easiest way to deploy the functions, in this case, is to do it directly from Visual Studio. Perform the following steps to deploy the functions:
- Right-click on the
SticksAndStones.Functions
project and select Publish. - Select Azure as the destination for publishing and click Next:
Figure 9.14 – Target selection when publishing
- Choose Azure Function App (Windows) in the Specific target tab, then click Next:
Figure 9.15 – Container selection when publishing
- Sign in to the same Microsoft account that we used in the Azure portal when we were creating the Function App resource.
- Select the subscription that contains the function app. All function...