azure-powershell - 无法复制天蓝色数据库

标签 azure-powershell azure-sql-database

我们已成功在 Octopus 部署步骤中使用 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

最佳答案

问题最终是我们的 Azure 弹性池空间不足。我发现我可以毫无问题地复制较小的数据库,并且当我从命令中删除 -ElasticPoolName 选项时,我也能够复制 60GB 数据库。

关于azure-powershell - 无法复制天蓝色数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44831525/

相关文章:

azure - 是否可以通过 Az Cmdlet 以编程方式路由插槽流量?

azure - 使用具有 Azure DSC 扩展的自定义复合资源

sql-server - 来自 SQL Azure 的 BACPAC 导入时出错

azure - 如何检查 Azure Sql Server 服务器主体(登录)是否已存在

asp.net - 监视 SQL Azure 中的数据更改

Azure - 简单的 JSON 模板和参数文件,但仍然提示输入

azure - 如何修复 AzurePowerShell 管道任务中的语法错误?

azure - azure函数应用程序设置连接字符串值中密码中的分号

powershell - Powershell Azure 管理 cmdlet 的凭据

SQL Azure - 一个 session 锁定整个数据库以进行更新和插入