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.
How to automate azure site recovery vm replication in azure bicep
Satish B
70
Reputation points
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.
820 questions
1 answer
Sort by: Most helpful
-
Stanislav Zhelyazkov 28,186 Reputation points MVP Volunteer Moderator
2024-01-12T11:28:03.6333333+00:00