-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates to support telemetry and better prompts (#115)
# Pull Request ## Issue #114 ## Description This PR makes no significant functional changes other than improving the prompts users see for IaC, bootstrao and starter. The primary update is to pull the bootstrap and starter from named artefacts. By doing this we can get some usage telemetry from the GitHub API. Note that changes have been made to the starter and bootstrap repos for Terraform to accommodate this, but all those changes are backwards compatible and already released. They are ready to go with these changes now. ## Testing - E2E tests have be run for this branch here: https://github.com/Azure/accelerator-bootstrap-modules/actions/runs/9414281487 - Manual testing of Terraform and Bicep happy paths has been completed for prompt testing. ## License By submitting this pull request, I confirm that my contribution is made under the terms of the projects associated license.
- Loading branch information
1 parent
cc905c8
commit 58015ba
Showing
8 changed files
with
147 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/ALZ/Private/Deploy-Accelerator-Helpers/Get-StarterConfig.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
function Get-StarterConfig { | ||
[CmdletBinding(SupportsShouldProcess = $true)] | ||
param( | ||
[Parameter(Mandatory = $false)] | ||
[string]$starterPath, | ||
[Parameter(Mandatory = $false)] | ||
[string]$starterConfigPath | ||
) | ||
|
||
if ($PSCmdlet.ShouldProcess("Get Configuration for Bootstrap and Starter", "modify")) { | ||
# Get the bootstap configuration | ||
$starterConfigFullPath = Join-Path $starterPath $starterConfigPath | ||
Write-Verbose "Starter config path $starterConfigFullPath" | ||
$starterConfig = Get-ALZConfig -configFilePath $starterConfigFullPath | ||
|
||
return $starterConfig | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.