-
Notifications
You must be signed in to change notification settings - Fork 522
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
✅ PLEASE VOTE: Creating Required Module Resource Groups #209
Comments
@rjygraham We cannot vote right now - the Form is locked down - Message "You don't have permission to view or respond to this form" |
A few thoughts about the options: Module Inclusion ApproachThis is how we've implemented this today, tbh. It has the benefit of separating all modules within the Pipeline / Deployment Script - each deployment call has all the parameters needed. But we've created "wrapper" modules for almost all modules. Mostly to deploy the resource group if necessary (thus implementing this idea). To name a few problems:
Orchestrator Approach
VoteUsing the Module Inclusion Approach allows greater flexibility for deployments. But... In the end I think we should provide a combination:
|
@cloudchristoph thanks for the input. The form should be open for voting now if you can give it a try and let me know. If I'm reading your comment correctly, you're suggesting we should include resource group creation within the module as well as "orchestrator" template should we go down that path? Having lived through the pain of spiking the solution in the |
As agreed in ALZ bicep team call. Closing this out as no activity and gone stale. If someone feels strongly about this please reopen or create a new issue and we will re-triage. Thanks Jack |
Today all of the modules that deploy resources into resource groups expect the resource groups exist or are created outside of the module.
We are investigating the inclusion of resource group creation within the modules themselves; however, there are technical constraints in how the solution will work and we'd like to hear from the community to understand if including resource group creation within the modules is worth the effort.
** WE WANT YOU TO HELP US DECIDE THE FUTURE BY VOTING (SEE BELOW) *
Please read the remainder of this issue for context and then have your voice heard by voting at the following link:
VOTE HERE
We'd ❤️ to hear from you, so if you have any other thoughts/ideas/questions, please leave a comment.
Technical Constraints
subscription
scoperesourceGroup
scopeProposed "Module Inclusion" Solution
The proposed solution to deal with the above technical constraints are as follows:
subscription
scope instead ofresourceGroup
scopesubscription
scopeA preview of what this change for looks like for the
hubNetworking
module can be viewed here:https://github.com/rjygraham/ALZ-Bicep/pull/1/files
In this example, the "wrapper" template is
infra-as-code/bicep/modules/hubNetworking/resourceGroup/hubNetworkingResourceGroup.bicep
and the resource template is moved from the module root to theresources
folder.Pros of "Module Inclusion" approach
README
, you could simplify and use the native Azure ARM tasks/steps within Azure DevOps/GitHub Actions.Cons of "Module Inclusion" approach
README
is a bit messysubscription
scope vs modules targeting theresourceGroup
scopeAn "Orchestrator" alternative
An alternative to including module resource group creation in the modules themselves would be to include resource group creation in an "orchestrator" type template. The "orchestrator" template would deploy some (or all) modules sequenced in the correct order and ensure required resource groups are created before deploying modules.
Pros of the "orchestrator" approach
subscription
scope vs modules targeting theresourceGroup
scopeCons of the "orchestrator" approach
The text was updated successfully, but these errors were encountered: