Add deployment scripts and configuration for Sovereign Cloud - #366
Add deployment scripts and configuration for Sovereign Cloud#366Jan Egil Ring (janegilring) wants to merge 1 commit into
Conversation
…k lab automation Signed-off-by: Jan Egil Ring <janegilring@microsoft.com>
|
Jan Egil Ring (@janegilring) awsome contribution: does it have to be subscription level deployment? |
|
Dmitriy Nekrasov (@nekdima) please have a look at this |
|
Jan Egil Ring (@janegilring) can you remove the 99-MicroHack-Template/labautomation/main.bicep from the template folder? |
|
Dmitriy Nekrasov (@nekdima) please review |
|
Thanks Jan Egil Ring (@janegilring). Deterministic role-assignment names are the right call, and re-runs are already safe in the two RG modes. The gap is the full event model: 2–100 participants, one or many subscriptions, and shared Azure Local sized to the group. 1. Subscription mode is broken
2. Shared LocalBox and ArcBox access is manualStill a portal step against
Both config channels are closed: the parameter block must match exactly, and 3. LocalBox preparation is manualNot automated: expanding
NIC creation can stay in the exercise; prep only has to guarantee the logical network. 4. Participants-per-LocalBox should be a parameterLocalBox is ~100-110 USD/day and 4-6 h to provision, so density belongs next to Instance count is participants ÷ density, and that mapping feeds the shared IDs in #2. No basis for a default yet: 5. Providers: register once, fail loudly60 participants × 25 providers is 1,500 Error handling: no ValidationWhat has been run end to end so far? Most useful:
Concurrency and re-run behaviour are the parts I cannot assess from the diff. Nits: |
This pull request introduces a new automated lab deployment flow for Azure Sovereign Cloud MicroHack environments, focusing on per-participant resource group isolation and precise role-based access control (RBAC). The changes include new deployment scripts, infrastructure-as-code templates, and configuration files to streamline and secure lab provisioning, ensuring each participant receives the necessary permissions and resources.
Lab deployment automation and configuration:
deploy-lab.ps1, a PowerShell script that orchestrates lab resource deployment at the subscription or resource group level, validates parameters, sets preferred locations, registers required resource providers, and assigns RBAC roles to participants.lab-defaults.jsonto define default lab parameters such as deployment type, number of labs per subscription, preferred Azure regions, and estimated daily costs.RBAC and infrastructure provisioning:
main.bicepto assign subscription-scoped RBAC roles (Security Reader, Resource Policy Contributor) to lab participants and invoke a module for resource-group-scoped RBAC, ensuring participants have appropriate permissions.rg-rbac.bicepmodule to assign resource-group-scoped roles (Key Vault Administrator, Storage Account Contributor) to participants, supplementing the Owner role already granted.Resource provider registration:
resource-providers.ps1, a script to register all required Azure resource providers for the Sovereign Cloud MicroHack, ensuring all necessary services are available before deployment.