Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Script to convert library to arm/json #256

Merged
merged 10 commits into from
Oct 26, 2021
Merged

Conversation

MariusStorhaug
Copy link
Contributor

@MariusStorhaug MariusStorhaug commented Oct 22, 2021

Change

  • Added a tools folder with a script to convert module library to json based arm templates.
    • Removes existing json files
    • Converts bicep to json
    • Optionally removes bicep files.
    • Changes workflow files to use deploy.json instead of deploy.bicep.

Known issues:

  • Some workflows use nested_*.bicep files which are left as is after conversion. These will fail if -CleanUp switch is used with script.

Testing instructions:

  • Switch to the branch, or copy script to own branch locally.
  • From root in repo, run . .\utilities\ConvertTo-ARMTemplate.ps1 -Path . -CleanUp -Verbose.
  • Review changes in repo, while discard changes after reviewing if using the subject repo in this PR.

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

@MariusStorhaug MariusStorhaug force-pushed the ConvertLibraryToARMJson branch from 197d4cf to cf860a8 Compare October 22, 2021 22:01
@MariusStorhaug MariusStorhaug enabled auto-merge (squash) October 24, 2021 18:53
@MariusStorhaug MariusStorhaug self-assigned this Oct 25, 2021
@MariusStorhaug MariusStorhaug merged commit faa8f30 into main Oct 26, 2021
@AlexanderSehr AlexanderSehr deleted the ConvertLibraryToARMJson branch October 26, 2021 13:19
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bicep: Create script that allows a customer to transform all bicep files to their ARM counterpart
2 participants