无法复制azure数据库

时间:2017-06-29 17:29:14

标签: azure-powershell azure-sql-database

我们已成功在Octopus Deploy步骤中使用New-AzureRmSqlDatabaseCopy将生产数据库复制到临时数据库。它最近停止了以下模糊错误:

New-AzureRmSqlDatabaseCopy : 40687: The operation cannot be performed on the database 'databaseMcDatabase' in its current state.
At C:\Octopus\Work\20170623140313-4142\Script.ps1:9 char:1
+ New-AzureRmSqlDatabaseCopy -CopyDatabaseName $DatabaseName -DatabaseName Source ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [New-AzureRmSqlDatabaseCopy], CloudException
    + FullyQualifiedErrorId : Hyak.Common.CloudException,Microsoft.Azure.Commands.Sql.Replication.Cmdlet.NewAzureSqlDatabaseCopy

1 个答案:

答案 0 :(得分:3)

问题最终导致Azure弹性池空间不足。我发现我可以复制一个较小的数据库而没有任何问题,当我从命令中删除-ElasticPoolName选项时,我也能够复制60GB的数据库。