bicep icon indicating copy to clipboard operation
bicep copied to clipboard

Bicep Linter - Validate Microsoft.Authorization/policyAssignments Name length

Open lr90 opened this issue 5 years ago • 1 comments

Is your feature request related to a problem? Please describe. Bicep/ARM does not restrict the name for resources of type Microsoft.Authorization/policyAssignments however what-ifs or deployments fail if the length is greater than 24 chars. Of course one option is to use guids but I find a readable name preferable though happy to be convinced otherwise.

Describe the solution you'd like If the linter could highlight this as an Error or Warning while I'm still in the editor it would save making a PR only to have if fail during the pipeline.

lr90 avatar Jun 04 '21 16:06 lr90

I think this is a dup of #1679. IMO, this should be a part of the core type definitions and evaluated by the core type system instead of the linter.

alex-frankel avatar Jun 04 '21 23:06 alex-frankel