-
Notifications
You must be signed in to change notification settings - Fork 517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🪲 Bug Report - missing $ResourceGroupName declaration #388
Comments
Thanks for reporting we will fix ASAP |
jtracey93
added
documentation
and removed
Needs: Triage 🔍
Needs triaging by the team
labels
Nov 16, 2022
ADO WIT 25185 |
Thx for fixing this bug...
Please be aware a similar bug also exists in different locations: ex. ALZ-Bicep/infra-as-code/bicep/modules/hubNetworking at main · Azure/ALZ-Bicep · GitHub<https://github.com/Azure/ALZ-Bicep/tree/main/infra-as-code/bicep/modules/hubNetworking>
[Microsoft - Free logo icons]
Ewoud Smets
Cloud Solution Architect
Phone +32 2 704 30 14
Mail ***@***.******@***.***>
https://www.linkedin.com/in/ewoudsmets/<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fewoudsmets%2F&data=05%7C01%7Cewoud.smets%40microsoft.com%7C5063cc646d2043b505df08dac2f665d8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638036660934494363%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=nVCm5sl0gcH9t6VPqVSGWnbh6lv9xxrPFx25C44py%2F8%3D&reserved=0>
|
Yup thanks @ewouds. Its acrosss all modules that deploy to a Resource Group scope, we will fix ASAP. |
oZakari
added a commit
to oZakari/ALZ-Bicep
that referenced
this issue
Nov 21, 2022
oZakari
added a commit
to oZakari/ALZ-Bicep
that referenced
this issue
Nov 21, 2022
9 tasks
ghost
locked as resolved and limited conversation to collaborators
Dec 21, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
The variable $ResourceGroupName has never been declared.
It's only declared as a parameter in the object: $inputObject
The variable is required later when creating a resourcegroup
To Reproduce
Run module 4 with the provided Azure Powershell script
Expected behaviour
Variable is declared
Additional context
With this change it should be fine:
$ResourceGroupName = "rg-$TopLevelMGPrefix-logging-001"
$inputObject = @{
DeploymentName = 'alz-LoggingDeploy-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
ResourceGroupName = $ResourceGroupName
The text was updated successfully, but these errors were encountered: