简体   繁体   English

找不到服务器的Azure SQL弹性池

[英]Azure SQL elastic pool not found for server

A few days ago, I have a problem with SQL elastic pool in Azure. 几天前,我在Azure中遇到SQL弹性池问题。

I have an application that copies a database that is in a SQL Elastic pool, after a few days in production, started to return the message: 在生产几天后,我有一个应用程序可以复制SQL Elastic池中的数据库,该应用程序开始返回以下消息:

{"code":"40857","message":"Elastic pool not found for server: 'XXX', elastic pool name: 'XXX'."}

I tried to make the copy by the web admin panel without success as well. 我试图通过网络管理面板进行复制也没有成功。

Get error log: 获取错误日志:

"properties": {
    "statusMessage": "{\"status\":\"Failed\",\"error\":{\"code\":\"ResourceOperationFailure\",\"message\":\"The resource operation completed with terminal provisioning state 'Failed'.\",\"details\":[{\"code\":\"40857\",\"message\":\"Elastic pool not found for server: 'XXX', elastic pool name: 'XXX'.\"}]}}",
    "statusCode": "Accepted",
    "serviceRequestId": "XXX"
}

I have checked all the information, and they are correct! 我检查了所有信息,它们是正确的! It was working and stopped. 它正在工作,并停止了。

Help me please 请帮帮我

Let me provide you workarounds since I do not know why it stopped working. 让我为您提供解决方法,因为我不知道为什么它停止工作。 Please try using PowerShell as a workaround. 请尝试使用PowerShell作为解决方法。

New-AzureRmSqlDatabaseCopy 
-ResourceGroupName “source” 
-ServerName “source” 
-DatabaseName “source” 
-CopyResourceGroupName “target” 
-CopyServerName “target” 
-CopyDatabaseName “target” 
-ElasticPoolName “target”

Try specifying the -ElasticPoolName and without that parameter. 尝试指定-ElasticPoolName且不带该参数。

If the above does not work, move the database into a standalone performance level then copy it. 如果上述方法不起作用,请将数据库移至独立的性能级别,然后将其复制。

Set-AzureRmSqlDatabase -ResourceGroupName $resourcegroupname `
    -ServerName $servername `
    -DatabaseName $firstdatabasename `
    -RequestedServiceObjectiveName "S0"

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

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