Skip to content

Add Azure subscription and tenant info to interactive mode configuration summary#60

Draft
kewalaka with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-59
Draft

Add Azure subscription and tenant info to interactive mode configuration summary#60
kewalaka with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-59

Conversation

Copilot AI commented Jun 20, 2025

Copy link
Copy Markdown

When using interactive mode (Invoke-AzBootstrap without parameters), the configuration summary now displays the target Azure subscription and tenant information to help users confirm they're deploying to the correct environment.

Changes Made

Added two new lines to the configuration summary display:

  • Azure Subscription: Shows subscription name and ID in format {SubscriptionName} ({SubscriptionId})
  • Azure Tenant ID: Shows the tenant ID

Example Output

--- Configuration Summary ---
Template Repository URL      : kewalaka/terraform-azure-starter-template
Target Repository            : myorg/my-project
Azure Subscription           : My Dev Subscription (12345678-1234-1234-1234-123456789012)
Azure Tenant ID              : 87654321-4321-4321-4321-210987654321
Azure Location               : eastus
Resource Group Name          : rg-my-project-dev
Plan Managed Identity Name   : mi-my-project-dev-plan
Apply Managed Identity Name  : mi-my-project-dev-apply
Terraform State Storage Name : stmyprojectdev123
----------------------------

Implementation Details

  • Uses existing $azContext object from Get-AzCliContext - no additional API calls required
  • Minimal change: only 2 new display lines added to the configuration summary
  • No breaking changes to existing functionality
  • All existing tests continue to pass

This enhancement improves the user experience by providing clear visibility into which Azure environment will be used for the bootstrap operation.

Fixes #59.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

…ion summary

Co-authored-by: kewalaka <3146590+kewalaka@users.noreply.github.com>
Copilot AI changed the title [WIP] interactive mode should display target sub/tenant in configuration summary Add Azure subscription and tenant info to interactive mode configuration summary Jun 20, 2025
Copilot AI requested a review from kewalaka June 20, 2025 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

interactive mode should display target sub/tenant in configuration summary

2 participants