Deploying the Azure Function app to Azure Cloud using Visual Studio
So far the function app is just a regular application within Visual Studio. To deploy the function app along with its functions, we need to either create the following new resources or select existing ones to host the new function app:
- The resource group
- The App Service plan
- The Azure Function app
You can provide all these details directly from Visual Studio without opening the Azure Management portal. You will learn how to do that in this recipe.
How to do it...
- Right click on the project and then click on the
Publish
button to open thePublish
window. - In the
Publish
window, choose theCreate New
option and click on thePublish
button, as shown in the following screenshot:

- In the
Create App Service
window, you can choose the existing resources or click on theNew
button to choose the newResource Group
, theApp Service Plan
, and theStorage Account
, as shown in the following screenshot:

- In most of the cases, you would like to go...