Publishing an Azure Functions project to the cloud
Now, let’s create a function app and related resources in an Azure subscription, then deploy your functions to the cloud and run it there.
If you do not already have an Azure account, then you can sign up for a free one at the following link: https://azure.microsoft.com/en-us/free/.
Using Visual Studio 2022 to publish
Visual Studio 2022 has a GUI to publish to Azure:
- In Solution Explorer, right-click the
Northwind.AzureFunctions.Service
project and select Publish. - In the Where are you publishing today? dialog, for Target, select Azure, and then click Next.
- Select Azure Function App (Windows) and click Next.
- Sign in and enter your Azure credentials.
- Select your subscription.
- In the Function Instance section, click the + button that has a tooltip that says Create a new Azure Function….
- Complete the dialog box, as shown in Figure 14.12:
- Name: This must...