Farmbeats active directory application problem.

david hwang 1 Reputation point
2021-09-11T14:32:14.39+00:00

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-
https://learn.microsoft.com/en-us/azure/industry/agriculture/install-azure-farmbeats#code-try-0

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
    2021-09-12T02:25:17.543+00:00

    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 https://aka.ms/FarmBeatsAADScript -O ./create_aad_script.ps1  
    cd  
    ./create_aad_script.ps1  
    

    131256-image.png

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