Maybe it's me, but I find it difficult to find lot of examples of using Pulumi with Azure (especially in C#). Some sample from the classic provider have not been upgraded to Native provider so I have trouble to understand how do to do some basic things. For instance assigning a Storage Blob Data Reader role to an Azure Function (through its managed identity) seems complicated. It seems to me that RoleAssignment is what I am looking for but I am not sure how to use it, especially because I think I have to use the guid from this role. Anyone has already done that ?
Thanks @tall-librarian-49374, interesting way to do that. To have something more simple I hardcoded the id from this page in the documentation which gives all the ids to use. What would be great is to have an enum with all these values directly in Pulumi (I guess these ids never change) , what do you think ?