简体   繁体   English

部署到新的Azure资源组和网站失败

[英]Deployment to new Azure Resource Group and Web Site failing

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. 我在Visual Studio 2015 Update 3中创建了一个新的ASP.NET MVC Web应用程序。在创建过程中,我选中了要将应用程序作为Web应用程序托管在Azure上的复选框。 When configuring the Azure Web App Settings, I created a new Resource Group, a new App Service plan, and a new Resource Group. 在配置Azure Web App设置时,我创建了一个新的资源组,一个新的App Service计划和一个新的资源组。

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. 资源组和Web应用程序已在我的Azure门户中成功创建。

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. 当我在VS中右键单击项目并选择“发布”,然后选择Azure Web Apps目标时,将出现一个窗口,显示我的Microsoft帐户并显示我的Azure订阅,但不显示任何现有的Web应用程序。

What do I need to do? 我需要做什么? I've been searching for a couple of hours now and I cannot figure it out. 我已经搜索了几个小时,但无法弄清楚。

It seems a known issue, more info please refer to MSDN thread . 似乎是一个已知问题,更多信息请参考MSDN线程 Please have a try to update to the latest version of the Azure SDK to fix that. 请尝试更新到最新版本的Azure SDK来解决此问题。 The following is the snipped of the thread. 以下是该线程的摘要。

This is a known issue for some older versions of the Azure App Service tooling 对于某些旧版本的Azure App Service工具,这是一个已知问题

We can get the Azure SDK easily with Microsoft Web Platform Installer tool. 我们可以使用Microsoft Web Platform Installer工具轻松获得Azure SDK。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM