Go Ozeki
Go Ozeki

Reputation: 21

How to Replicate an Azure Resource Group

I have built a system to store data collected by IoT devices in CosmosDB and display it in a web application. I am looking for a simple way to duplicate the resource group including the resources. The system overview and resources included in the resource group are as follows

System Overview

Resources included in resource group

Goal

Tried

Problem

Thank you in advance for your cooperation with the above.

Upvotes: 2

Views: 835

Answers (1)

Joe
Joe

Reputation: 1

I have been struggling with this as well. I have found some success with decompiling the ARM templates to Bicep and modifying there. Main thing is to have a consistent naming convention so that you can search and replace "PROD" with "DEV" or "TEST" where appropriate, and search and replace hard-coded subscription and tenant id's with variables created from Bicep functions. Apps usually don't have a set naming standard for the default URL's, so you have to search and replace those manually. Other hard-coded references I replace with resources using the "Existing" keyword

Upvotes: 0

Related Questions