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

Where does my error come from? Or: I think we need something similar to source maps? #2911

Closed
mauve opened this issue May 31, 2021 · 2 comments
Labels
enhancement New feature or request Needs: Triage 🔍

Comments

@mauve
Copy link

mauve commented May 31, 2021

Is your feature request related to a problem? Please describe.
I am debugging a moderately complicated template which uses loops to create role assignments. The deployment fails for because it complains about duplicate role assignments.

I have a handful of assignments which look like this:

resource operator_D2Clocal_DataSender_RoleAssignment 'Microsoft.Authorization/roleAssignments@2020-04-01-preview' = [for oid in operatorsObjectIDs: {
  scope: queueD2Clocal
  name: guid(resourcePrefix, 'operator_D2Clocal_DataSender_RoleAssignment', oid)
  properties: {
    roleDefinitionId: roleDefinition_Azure_Service_Bus_Data_Sender
    principalId: oid
  }
}]

During the deployment they fail with "duplicate role assignment" or so, at this point I only see the GUID (name), but I have no idea which GUID is which assignment.

Describe the solution you'd like

I would like for errors during deployment to point to the correct resource or property and line:column of my bicep file.

@mauve mauve added the enhancement New feature or request label May 31, 2021
@ghost ghost added the Needs: Triage 🔍 label May 31, 2021
@shenglol
Copy link
Contributor

shenglol commented Jun 1, 2021

Dup of #855.

@alex-frankel
Copy link
Collaborator

Closing as dup

@ghost ghost locked as resolved and limited conversation to collaborators May 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request Needs: Triage 🔍
Projects
None yet
Development

No branches or pull requests

3 participants