Skip to content

Feature update ConvertTo-ARMTemplates - Parallelism, skips and Child Resource handling#818

Merged
rahalan merged 8 commits intomainfrom
users/mast/ConvertionUpdate
Dec 16, 2021
Merged

Feature update ConvertTo-ARMTemplates - Parallelism, skips and Child Resource handling#818
rahalan merged 8 commits intomainfrom
users/mast/ConvertionUpdate

Conversation

@MariusStorhaug
Copy link
Copy Markdown
Contributor

@MariusStorhaug MariusStorhaug commented Dec 16, 2021

Change

Slight overhaul of the ConvertTo-ARMTemplate.ps1 script.

  • Added parallelism with throttle set to number of logical cores.
  • Added skips for:
    • SkipMetadataCleanup - Skip Cleanup of Bicep metadata from json files
    • SkipBicepCleanUp - Skip removal of bicep files and folders
    • SkipWorkflowUpdate - Skip replacing .bicep with .json in workflow files
  • Added ability to handle conversion of child resources using the ConvertChildren switch. This will convert child resource modules, keeping them as independent deployable ARM/json templates. These child ARM/json templates will not be linked by parent templates. This needs to be handled manually for now.

To test the changes, check out the branch users/mast/ConvertionUpdate and run the following commands:

. .\utilities\tools\ConvertTo-ARMTemplate.ps1 -Verbose

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update (Wiki)

Checklist

  • I'm sure there are no other open Pull Requests for the same update/change
  • My corresponding pipelines / checks run clean and green without any errors or warnings
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (readme)
  • I did format my code

@rahalan rahalan merged commit a0f62e0 into main Dec 16, 2021
@AlexanderSehr AlexanderSehr deleted the users/mast/ConvertionUpdate branch December 22, 2021 09:53
@MariusStorhaug MariusStorhaug self-assigned this May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants