https://pulumi.com logo
Title
if yes, there is an issue in defiinition of RoleAssignment
t

tall-librarian-49374

11/04/2020, 6:16 PM
Sorry, what’s the issue?
i

icy-jordan-58549

11/04/2020, 6:25 PM
id and name are required in new nextgen
which requires to put ID in both fields
which is opposite in old azure implementation, you can put one or another one, which clearly says, the new resource will be created if NAME is provided.
t

tall-librarian-49374

11/04/2020, 7:39 PM
The old provider is how Terraform implemented things, while the new one is based on ARM service API. There are lots of discrepancies between the shapes of the two.
i

icy-jordan-58549

11/05/2020, 6:18 AM
got it! thanks, but it seems there is a case, where you can’t set both, or at least we should make required one of those vars… probably bug in arm template
t

tall-librarian-49374

11/05/2020, 10:29 AM
Here is an example I used in the wild: https://github.com/mikhailshilkov/temporal-samples/blob/main/azure-aks/temporal.ts#L71 Yes, it looks a bit repetitive, but that’s what we get from ARM anyway.
👍 1
i

icy-jordan-58549

11/05/2020, 4:08 PM
thanks
that’s exactly what I do right now.