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

Add ability to make RoleAssignments directly against the Resource being created #7

Open
rudiv opened this issue May 26, 2024 · 0 comments

Comments

@rudiv
Copy link
Owner

rudiv commented May 26, 2024

When creating a RoleAssignment, a separate Bicep Resource file is created that has an existing resource to scope against, as part of the overall rethink of the API to make it more "production-ready", think specifically about this.

Something such as a follow-on from the base builder would work great.

var id = builder.AddManagedIdentity("myidentity");
var maps = builder.AddAzureMapsAccount("maps")
    .AddRoleAssignment(id, MapsRoles.DataReader);

This could then add the RoleAssignment to the same file as the resource being created and avoid the need for duplication.

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