-
Notifications
You must be signed in to change notification settings - Fork 50
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
Azure role assignment name needs to be GUID #121
Comments
It would be nice to have something like I believe this can technically be implemented already today with Dynamic Providers. cc @pgavlin who may have an example of this. But we should also consider adding a simpler API for managing some state in the checkpoint file that is initialized from a callback. |
There's some general weirdness with this, I've created some static GUIDs but pulumi seems to get confused still. I was initially creating the role assignment like this:
So I specified an empty GUID as follows (taken from a terraform example), which worked:
But when it came to granting a second permission I changed it to the following.
I believe the two roles were conflicting because of the same GUID so pulumi was granting the 'mpprelease' one, and then attempting to change the role assignment to 'mppbuild' despite the fact the pulumi name was different. At this point I tried creating static GUIDs :
Pulumi's trying to add the new 'mpprelease' role before deleting the previous one ('k8s-role' from above) which grants the same privileges because it seems to be unaware that the same role can't be granted twice even with different names or GUIDs. |
Looks like the underlying provider was already auto-UUID-ing these name properties - but the Pulumi provider was overwriting that with it's own default. #126 is a fix that would avoid doing that. |
Fixed with #127. |
When trying to assign a role to a service principal, the name needs to be a GUID.
The following code -
Will return a 400 error from azure saying that the name must be a valid GUID.
I tested with the
uuid
package and it worked, however this will trigger a change every timepulumi up
is ran.The text was updated successfully, but these errors were encountered: