title: Getting error while exporting azure db using powershell
body: <p>Followed Export SQL database example using link : </p>
  
  <p><a href="https://docs.microsoft.com/en-us/azure/sql-database/sql-database-export-powershell#export-sql-database-example" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/sql-database/sql-database-export-powershell#export-sql-database-example</a></p>
  
  <p>Getting below error:</p>
  
  <p>New-AzureRmSqlDatabaseExport : ResourceNotFound: The Resource 'Microsoft.Sql/servers/XXX.database.windows.net/databases/[DBNAME]' under resource group 'Default-SQL-SoutheastAsia' was 
  not found.
  At [FilePath]\sample.ps1:24 char:18
  + $exportRequest = New-AzureRmSqlDatabaseExport –ResourceGroupName $ResourceGroupN ...
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  + CategoryInfo          : CloseError: (:) [New-AzureRmSqlDatabaseExport], CloudException
      + FullyQualifiedErrorId : Microsoft.Azure.Commands.Sql.ImportExport.Cmdlet.NewAzureSqlDatabaseExport</p>
  
  <p>Get-AzureRmSqlDatabaseImportExportStatus : Cannot bind argument to parameter 'OperationStatusLink' because it is null.
  At [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</p>
  
  <p>Any help?</p>