-
Notifications
You must be signed in to change notification settings - Fork 301
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
Support accessTokenAcceptedVersion in azuread_application #188
Comments
This parameter is not yet exposed in the azure sdk for go. I will go and troll them. Or maybe fix it there first. |
It is not even exposed in the Azure API |
It doesn't look like there is currentlty support for this property in AAD Graph or MS Graph. I found a related issue requesting support here: https://github.com/microsoftgraph/microsoft-graph-docs-contrib/issues/5691 |
Actually it looks like it might be supported with a different property name on MS Graph: https://docs.microsoft.com/en-us/graph/api/resources/apiapplication?view=graph-rest-beta |
We are currently trying to maintain our API users stored in AAD with Terraform. If I look at the code, I do not even have an idea how to integrate that feature so I am not able to bring in a sufficient pull request. But if anyone could pick that up, it would be highly appreciated. Edit: |
At the moment we don't have a way to utilise MS Graph endpoints, however we are looking at implementing it, and then we'll be able to support this. |
For anyone interested, this is how I managed to get it working in terraform
Most of the credit goes to @SimonWahlin. His blog had 90% of the answer. |
@manicminer is this something on target for the AD 2.0 provider? |
@haodeon link to blog you mentioned? |
Probably a bit late, but I guess this is the post he was referring to: |
FYI to get @haodeon's solution working I had to do the following:
Otherwise I would get the following error:
Hopefully this helps someone. |
Hey there @GenesisCoast , I think this is what I need but whenever I try and run this I get an error saying I need to perform an AZ login. I modified your example to do an az login call beforehand (see below) but now get an error saying there are insufficient privilges to run the command. Could you share the permissions your service principal has that allows this to run? Cheers
Update For anyone that has the same permission related issues as me, make sure that your app registration has the "Application.ReadWrite.All" added for Microsoft Graph. I previously only had this added under the deprecated Azure Active Directory Graph API as it is also needed there by terraform. |
You could also use:
|
This functionality has been released in v2.0.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! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Description
New or Affected Resource(s)
Potential Terraform Configuration
Possible values for accesstokenAcceptedVersion are 1, 2, or null. If the value is null, this defaults to 1, which corresponds to the v1.0 endpoint.
References
https://docs.microsoft.com/en-gb/azure/active-directory/develop/reference-app-manifest
The text was updated successfully, but these errors were encountered: