小编Krr*_*ish的帖子

使用PowerShell导出azure db时出错

使用链接跟随导出SQL数据库示例:

https://docs.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 char:18 + $ exportRequest = New-AzureRmSqlDatabaseExport -ResourceGroupName $ ResourceGroupN ... + ~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 〜+ CategoryInfo:CloseError:(:) [New-AzureRmSqlDatabaseExport],CloudException + FullyQualifiedErrorId:Microsoft.Azure.Commands.Sql.ImportExport.Cmdlet.NewAzureSqlDatabaseExport

Get-AzureRmSqlDatabaseImportExportStatus:无法将参数绑定到参数'OperationStatusLink',因为它为null.在[FilePath]\sample.ps1:30 char:63 + Get-AzureRmSqlDatabaseImportExportStatus -OperationStatusLink $ exportRequest.Ope ... + CategoryInfo:InvalidData :( :) [Get-AzureRmSqlDatabaseImportExportStatus],ParameterBindingValidationException + FullyQualifiedErrorId:ParameterArgumentValidationErrorNullNotAllowed,Microsoft.Azure. Commands.Sql.ImportExport.Cmdlet.GetAzureSqlDatabaseImportExportStatus

有帮助吗?

powershell cmdlets export azure

1
推荐指数
1
解决办法
1119
查看次数

标签 统计

azure ×1

cmdlets ×1

export ×1

powershell ×1