简体   繁体   English

Azure站点恢复 - REST API,Powershell和自动化

[英]Azure Site Recovery - REST API, Powershell and Automation

Has anyone come up with a complete solution to protect and replicate VMs from on-prem (either VMware or HyperV) to Azure using either the REST API or the Powershell module? 有没有人提出一个完整的解决方案来保护和使用REST API或Powershell模块将VM从本地(VMware或HyperV)复制到Azure?

I recently completed a POC with ASR and was able to replicate a couple dozen VMs associated with three different applications. 我最近完成了一个带有ASR的POC,并且能够复制与三个不同应用程序相关的几十个VM。 I replicated out of VMware and into Azure. 我从VMware复制到Azure。 I was able to failover and failback successfully. 我能够成功进行故障转移和故障恢复。

I did all of the POC work using the GUI (portal.azure.com). 我使用GUI(portal.azure.com)完成了所有POC工作。 Now I have to figure out how to protect ~2000 VMs and there is no way that I am going to do that with the GUI. 现在我必须弄清楚如何保护~2000 VMs,我无法用GUI实现这一点。 But the MS documentation has me running in circles. 但MS文档让我在圈子里跑。

( https://docs.microsoft.com/en-us/azure/site-recovery/ ) https://docs.microsoft.com/en-us/azure/site-recovery/

It would be very helpful if any of you can share the sequence of steps to protect and replicate a VM. 如果您们中的任何人可以共享保护和复制VM的步骤,那将非常有用。 The MS documentation does not lay out how the various components (fabrics, protection policies, protection containers, protection items, etc.) are related to each other. MS文档没有说明各种组件(结构,保护策略,保护容器,保护项等)如何相互关联。

I do not need specific syntax. 我不需要特定的语法。 The documentation does a passable job of detailing the syntax. 该文档完成了详细说明语法的可行工作。 I could use some guidance on the task sequence. 我可以对任务序列使用一些指导。

If it helps to understand the bigger picture, my intention is to use a System Center Orchestrator runbook to ingest a CSV list of VMs, parse that out into input for the Azure REST API / Powershell, and then enable protection. 如果它有助于理解更大的图景,我的意图是使用System Center Orchestrator Runbook来提取VM的CSV列表,将其解析为Azure REST API / Powershell的输入,然后启用保护。

Thanks in advance for any assistance or guidance that you are able to provide. 提前感谢您提供的任何帮助或指导。

You can find recovery service API documentation here: 您可以在此处找到恢复服务API文档:

https://docs.microsoft.com/en-us/rest/api/recoveryservices/ https://docs.microsoft.com/en-us/rest/api/recoveryservices/

When you have one definition put in place(manually from portal), you may also be able to study it from resource.azure.com to see how properties are composited. 如果您有一个定义(从门户网站手动),您也可以从resource.azure.com学习它以查看属性的合成方式。 *not all resource available thru this portal *并非所有资源都可通过此门户网站获得

After that, you should be able to create template for either REST call or Resource Manager, depending on preference. 之后,您应该能够为REST调用或资源管理器创建模板,具体取决于首选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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