How to automate azure site recovery vm replication in azure bicep

Satish B 70 Reputation points
2024-01-12T11:25:08.18+00:00

How to automate azure site recovery vm replication in azure bicep

Azure Site Recovery
Azure Site Recovery
An Azure native disaster recovery service. Previously known as Microsoft Azure Hyper-V Recovery Manager.
756 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Stanislav Zhelyazkov 26,181 Reputation points MVP
    2024-01-12T11:28:03.6333333+00:00

    Hi, Here you will find ARM Templates for different scenarios. In your case these are the first two - Create a Recovery Services vault and Enable Replication for Azure VMs. Using Bicep decompile you can convert the ARM templates into Bicep templates. If your VM is in different resource group than the site recovery vault you will need to deploy the VM in one resource group and start deployment in another resource group via bicep module. Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

Your answer

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