jeffhollan / LogicAppTemplateCreator

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

Extraction updates and added parameter generation function #4

Closed MLogdberg closed 7 years ago

MLogdberg commented 7 years ago

Extraction updates that will split up the "hard coded" links that is generated by the designer. This update are used to make sure the ARM template is deployable in any subscription witout the need of changing static variables as subscriptionid or resourcegroups.

Making urls as: "workflow": { "id": "/subscriptions/FAKE1e9-15f5-4c85-bb3e-1e108dc79b00/resourceGroups/resourcegroupname/providers/Microsoft.Logic/workflows/INT0014-NewHires" } to generic: "workflow": { "id": "[concat('/subscriptions/',subscription().subscriptionId,'/resourceGroups/', resourceGroup().name,'/providers/Microsoft.Logic/workflows/INT0014-NewHires')]" }

Supports nested conditions,loops etc. Supports API Management, Functions and Workflows.

Promoting API Management parameters to the arm template to make sure that subscription key, instance name and resource group is configured correctly

Added a bunch of test files and test possibilites, fixed som smaller issues such as putting the name of the logic app as the default value name of the Logic App.

Added a new function Get-ParamterTemplate that creates a parameter file from the ARM template, just with the default values.

jeffhollan commented 7 years ago

Thanks a ton @MLogdberg