-
Notifications
You must be signed in to change notification settings - Fork 304
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_application owners section -> ApplicationsClient.BaseClient.Post(): unexpected status 404 with OData #1024
Comments
The error message suggests that the current client connecting to azure has an object id of In terms of it getting created successfully - in this terraform module the application is created and THEN the owners are assigned (in the code that is). |
Hi @michalklusakc4, thanks for opening this issue. The The 404 you are getting suggests a specified owner principal was not found in the directory whilst attempting to create the application. Unfortunately, receiving a 404 for a POST request isn't very intuitive but here we are. |
I am facing a similar errors
This is my terraform resource
No matter how I try to create a Below is the body which is being sent:
The referenced owner exists and can be queried by the service principal (according to the TRACE log and postman). If I send the exact same body using Postman to POST https://graph.microsoft.com/v1.0/applications but remove the So I think it has something todo with the EDIT: I just found out that my problem might have been fixed with #1023 |
I'm trying to create an application along with its service principal.
I've been using
azuread_application
which works fine but when I add owners section it failsI have multiple providers registered, using
adb2cprovider
due to a multi-directory sceario (Azure AD B2C).Everything works fine until I start using
owners = [data.azuread_client_config.current.object_id]
which causes following error:The problem is that I don't see anything registered as
e7f88bb6-8b53-4eb1-aeca-234a0305acb4
in my Active Directory. On the other hand the app registration with1817e8e2-c05d-4d0f-a465-23a4fc71e91e
id gets created successfully. Is it a bug or am I missing something?EDIT:
my providers.tf block:
The text was updated successfully, but these errors were encountered: