使用链接遵循导出 SQL 数据库示例:
出现以下错误:
New-AzureRmSqlDatabaseExport:ResourceNotFound:资源组“Default-SQL-SoutheastAsia”下的资源“Microsoft.Sql/servers/XXX.database.windows.net/databases/[DBNAME]”为 未找到。 在 [FilePath]\sample.ps1:24 字符:18 + $exportRequest = New-AzureRmSqlDatabaseExport –ResourceGroupName $ResourceGroupN ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [New-AzureRmSqlDatabaseExport],CloudException + FullQualifiedErrorId:Microsoft.Azure.Commands.Sql.ImportExport.Cmdlet.NewAzureSqlDatabaseExport
Get-AzureRmSqlDatabaseImportExportStatus:无法将参数绑定(bind)到参数“OperationStatusLink”,因为它为空。 在 [FilePath]\sample.ps1:30 字符:63 + 获取 AzureRmSqlDatabaseImportExportStatus -OperationStatusLink $exportRequest.Ope ... + CategoryInfo:无效数据:(:) [Get-AzureRmSqlDatabaseImportExportStatus],ParameterBindingValidationException +FullyQualifiedErrorId:ParameterArgumentValidationErrorNullNotAllowed,Microsoft.Azure.Commands.Sql.ImportExport.Cmdlet.GetAzureSqlDatabaseImportExportStatus
有什么帮助吗?
最佳答案
实际上,我今天也遇到了同样的问题。我认为如果您将服务器名称更改为不使用完全限定名称,则可能会成功。因此,只需使用“xxxxx”即可。
至少这对我有用。
关于powershell - 使用 powershell 导出 azure db 时出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41364899/