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

Module name property is missing intellisense description and length constraint #15502

Open
asilverman opened this issue Nov 5, 2024 · 0 comments

Comments

@asilverman
Copy link
Contributor

asilverman commented Nov 5, 2024

Bicep version

Name: Bicep
Id: ms-azuretools.vscode-bicep
Description: Bicep language support for Visual Studio Code
Version: 0.30.23
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-bicep

Describe the bug
The name property in module declarations, doesn’t provide a description and also doesn't provide the constraints on character length. During deployment, however, if the name exceeds 64 characters, the deployment fails with the following error:

Code: InvalidDeployment
Message: The provided deployment name 'Update-PolicyAssignmentId-asilverman-v1_Tenant-Microsoft_ManagementGroup-********-****-****-****-72748dccbe2d' has a length of '109' which exceeds the maximum length of '64'. Please see https://aka.ms/arm-deploy for usage details.

This limitation isn’t clear from the current documentation of the name property in Bicep. It would be incredibly helpful if the name property description could include guidance on the 64-character constraint, as this would prevent deployment-time errors due to overly long names.

See below screenshot of 'hover' on the name property
Image

To Reproduce
Steps to reproduce the behavior:

  • Hover over the name property, you expect some description telling you about the constraint, none exists
  • Create a bicep deployment with a module whose name exceeds 64 characters

Additional Info

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

2 participants