[英]Error when publishing ASP.NET Web API to Azure over Visual Studio
I'm trying to use Visual Studio 2015 to publish a simple ASP.NET Web API to Azure over "Publish..." --> Microsoft Azure App Service. 我正在尝试使用Visual Studio 2015通过“发布...” - > Microsoft Azure App Service向Azure发布一个简单的ASP.NET Web API。 I choose to create all new service plan and resource but the deployment failed with MissingRegistrationForLocation error.
我选择创建所有新的服务计划和资源,但部署失败并出现MissingRegistrationForLocation错误。
Error on Azure portal: Azure门户网站出错:
Type microsoft.insights/components Resource Id /subscriptions/8e45263d-xxxx-xxxx-xxxx-3578972e80c4/resourceGroups/xxx/providers/microsoft.insights/components/xxx StatusMessage { "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." 输入microsoft.insights / components资源ID /subscriptions/8e45263d-xxxx-xxxx-xxxx-3578972e80c4/resourceGroups/xxx/providers/microsoft.insights/components/xxx StatusMessage {“error”:{“code”:“MissingRegistrationForLocation”,“消息“:”订阅未在“美国中部”位置注册资源类型“组件”。请重新注册此提供商以访问此位置。“ } }
}}
Microsoft Azure annouces a breaking change but I don't know what I should do to make the Publish... function of Visual Studio work again. Microsoft Azure宣布了一个重大变化,但我不知道应该怎么做才能使Visual Studio的Publish ...功能再次运行。 Apparently the template of Visual Studio is still not updated with this change but where I can edit the Azure template for Visual Studio?
显然,Visual Studio的模板仍未更新此更改,但我可以编辑Visual Studio的Azure模板? Thank you.
谢谢。
EDIT: Download and install latest Azure SDK will solve the problem https://azure.microsoft.com/en-us/downloads/ 编辑:下载并安装最新的Azure SDK将解决问题https://azure.microsoft.com/en-us/downloads/
Download and install latest Azure SDK will solve the problem 下载并安装最新的Azure SDK将解决问题
https://azure.microsoft.com/en-us/downloads/ https://azure.microsoft.com/en-us/downloads/
The answer is also mentioned in the original post, but it took me an hour to discover this, so for others I pasted it as an answer. 答案也在原帖中提到,但我花了一个小时才发现这个,所以对于其他人我把它粘贴作为答案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.