Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds an interactive capability to simplify config.
If
Deploy-Acceleratoris run with no input files it will:Additionally it:
This pull request introduces several improvements to the Azure Landing Zone (ALZ) Accelerator's deployment helpers, focusing on enhanced input schema validation, improved Azure context discovery, and more robust handling of the bootstrap subscription ID. The changes make the bootstrap process more reliable and user-friendly, especially when working with different version control systems and deployment scenarios.
Key changes:
1. Input Schema Enhancements
AcceleratorInputSchema.jsonfile that defines and documents all required bootstrap configuration inputs, including detailed descriptions, help links, and validation for fields used across GitHub, Azure DevOps, and local deployment scenarios.2. Azure Context Discovery
Get-AzureContext.ps1script, which queries Azure for management groups and subscriptions available to the current user, returning them in a structured format for use in interactive prompts.3. Bootstrap Subscription ID Handling
Invoke-Terraform.ps1to accept a newbootstrapSubscriptionIdparameter, allowing explicit specification of the subscription to use for bootstrap resources. The script now prefers this parameter over the current Azure CLI context, improving reliability in multi-subscription environments. [1] [2]New-Bootstrap.ps1to extractbootstrap_subscription_idfrom the input configuration and pass it toInvoke-Terraform, ensuring consistent usage throughout the bootstrap process.4. Local Build Script Improvements
local_build_and_install.ps1to invoke the build script and import the ALZ module, streamlining local development and testing workflows.