New-PartnerAccessToken: AADSTS700003: Device object was not found in the tenant ‘xxxxx’ directory.
I recently ran into an error when trying to get access tokens using the secure app model:
New-PartnerAccessToken: AADSTS700003: Device object was not found in the tenant 'xxxxx' directory.
It turns out the problem had been caused as I had to do a clean reinstall of the device I had originally issued the tokens on.
The fix was to reissue my refresh tokens and update them where needed.