Getting vague error message when attemtping to create a SQL Database using AzureResourceManager mode in Azure Powershell

回眸只為那壹抹淺笑 提交于 2019-12-12 05:26:23

问题


In the example below (added carriage returns for readability) I am able to create a resource group and Sql Server just fine. When I run line #19 I get the vague error message:

BadRequest: An error occurred while processing this request.

I've hit a wall without the proper feedback to help me troubleshoot. I can create databases in AzureServiceManager mode just fine, but I'd like to be able to use resource groups to manage my databases. There is so little information available for this scenario so any information to point me in the right direction will be much appreciated!


回答1:


I think you should use New-AzureRmResource instead of New-AzureResource; since you're working in resource manager mode, the only command to create a new Azure resource is to use New-AzureRmResource.



来源:https://stackoverflow.com/questions/29294101/getting-vague-error-message-when-attemtping-to-create-a-sql-database-using-azure

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!