asp.net - 部署到新的 Azure 资源组和网站失败

标签 asp.net azure azure-web-app-service

我在 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工具。

enter image description here

关于asp.net - 部署到新的 Azure 资源组和网站失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41005563/

相关文章:

c# - 如何使用 ASP.NET C# 立即执行下载?

c# - 使用提供 PDF 文件结果的 ASP.NET MVC 操作填充 Chrome 中对象标记的数据属性

.net - 如何保护Azure存储/服务总线中的访问 key

python - 仅在 azure ml studio 中使用 python 笔记本创建 azure ml 实验

azure - 为什么 App Insights 仅显示警告和错误跟踪级别?那么更低的水平呢?

azure - 通过 IIS 管理器 (inetmgr) 连接到 Azure 应用服务

c# - 如何在 ASP.NET Web API 中执行异步 'fire and forget' 操作

ASP.NET 访问路径被拒绝,在 Web 服务器上

azure - 如何从作为 azure web 应用程序托管的 web api core 3.1 响应中删除服务器信息 header ?

免费套餐中的 Azure 应用服务状态为 : QuotaExceeded