The final step in this chapter is to deploy the functions to Azure. You can do that as a part of a Continous 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 Chat.Functions project and select Publish.
- Select the Select existing option. Also, check the Run from package file option.
- Click the Create profile button.
- 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 apps we have in the subscription will now be loaded.
- Select the function app and click OK.
- When the profile is created, click the Publish button.
The following screenshot shows the last step. After that, the publishing profile is created...