Skip to content
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

Bicep 0.21.1 onwards detects variables with same name but different case, and throws an error #656

Closed
pjlewisuk opened this issue Sep 18, 2023 · 1 comment
Assignees

Comments

@pjlewisuk
Copy link
Contributor

Bicep has recently upgraded to 0.21.1, and as per the 0.21.1 release notes, a fix was introduce to detect variables with the same name and different cases:
"Catch case-insensitive clashes of type property names (Azure/bicep#11457)"

Codespaces are now coming pre-loaded with Bicep 0.21.1+, and this is causing an error to be thrown when trying to deploy clusters via AKS-C:

/workspaces/AKS-Construction/bicep/network.bicep(173,5) : Error BCP353: The variables "aks_podSubnet", "aks_podsubnet" differ only in casing. The ARM deployments engine is not case sensitive and will not be able to distinguish between them.
/workspaces/AKS-Construction/bicep/network.bicep(192,5) : Error BCP353: The variables "aks_podSubnet", "aks_podsubnet" differ only in casing. The ARM deployments engine is not case sensitive and will not be able to distinguish between them.
/workspaces/AKS-Construction/bicep/network.bicep(409,9) : Warning BCP334: The provided value can have a length as small as 0 and may be too short to assign to a target with a configured minimum length of 3.
/workspaces/AKS-Construction/bicep/main.bicep(130,16) : Error BCP104: The referenced module has errors.

Originally posted by @pjlewisuk in #633 (comment)

@pjlewisuk
Copy link
Contributor Author

Fixed in #657

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant