Azure / ALZ-PowerShell-Module

The Azure Landing Zones Accelerators PowerShell module
https://www.powershellgallery.com/packages/ALZ/
MIT License
72 stars 36 forks source link

Bug: The latest Version 4.* has validation error - throw "The config file must be a json or yaml/yml file" #211

Closed abrahamarumbaka closed 2 weeks ago

abrahamarumbaka commented 1 month ago

Is there an existing issue for this?

Infrastrcuture as Code Type? (Required)

terraform

Module Versions (Required)

ALZ PowerShell Module: 4.0.0 Accelerator Bootstrap Modules: x.x.x Terraform Starter Modules: x.x.x

PS C:\temp\temp> Deploy-Accelerator Getting ready to deploy the accelerator with you...

Choose Infrastructure as Code (IaC) language Please select the Infrastructure as Code (IaC) language you would like to use. [B] Bicep [T] Terraform [?] Help (default is "B"): T You selected 'terraform'. Continuing with deployment...

Checking you have the latest version of Terraform installed...

Checking and Downloading the bootstrap module... The directory for .\bootstrap\v4.0.3 has been created and populated.

Choose bootstrap module Please select the bootstrap module you would like to use. [A] Azure DevOps: Azure Landing Zones [G] GitHub: Azure Landing Zones [L] Local: Azure Landing Zones [?] Help(default is "A"): A You selected 'alz_azuredevops'. Continuing with deployment... Exception: C:\Users\Temp\Documents\PowerShell\Modules\ALZ\3.1.2\Private\Config-Helpers\Get-ALZConfig.ps1:39 Line | 39 | throw "The config file must be a json or yaml/yml file" | ~~~~~~~~~~~ | The config file must be a json or yaml/yml file PS C:\Temp\Temp> Get-InstalledModule -Name ALZ

Version Name Repository Description


4.0.0 ALZ PSGallery Azure Landing Zones Powershel…

It worked yesterday with 3.* version. The latest version errors out. Tried with deploy-Accelerator -inputs "c:\accelerator\config\inputs.yaml" -output "c:\accelerator\output" Still errors out with - " | The config file must be a json or yaml/yml file"

Input arguments of the ALZ-PowerShell-Module (Optional)

No response

Debug Output/Panic Output (Optional)

No response

Expected Behaviour (Required)

Should generate successful configuration.

Actual Behaviour (Required)

Error - The config file must be a json or yaml/yml file

Steps to Reproduce (Optional)

Install the latest - ALZ Execute - deploy-Accelerator -inputs "c:\accelerator\config\inputs.yaml" -output "c:\accelerator\output" Or follow Deploy-Accelerators steps.

Important Factoids (Optional)

No response

References (Optional)

No response

jaredfholgate commented 3 weeks ago

Can you share your inputs.yaml file contents please? The fact it is prompting for those inputs makes me think there is a problem with that file.

microsoft-github-policy-service[bot] commented 3 weeks ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.