Hello Team, I am trying to pull list of Azure SQL Server DB backup jobs which are registered under my recovery services vault but it is failing with below error. Can you please
review and assist. I am on latest version of Azure PowerShell.
Referencing documentation:https://docs.microsoft.com/en-us/powershell/module/az.recoveryservices/get-azrecoveryservicesbackupjob?view=azps-3.0.0#examples
Command:
Get-AzRecoveryServicesBackupJob -BackupManagementType AzureSQL -VaultId $vault.ID
Output:
Get-AzRecoveryServicesBackupJob : The inputs specified for Get jobs API are incorrect. Please check your inputs and try again.
Make sure your filter parameters are following these guidelines - The OData filter options. status eq { InProgress , Completed , Failed , CompletedWithWarnings , Cancelled
, Cancelling }
and backupManagementType eq {AzureIaasVM, MAB, DPM, AzureBackupServer, AzureSql } and operation eq { ConfigureBackup , Backup , Restore , DisableBackup , DeleteBackupData
} and jobId eq
{guid} and startTime eq { yyyy-mm-dd hh:mm:ss PM } and endTime eq { yyyy-mm-dd hh:mm:ss PM }.
At line:1 char:1
+ Get-AzRecoveryServicesBackupJob -BackupManagementType AzureSQL -Vault ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Get-AzRecoveryServicesBackupJob], CloudException
+ FullyQualifiedErrorId : BMSUserErrorGetJobsInvalidInput,Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.GetAzureRmRecoveryServicesBackupJob
Regards,
Kamalakar K