Reputation: 746
I have created a simple web API in ASP.NET Core and wanted to publish to Azure Web App. I'm using free trial subscription and have only one web app resource created in Azure. The app service plan is using free tier 'D1' SKU and is the only one present in my subscription. However, while trying to publish the web API by choosing this web app in Visual Studio publish profile, it says 'there are no existing instances available'.
The web app resource does appear here:
Clicking next while the resource is selected, results in the issue:
Upvotes: 1
Views: 1137
Reputation: 41
Seems like you created a Web API resource and no API Management resources. Those two are independent Azure services. Former is needed to host your API application. The other one provides additional features to your APIs and is completely optional - you can look it up in the official documentation.
The step to select/configure API Management resource was introduced in deployment wizard at some point. It is confusing and probably could be handled differently.
Unless you need API Management resource, just skip the step and you'll have deployment profile ready.
Upvotes: 4
Reputation: 10515
hoststart.html
KUDU Console of Initial App Service
KUDU Console of App Service after Publishing the WebAPI from Visual Studio
Deployed WebAPI Output
Update
You are in the correct path, after selecting the web app it asks to create the api.Click on the + symbol and add the API Management
Upvotes: 1