-
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
azuread_service_principal_delegated_permission_grant when a grant already exists #681
Comments
Hi @Andrei-Predoiu, thanks for opening this issue. I believe the grant details can be retrieved with You should be able to script something around this if you have a lot of grants that you'd like to import into Terraform - both to generate some Terraform configuration and to build the actual |
Hi @manicminer thanks! The command seems to give me what i need :
Obviously, import should be possible, even according to the docs. Is this a bug or am i missing something? |
@Andrei-Predoiu It looks like this is a bug! Sorry about this, I'll work on a fix to be included in next week's release. |
This functionality has been released in v2.12.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. |
Regarding the new feature here
#676
Currently, i am using a null resource that calls
az ad app permission grant
as a workaround. I would like to use the new resourceazuread_service_principal_delegated_permission_grant
.I have over 50 applications in my state and it seems like i have to import the existing grants, otherwise i will get the following error:
DelegatedPermissionGrantsClient.BaseClient.Post(): unexpected status 409 with OData error: Request_MultipleObjectsWithSameKeyValue: Permission entry already exists.
I have no idea on how to even get the id's of the grants so that i can import them.
Any advice on this @manicminer
The text was updated successfully, but these errors were encountered: