Closed autocloudarc closed 2 months ago
Note, the ALZ version I'm using is 3.0.3 that was updated yesterday (28aug2024). The workaround as of right now was simply to create that first repository manually (alz-mgmt) in my GitHub organization to kick start the process but will leave this opened still for an opportunity to identity and resolve the root cause.
Update: I discovered that if we install the GitHub cli (gh), we can also simple do the following to more easily fix directly from the command line or IDE terminal:
gh auth login
$org = "<your-github-organization-name>"
gh repo delete $org/alz-mgmt --yes
Hi @autocloudarc. I'm not sure I am understanding the workaround here. Are you saying this is an intermittent issue with the GitHub API? How does deleting the repo with gh
help here?
Hi @jaredfholgate . Thanks for following up and sorry for the delay. No it's not intermittent, and I learned recently that if you run the PowerShell cmdlet again with the destroy switch, these settings will be rolled back anyway. At the time, based on my limited knowledge, deleting the repo with the gh commands just accelerates the cleanup of the GitHub side configuration, in case we have to cleanup if we are deploying to practice so we can perform subsequent deployments, so its really more of a convenient way to cleanup GitHub to prepare for other deployment attempts.
Closing this one now then with the solution to just re-run the PowerShell cmdlet with the -destroy switch as a fix for cleaning up. Thanks.
When executing the following command:
...I receive these error messages, which appear to indicate that the two repositories could not be created and therefor could not be found.
Expected Behavior
These errors should not have appeared and would instead prompt me to continue with the terraform 'apply' phase.
Current Behavior
See error provided above.
Possible Solution
Steps to Reproduce
Context (Environment)
I am not able to perform the bootstrap phase of the deployment to create the necessary GitHub org repository and environment configuration, which is a blocker to complete the deployment of the landing zones in Azure.
$PSVersionTable.OS
:$PSVersionTable.PSEdition
:I am unable to demonstrate the Terraform Azure Landing Zones accelerator deployment to guide and prepare customers for their own landing zone deployment.
Detailed Description
See screenshot below: