-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Hi,
when running the interactive mode of the az-bootstrap PowerShell module (version 0.5.2), I encounter an issue during the storage account name validation step. The module throws an exception without providing a detailed reason why the name is unavailable.
Here’s the relevant output:
[az-bootstrap] Interactive Mode - Enter required values or press Enter to accept defaults
Enter Template Repository URL [kewalaka/terraform-azure-starter-template]:
Enter Target Repository Name []: test
Enter Azure Location [australiaeast]:
Enter Resource Group Name [rg-test-dev]:
Enter Plan Managed Identity Name [mi-test-dev-plan]:
Enter Apply Managed Identity Name [mi-test-dev-apply]:
Would you like to create a Terraform State Storage Account? [Y/n]:
Enter Terraform State Storage Account Name [sttestdev300]:
[az-bootstrap] Checking if Storage Account 'sttestdev300' is valid and available...
Exception: /Users/florian/.local/share/powershell/Modules/az-bootstrap/0.5.2/private/Test-AzStorageAccountName.ps1:16:9
Line |
16 | throw "Storage account name '$StorageAccountName' is not avai …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Storage account name 'sttestdev300' is not available:
Expected behavior:
• The script should display the actual reason why the storage account name is unavailable (e.g. already taken, invalid characters, reserved name, etc.)
Environment:
• PowerShell 7 on macOS
• az-bootstrap version 0.5.2
Thanks for your support!
Florian
kewalakaCopilot
Metadata
Metadata
Assignees
Labels
No labels