question

AbhishekSingh-7599 avatar image
0 Votes"
AbhishekSingh-7599 asked SadiqhAhmed-MSFT commented

How to check from inside the azure windows vm if azure backup is enabled or not using powershell cmdlet

How to check from inside the azure windows VM if azure backup is enabled or not using PowerShell cmdlet.
I know how to check it from azure level outside the VM but from within the VM is there any way to get the agent or service status using PowerShell

azure-backup
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@AbhishekSingh-7599 - I’m not sure what you’re trying to do at the VM level, that you can’t do overall?

Get-AzRecoveryServicesBackupStatus (Az.RecoveryServices) | Microsoft Docs – this will work just fine to check the status of a VM to see if it is backed up.


0 Votes 0 ·
Dev073 avatar image
1 Vote"
Dev073 answered

HI,


If the backup is enabled and configured, you will see a folder with the name Microsoft.Azure.RecoveryServices.VMSnapshot under "C:\Packages\Plugins\" in Azure VM

there are other various ways to find the VM backup status using PS connecting to azure portal and directly

Regards,
Dev

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered

Hello,

Thanks for reaching out.
You can use below powershell command to check if back up enabled or not for Azure VM.

Get-AzRecoveryServicesBackupStatus

To check whether a VM is backed up or not. Reference link - https://docs.microsoft.com/en-us/powershell/module/az.recoveryservices/get-azrecoveryservicesbackupstatus?view=azps-4.6.0

Hope this helps,
Thanks

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.