powershell - 使用 powershell 导出 azure db 时出现错误

标签 powershell azure export powershell-cmdlet

使用链接遵循导出 SQL 数据库示例:

https://learn.microsoft.com/en-us/azure/sql-database/sql-database-export-powershell#export-sql-database-example

出现以下错误:

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/

相关文章:

Python:检查Azure队列存储是否存在

macos - -bash : export: `=' : not a valid identifier

python - Visual Studio Code 和 Azure 中的异步 python 函数

c# - Azure 文件存储似乎无法正常工作 "without code changes"正如微软声称的那样

java - 无法运行 JAR 文件(在 Eclipse 中创建)

excel - Grails:如何使列表成为MS Excel文件?

powershell - 在 PowerShell 中使用 IKnownFolderManager 接口(interface)

arrays - 从 Powershell 中每个对象组的数组中获取最新日期

windows - TLS1.2 Powershell HttpWebClient 支持

xml - 遍历子节点