Skip to content

Instantly share code, notes, and snippets.

@tsologub
Created December 21, 2021 09:56
Show Gist options
  • Save tsologub/9d28a1f8100948ea8903d1e15715e405 to your computer and use it in GitHub Desktop.
Save tsologub/9d28a1f8100948ea8903d1e15715e405 to your computer and use it in GitHub Desktop.
Debug Output
...
2021-12-21T09:45:52.561Z [INFO] plugin.terraform-provider-azuread_v2.12.0_x5: 2021/12/21 09:45:52 [DEBUG] ============================ Begin AzureAD Request ============================
Request ID: 55b797ee-0e98-5a43-a2ab-6cff03e89129
GET /v1.0/<tenant-id>/directoryObjects/<object_id_from_authenticated_service_principal> HTTP/1.1
Host: graph.microsoft.com
User-Agent: HashiCorp Terraform/0.12.31 (+https://www.terraform.io) Terraform Plugin SDK/2.8.0 terraform-provider-azuread/2.12.0 Hamilton (Go-http-client/1.1) pid-222c6c49-1b0a-5959-a213-6608f9eb8820
Accept: application/json; charset=utf-8; IEEE754Compatible=false; odata.metadata=full
Content-Type: application/json; charset=utf-8
Odata-Maxversion: 4.0
Odata-Version: 4.0
Accept-Encoding: gzip
============================= End AzureAD Request =============================: timestamp=2021-12-21T09:45:52.559Z
2021-12-21T09:45:52.682Z [INFO] plugin.terraform-provider-azuread_v2.12.0_x5: 2021/12/21 09:45:52 [DEBUG] ============================ Begin AzureAD Response ===========================
GET https://graph.microsoft.com/v1.0/<tenant_id>/directoryObjects/<object_id_from_authenticated_service_principal>
Request ID: 55b797ee-0e98-5a43-a2ab-6cff03e89129
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Cache-Control: no-cache
Client-Request-Id: b1c61012-b23e-4821-9320-1c1bc68495ec
Content-Type: application/json;odata.metadata=full;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Tue, 21 Dec 2021 09:45:52 GMT
Odata-Version: 4.0
Request-Id: b1c61012-b23e-4821-9320-1c1bc68495ec
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"West Europe","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"AM1PEPF0000C434"}}
X-Ms-Resource-Unit: 1
2616
{"@odata.context":"https://graph.microsoft.com/v1.0... here comes the full JSON response .... }
0
============================= End AzureAD Response ============================: timestamp=2021-12-21T09:45:52.681Z
2021-12-21T09:45:52.684Z [INFO] plugin.terraform-provider-azuread_v2.12.0_x5: 2021/12/21 09:45:52 [DEBUG] ============================ Begin AzureAD Request ============================
Request ID: 29887820-5a40-fedd-ed55-2173ff1ee14f
GET /v1.0/<tenant-id>/directoryObjects/<human_object_id_who_is_the_owner_of_authenticated_service_principal> HTTP/1.1
Host: graph.microsoft.com
User-Agent: HashiCorp Terraform/0.12.31 (+https://www.terraform.io) Terraform Plugin SDK/2.8.0 terraform-provider-azuread/2.12.0 Hamilton (Go-http-client/1.1) pid-222c6c49-1b0a-5959-a213-6608f9eb8820
Accept: application/json; charset=utf-8; IEEE754Compatible=false; odata.metadata=full
Content-Type: application/json; charset=utf-8
Odata-Maxversion: 4.0
Odata-Version: 4.0
Accept-Encoding: gzip
============================= End AzureAD Request =============================: timestamp=2021-12-21T09:45:52.683Z
2021-12-21T09:45:52.755Z [INFO] plugin.terraform-provider-azuread_v2.12.0_x5: 2021/12/21 09:45:52 [DEBUG] ============================ Begin AzureAD Response ===========================
GET https://graph.microsoft.com/v1.0/<tenant-id>/directoryObjects/<human_object_id_who_is_the_owner_of_authenticated_service_principal>
Request ID: 29887820-5a40-fedd-ed55-2173ff1ee14f
HTTP/1.1 403 Forbidden
Transfer-Encoding: chunked
Cache-Control: no-cache
Client-Request-Id: 0f717be8-1106-4a7f-9d46-e10a9ee3e885
Content-Type: application/json
Date: Tue, 21 Dec 2021 09:45:52 GMT
Request-Id: 0f717be8-1106-4a7f-9d46-e10a9ee3e885
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"West Europe","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"AM1PEPF0000C434"}}
X-Ms-Resource-Unit: 1
10a
{"error":{"code":"Authorization_RequestDenied","message":"Insufficient privileges to complete the operation.","innerError":{"date":"2021-12-21T09:45:52","request-id":"0f717be8-1106-4a7f-9d46-e10a9ee3e885","client-request-id":"0f717be8-1106-4a7f-9d46-e10a9ee3e885"}}}
0
============================= End AzureAD Response ============================: timestamp=2021-12-21T09:45:52.754Z
2021/12/21 09:45:52 [DEBUG] azuread_application.app_tas-graph: apply errored, but we're indicating that via the Error pointer rather than returning it: Could not retrieve owner principal object "<human_object_id_who_is_the_owner_of_authenticated_service_principal>": DirectoryObjects.BaseClient.Get(): unexpected status 403 with OData error: Authorization_RequestDenied: Insufficient privileges to complete the operation.
...
on manifest.tf line 37, in resource "azuread_application" "app_tas-graph":
2021/12/21 09:45:56 [TRACE] statemgr.Filesystem: unlocking terraform.tfstate using fcntl flock
37: resource "azuread_application" "app_tas-graph" {
2021-12-21T09:45:56.490Z [WARN] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-12-21T09:45:56.490Z [WARN] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-12-21T09:45:56.493Z [DEBUG] plugin: plugin process exited: path=/usr/local/lib/terraform_plugins/terraform-provider-time_v0.6.0_x5 pid=2160
2021-12-21T09:45:56.493Z [DEBUG] plugin: plugin exited
2021-12-21T09:45:56.493Z [DEBUG] plugin: plugin process exited: path=/usr/local/lib/terraform_plugins/terraform-provider-azuread_v2.12.0_x5 pid=2151
2021-12-21T09:45:56.493Z [DEBUG] plugin: plugin exited
DirectoryObjects.BaseClient.Get(): unexpected status 403 with OData error:
Authorization_RequestDenied: Insufficient privileges to complete the
operation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment