-
Notifications
You must be signed in to change notification settings - Fork 329
Add object_id to named_location
#1703
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 object_id to named_location
#1703
Conversation
e38ecfa to
9efcd40
Compare
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.
Thanks for adding this @alexwilcox9, this LGTM but could you add a test for this regression as well?
9efcd40 to
1e1da73
Compare
1e1da73 to
9728fd3
Compare
|
Hey @sreallymatt I've removed that extra asterisk and added a test that creates a conditional access policy that consumes a named location |
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.
Thanks @alexwilcox9 LGTM ✅
In the previous major version of the provider the following Terraform would work
However in the current version an error is produced due to the change in the
idattribute and the following error is producedIt is of course possible to get the correct value with
splitbut this doesn't feel very elegantThis PR adds the
object_idto theazuread_named_locationresource and data source using the ID returned from the graph APIIt might be worth adding a new test on the
azuread_conditional_access_policyresource that uses a named location - let me know if you'd like this addedFixes: #1504