jeffhollan / LogicAppTemplateCreator

Script to convert Logic Apps into templates for deployment
MIT License
144 stars 74 forks source link

Implement update parameter reference #58

Closed Splaxi closed 4 years ago

Splaxi commented 5 years ago

New functions / cmdlet:

Update-TemplateVariableReferenceToValue

Synopsis:
Update or replace an variable reference to a value

Description:
Update or replace a variable reference to a value

It could be that you want to reference another variable

It could be that you want to put in a static value instead

It would be that you want to reference an ARM parameter value instead

The user story is that you might be doing some early Proof-of-Concept development and have a simple variable in your design that you use multiple times. When you want to bring the PoC into development, you might want to change the variable reference. That could another variable, a static value or an ARM template parameter, so you don't have to create more than one parameter, but can easily switch out the multiple variable references to a single ARM template parameter.

External help is a bit hard to write these days, while we are waiting for you to uptake the other PR's.

Splaxi commented 5 years ago

Maybe the scenario is very specific to my style of creating my logic apps.

But I might start with 10-15 variables actions / shapes in the very top of my Logic App design. Referencing these around my logic app and demo it to the customer.

Then when we get a GO, we import it to our development and get it into our source control. Now we want to optimize the design for cost and performance and actually want to have fixed values / ARM parameters instead of all the variables (actions).

So to save me the hassle of having to do search and replace, I believe this would help me out in a better way.

But maybe it doesn't fit in your design / road map, which is totally fine, then I'll create a little something on the side for my needs 😉