【发布时间】:2017-05-12 21:43:13
【问题描述】:
以下使用链接导出 SQL 数据库示例:
出现以下错误:
New-AzureRmSqlDatabaseExport:ResourceNotFound:资源组“Default-SQL-SoutheastAsia”下的资源“Microsoft.Sql/servers/XXX.database.windows.net/databases/[DBNAME]”是 未找到。 在 [FilePath]\sample.ps1:24 char:18 + $exportRequest = New-AzureRmSqlDatabaseExport –ResourceGroupName $ResourceGroupN ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [New-AzureRmSqlDatabaseExport], CloudException + FullyQualifiedErrorId : Microsoft.Azure.Commands.Sql.ImportExport.Cmdlet.NewAzureSqlDatabaseExport
Get-AzureRmSqlDatabaseImportExportStatus:无法将参数绑定到参数“OperationStatusLink”,因为它为空。 在 [FilePath]\sample.ps1:30 char:63 + 获取 AzureRmSqlDatabaseImportExportStatus -OperationStatusLink $exportRequest.Ope ... + CategoryInfo : InvalidData: (:) [Get-AzureRmSqlDatabaseImportExportStatus], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.Azure.Commands.Sql.ImportExport.Cmdlet.GetAzureSqlDatabaseImportExportStatus
有什么帮助吗?
【问题讨论】:
-
错误告诉您数据库不存在,您是否确认它存在并且可以从您运行脚本的会话中访问?
-
请包含您用来触发导出的命令。见How to create a Minimal, Complete, and Verifiable example
-
感谢您的回复。我尝试导出的数据库位于“Default-SQL-SoutheastAsia”资源组下。我正在使用以下命令:New-AzureRmSqlDatabaseExport -ServerName "xxxxx.database.windows.net" -AuthenticationType Sql -AdministratorLogin "xxx@xxxxx" -DatabaseName "xxxxx" -StorageUri "xxxxxxx.blob.core.windows.net/xxxxx" -StorageKey "xxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx== " --ResourceGroupName "Default-SQL-SoutheastAsia" --StorageKeytype "StorageAccessKey"
标签: powershell azure export cmdlets