Share via

powershell command for sql log backup

Siva 736 Reputation points
2022-01-12T10:14:14.053+00:00

Hi Team,

Do we have any command for list the azure for sql vm log backup status. I have for list the full backup.

$Jobs = Get-AzRecoveryServicesBackupJob -VaultId $vault.ID -From (Get-Date).AddDays(-1).ToUniversalTime() -BackupManagementType AzureWorkload

this is listing all sql full backup, but not sql log backup. can you please check and assist if you have any commands.

Azure Backup
Azure Backup

An Azure backup service that provides built-in management at scale.


1 answer

Sort by: Most helpful
  1. Sadiqh Ahmed 49,571 Reputation points Microsoft External Staff Moderator
    2022-01-13T12:30:02.64+00:00

    @Siva You cannot retrieve log backup records from Azure APIs (since they happen every 15 mins) but you can get those records using Log Analytics. It is detailed here - https://learn.microsoft.com/en-us/azure/backup/backup-azure-monitoring-use-azuremonitor

    Are you looking for EVERY log backup record for your clients?
    May be latest recovery point is better.

    ----------------------------------------------------------------------------------------------------------------------

    If the response helped, do "Accept Answer" and up-vote it

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.