NoOpsAccelerator
NoOpsAccelerator copied to clipboard
Fix linter warnings in bicep templates
Several bicep templates are throwing linter warnings during compile. The most common is something like: The name of variable 'builtInRoleNames_var' appears to have originated from a naming conflict during a decompilation from JSON. Consider renaming it and removing the suffix (using the editor's rename functionality). [https://aka.ms/bicep/linter/decompiler-cleanup]
Other warnings:
- Flagging potential security warnings for passwords or other secure values which do not include the @secure() attribute on parameters.
- Warning use-resource-id-functions: If property "policyDefinitionId" represents a resource ID, it must use a symbolic resource reference, be a parameter or start with one of these functions: extensionResourceId, guid, if, reference, resourceId, subscription, subscriptionResourceId, tenantResourceId. Found nonconforming expression at policyDefinitionId -> policyScopedId [https://aka.ms/bicep/linter/use-resource-id-functions]
- Warning no-hardcoded-location: Parameter 'location' may be used as a resource location in the module and should not be assigned a hard-coded string or variable value. Please use a parameter value, an expression, or the string 'global'. Found: '' [https://aka.ms/bicep/linter/no-hardcoded-location]
Describe the solution you'd like Address all linter warnings.