none
Use Powershell to get Azure Online Protection list RRS feed

  • Question

  • Hello everyone,

    System Center DPM 2012 R2 on Server 2012 R2.  I have a number of file-based backups on Azure's dpm service.  I have looked at the documentation regarding powershell, but I wasn't able to find a way to list agents/hosts that are protected using Azure services.  Is there a way to use Powereshell to list these from the dpm server?  Do I need to connect to the Azure service for this?


    • Edited by TheNooner Tuesday, May 20, 2014 9:12 PM
    Tuesday, May 20, 2014 6:09 PM

All replies

  • this script should Point you to the correct way:

    $PG=Get-ProtectionGroup
    $DS=Get-Datasource 
    
    
    foreach ($Entry in $DS) {
    Get-RecoveryPoint -Online -Datasource $Entry
    }


    Seidl Michael | http://www.techguy.at | twitter.com/techguyat | facebook.com/techguyat

    Friday, May 30, 2014 2:43 PM
  • Thanks for the suggestion. I think you meant this:

    $PG=Get-DPMProtectionGroup

    $DS=Get-DPMDatasource

    foreach ($Entry in $DS) {Get-DPMRecoveryPoint -Online -Datasource $Entry}


    However even though I can run each command independently, using a for each loop just appears to stall out and produce no results.  I'll keep playing with it, thanks again.

    Friday, May 30, 2014 7:46 PM
  • Thanks for the suggestion. I think you meant this:

    $PG=Get-DPMProtectionGroup

    $DS=Get-DPMDatasource

    foreach ($Entry in $DS) {Get-DPMRecoveryPoint -Online -Datasource $Entry}


    However even though I can run each command independently, using a for each loop just appears to stall out and produce no results.  I'll keep playing with it, thanks again.

    Do the loop like this $RP+=Get-Recoverypoint........

    so you have all Recoverypoints in $RP


    Seidl Michael | http://www.techguy.at | twitter.com/techguyat | facebook.com/techguyat


    Saturday, May 31, 2014 5:00 PM