Farmbeats active directory application problem.

david hwang 1 Reputation point

I am receiving this error when installing Farmbeats as an AAD application-

ERROR: Failed to connect to MSI. Please make sure MSI is configured correctly.
Get Token request returned: <Response [400]>
Invoke-RestMethod: /home/david/create_aad_script.ps1:209
Line |
209 | Invoke-RestMethod -Uri $MsGraphRequrl -Method PATCH -Body $PreAuthBo …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| {"error":{"code":"InvalidAuthenticationToken","message":"CompactToken parsing failed
| with error code:
| 80049217","innerError":{"date":"2021-09-11T13:55:52","request-id":"02f26127-8106-4b49-8dec-1908050fefde","client-request-id":"02f26127-8106-4b49-8dec-1908050fefde"}}}

I have followed the procedure detailed here-

I am installing into the US east region, am the owner of the subscription and the resource group, and am the owner of the tenant.

Any help would be much appreciated!

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,137 questions
{count} votes

1 answer

Sort by: Most helpful
  1. QuantumCache 20,106 Reputation points

    Hello @david hwang Please try again and let us know if you face any issues.

    Your subscription ownership looks good, but it might be an issue with the email or maybe you want to revisit the steps?

    I tried the Create AAD application Pre-Req step: Create an AAD application
    Below steps I tried from my subscription's Powershell cloud shell.

    wget -q -O ./create_aad_script.ps1  


    Please comment in the below section, happy to help further!