Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Adding Support for Single Template with Multiple Parameter Files #836

Merged
merged 15 commits into from
Dec 19, 2023

Conversation

Jefajers
Copy link
Member

@Jefajers Jefajers commented Dec 8, 2023

Overview/Summary

This PR adds support for single template with multiple parameter file associations resulting in multiple deployments and closes #831.

The parameter file association allows for many-to-one relationships between parameter file and template and each relationship represents a unique deployment.

scope/
├── template.x1.bicepparam
├── template.x2.bicepparam
├── template.x3.parameters.json
└── template.bicep

This behavior's is controlled with three new settings Core.AllowMultipleTemplateParameterFiles, Core.DeployAllMultipleTemplateParameterFiles and
Core.MultipleTemplateParameterFileSuffix read more in the wiki or head over to faq.

This feature is disabled by default, to enable this feature set Core.AllowMultipleTemplateParameterFiles to true.

It is optional to change Core.DeployAllMultipleTemplateParameterFiles, if you want changes made to the base template to be treated as separate deployments for each corresponding parameter file.

It is optional to change Core.MultipleTemplateParameterFileSuffix, if you want a different filename identifier than x update this setting as well.

This PR fixes/adds/changes/removes

  1. Changes Frequently-Asked-Questions.md
  2. Changes Settings.md
  3. Changes Initialize-AzOpsEnvironment.ps1
  4. Changes Invoke-AzOpsPush.ps1
  5. Changes Core.ps1
  6. Changes ConvertFrom-AzOpsBicepTemplate.ps1
  7. Changes New-AzOpsDeployment.ps1
  8. Changes Set-AzOpsWhatIfOutput.ps1
  9. Changes Strings.psd1
  10. Changes Repository.Tests.ps1
  11. Adds rtmultibase.bicep
  12. Adds rtmultibase.x123.parameters.json
  13. Adds rtmultibase.xabc.bicepparam
  14. Adds deployallrtbase.bicep
  15. Adds deployallrtbase.x123.parameters.json
  16. Adds deployallrtbase.xabc.bicepparam

Breaking Changes

  1. N/A

Testing Evidence

Automated testing included in PR and in additon to that manual testing has been performed with custom .bicep, .json, .parameters.json and .bicepparam files in conjunjtion with different Azure Policy deployments.

As part of this Pull Request I have

  • Checked for duplicate Pull Requests
  • Associated it with relevant issues, for tracking and closure.
  • Ensured my code/branch is up-to-date with the latest changes in the main branch
  • Performed testing and provided evidence.
  • Updated relevant and associated documentation.

@Jefajers Jefajers added wiki-doc Improvements or additions to documentation enhancement New feature or request area/powershell labels Dec 8, 2023
@Jefajers Jefajers added this to the v2.4.0 milestone Dec 8, 2023
@Jefajers Jefajers requested review from a team as code owners December 8, 2023 20:26
daltondhcp
daltondhcp previously approved these changes Dec 11, 2023
@daltondhcp
Copy link
Contributor

🚀

@Jefajers Jefajers added the do-not-merge Not ready to merge label Dec 11, 2023
@Jefajers Jefajers merged commit a260d0b into Azure:main Dec 19, 2023
4 checks passed
@Jefajers Jefajers deleted the SingelTemplateMultiParam branch December 19, 2023 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/powershell enhancement New feature or request wiki-doc Improvements or additions to documentation
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Support Single Template with Multiple Parameter Files
3 participants