问题
I created a new ASP.NET MVC Web Application in Visual Studio 2015 Update 3. During the creation, I checked the box that I want to host my application on Azure as a Web App. When configuring the Azure Web App Settings, I created a new Resource Group, a new App Service plan, and a new Resource Group.
When it tried to create the project and deploy it, I got the following error:
{
"error": {
"code": "MissingRegistrationForLocation",
"message": "The subscription is not registered for the resource type 'components' in the location 'Central US'. Please re-register for this provider in order to have access to this location."
}
}
The Resource Group and web app were successfully created in my Azure portal.
When I right-click my project in VS and select Publish, then select the Azure Web Apps target, a window comes up showing my Microsoft account and showing my Azure subscription but it doesn't show any existing web apps.
What do I need to do? I've been searching for a couple of hours now and I cannot figure it out.
回答1:
It seems a known issue, more info please refer to MSDN thread. Please have a try to update to the latest version of the Azure SDK to fix that. The following is the snipped of the thread.
This is a known issue for some older versions of the Azure App Service tooling
We can get the Azure SDK easily with Microsoft Web Platform Installer tool.
来源:https://stackoverflow.com/questions/41005563/deployment-to-new-azure-resource-group-and-web-site-failing