我在 Visual Studio 2015 Update 3 中创建了一个新的 ASP.NET MVC Web 应用程序。在创建过程中,我选中了要将应用程序作为 Web 应用程序托管在 Azure 上的复选框。配置 Azure Web 应用设置时,我创建了一个新的资源组、一个新的应用服务计划和一个新的资源组。
当它尝试创建项目并部署它时,我收到以下错误:
{
"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."
}
}
已在我的 Azure 门户中成功创建资源组和 Web 应用。
当我在 VS 中右键单击我的项目并选择“发布”,然后选择 Azure Web Apps 目标时,会出现一个窗口,显示我的 Microsoft 帐户并显示我的 Azure 订阅,但不显示任何现有的 Web 应用程序。
我需要做什么?我已经搜索了几个小时了,但无法弄清楚。
最佳答案
这似乎是一个已知问题,更多信息请参阅MSDN thread 。请尝试更新到最新版本的 Azure SDK 来修复该问题。以下是线程的片段。
This is a known issue for some older versions of the Azure App Service tooling
我们可以通过Microsoft Web Platform Installer轻松获取Azure SDK工具。
关于asp.net - 部署到新的 Azure 资源组和网站失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41005563/