简体   繁体   中英

PowerShell (or REST API) to get the status of all Protected Items in an ARM based Azure Site Recovery Vault

What I want to Do:- I want to report the status/Health along with percentages of the data replicated for all the servers in 1 ARM portal based Azure Site Recovery Vault. I am referring to the Protected Items via the Azure Disaster Recovery related Recovery Services (and NOT the Backup items). I want to do this programmatically via PowerShell or using any REST API.

Problem:- I am not able to find any API which can provide this data. Are you aware of any way to fetch this data?

What I have already checked:- I have already checked the PowerShell cmdlets here and did not found anything useful: AzureRM.RecoveryServices Module . I have also checked the REST APIs available via the Explorer Tool at https://resources.azure.com/ .

Any pointers will be helpful for this.

I got the API for the exact operation from MS support. The link to the same is here:

Get specific details about a protected item .

This API give you list of replication protected items in Azure Site Recovery along with Health of each item.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM