Home > Software engineering >  Replace, or relink?, existing Azure resource with ARM/Bicep
Replace, or relink?, existing Azure resource with ARM/Bicep

Time:11-08

I have an existing Azure resource (Function App) with some dependencies (storage & ApService) it needs to run & for monitoring (AppInsights) as well as some things referenced by the functions (storage queues, tables, etc).

All of this was created manually via the portal. Currently deploying & swapping slots 100% with a CI/CD process via GitHub Actions, but in trying to learn more about ARM templates & bicep, wondering…

Can you I take the existing resources I’ve deployed, create matching ARM templates/Bicep files for them, and add those to my CD process? The goal: when I want to make updates, I do it in the ARM/bicep templates and use CD to make the changes instead of manually doing it. But, I don’t want to delete what I have & recreate it.

Is this possible? Or do I need to start from scratch in building the resources & deploying them?

CodePudding user response:

Create the matching ARM templates files for existing resources and add those to your CD pipeline. At the time of creating the ARM template use the incremental mode of deployment. For more information please click here.

  • Related