我在 Azure 中有 DreamSpark 学生订阅。我正在关注Create an ASP.NET MVC app with auth and SQL DB and deploy to Azure App Service教程。我正在使用 Visual Studio Community 2015 Update 1 和 Azure SDK 2.8.2.1。但是当我尝试将数据库添加到项目时出现错误。
Template deployment failed. Deployment operation statuses:
Succeeded: /subscriptions/131474ef-becf-4444-98c3-aac7371dc3d2/resourceGroups/contactmanager/providers/Microsoft.Web/serverfarms/contactmanagerUmriyaevPlan ()
Succeeded: /subscriptions/131474ef-becf-4444-98c3-aac7371dc3d2/resourceGroups/contactmanager/providers/Microsoft.Sql/servers/contactmanagerumriyaevdbserver ()
Succeeded: /subscriptions/131474ef-becf-4444-98c3-aac7371dc3d2/resourceGroups/contactmanager/providers/Microsoft.Sql/servers/contactmanagerumriyaevdbserver/firewallrules/AllowAllAzureIPs ()
Failed: /subscriptions/131474ef-becf-4444-98c3-aac7371dc3d2/resourceGroups/contactmanager/providers/Microsoft.Sql/servers/contactmanagerumriyaevdbserver/databases/contactmanagerumriyaev_db ()
status ():
error (ResourceDeploymentFailure): The resource operation completed with terminal provisioning state 'Failed'.
Succeeded: /subscriptions/131474ef-becf-4444-98c3-aac7371dc3d2/resourceGroups/contactmanager/providers/Microsoft.Web/sites/contactmanagerumriyaev ()
Succeeded: /subscriptions/131474ef-becf-4444-98c3-aac7371dc3d2/resourceGroups/contactmanager/providers/Microsoft.Web/sites/contactmanagerumriyaev/config/connectionstrings ()
它正在成功创建资源组、应用程序、sql server。但是,它无法在该 sql server 中创建数据库。
我还尝试使用Azure 门户将数据库添加到创建的 sql 服务器,但它也失败了。
但是,我能够为Mobile App Services Quickstart
教程创建数据库。
如何解决问题?