-
Notifications
You must be signed in to change notification settings - Fork 278
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 azuread_administrative_unit_role_member
#983
Conversation
d035fb6
to
dde6c88
Compare
Hi @alexwilcox9, thanks for working on this. For some reason which I haven't yet gotten to the bottom of, we encountered an issue specifically with terraform-plugin-sdk v2.24.1 that causes the context to be cancelled during acceptance test checks, which in turn yields a "nil response with nil error" message for Hamilton clients. I've pushed a commit to your branch rolling this back to v2.24.0 - you are welcome to squash/rebase this away. For the ParseUUID issue, if you could split this logic out into two functions, one for each ID type, that would be ideal. |
14da255
to
507b23f
Compare
HI @manicminer, thanks for the help I've added a new Parse function as suggested, I don't recognise the IDs MS are using as a standard format and the docs aren't insightful so just checking it's not empty at the moment. Here are a couple examples of valid IDs just in-case you do recognise the format
I've also included a commit to update references to |
0a5c68a
to
71e72a3
Compare
@alexwilcox9 How is it working if you rebase off main now? main was broken for much of last week; I merged some fixes on Friday. |
71e72a3
to
65e792c
Compare
@manicminer just rebased against main and the tests are passing fine now, looks like those fixes worked |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexwilcox9 Thanks for working on this! Sorry for the delay in reviewing, I've merged main and pushed a couple of fixes and this LGTM 🛥️
This functionality has been released in v2.37.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
Having a go at adding
azuread_administrative_unit_role_member
. This resource will assign a directory object a role at the scope of the administrative unit.I have hit some issues I am hoping you can help with.
Firstly I have had to comment out the
ParseUUID
check as for some reason these IDs are not of that formatSecondly I am having issues with the exists func. I'm mostly confident I'm giving the
GetScopedRoleMember
function the right inputs but I end up with the error below.Any insight would be really appreciated!