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. - Select Azure and then click Next.
- Select Azure Function App (Linux) and click Next.
- Sign in and enter your Azure credentials.
- Select your subscription; for example, I chose my subscription named Pay-As-You-Go.
- In the Function Instance section, click the + Create New button.
- Complete the dialog box, as shown in Figure 10.6:
- Name: This must be globally unique. It suggested a name based on the project...