Skip to content

Conversation

@jaredfholgate
Copy link
Member

@jaredfholgate jaredfholgate commented Jan 8, 2026

Adds an interactive capability to simplify config.

If Deploy-Accelerator is run with no input files it will:

  • Prompt for details and create the folder structure
  • Optionally prompt for bootstrap config file inputs and set them for you

Additionally it:

  • Prompts for az cli login if not already logged in
  • Queries Azure for MG and subs and list them for easy entry into config
  • Queries regions and lists them with AZ support
  • Has descriptions and a level of validation for the inputs
  • Retains the format of the input.yaml file - this adds significant complexity, so could reconsider this...
  • Respects sensitive inputs and sets them as env vars

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

  • Added a comprehensive AcceleratorInputSchema.json file 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

  • Introduced the new Get-AzureContext.ps1 script, 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

  • Updated Invoke-Terraform.ps1 to accept a new bootstrapSubscriptionId parameter, 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]
  • Modified New-Bootstrap.ps1 to extract bootstrap_subscription_id from the input configuration and pass it to Invoke-Terraform, ensuring consistent usage throughout the bootstrap process.

4. Local Build Script Improvements

  • Updated local_build_and_install.ps1 to invoke the build script and import the ALZ module, streamlining local development and testing workflows.

@jaredfholgate jaredfholgate self-assigned this Jan 8, 2026
@github-actions github-actions bot added the Needs: Triage 🔍 Needs triaging by the team label Jan 8, 2026
@jaredfholgate jaredfholgate merged commit dcd4268 into main Jan 9, 2026
9 checks passed
@jaredfholgate jaredfholgate deleted the feat--add-prompts branch January 9, 2026 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs: Triage 🔍 Needs triaging by the team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants