+1 on experiencing the issue. @Alfredo Revilla below is the log you requested. Here is the only failing request
Invoke-WebRequest -UseBasicParsing -Uri "https://login.microsoftonline.com/f8cdef31-a31e-4b4a-93e4-5f571e91255a/oauth2/v2.0/token" `
-Method POST `
-UserAgent "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0" `
-Headers @{
"Accept" = "*/*"
"Accept-Language" = "en-US,en;q=0.5"
"Accept-Encoding" = "gzip, deflate, br"
"Referer" = "https://portal.azure.com/"
"Origin" = "https://portal.azure.com"
"Sec-Fetch-Dest" = "empty"
"Sec-Fetch-Mode" = "cors"
"Sec-Fetch-Site" = "cross-site"
} `
-ContentType "application/x-www-form-urlencoded;charset=utf-8" `
-Body "client_id=0a2057a8-149c-40ca-859e-98de032535fb&scope=a0e1e353-1a3e-42cf-a8ea-3a9746eec58c%2F.default%20openid%20profile%20offline_access&grant_type=refresh_token&client_info=1&x-client-SKU=msal.js.browser&x-client-VER=2.37.0&x-client-OS=&x-client-CPU=&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|61,0,,,|,&x-client-last-telemetry=5|2|61,07288b94-c692-44d8-b386-fd8bc33d6b64,864,7871d56b-edf6-489a-b4fc-e4d12075dd10|external_account_not_found,interaction_required|2,0&client-request-id=ce106028-6cc0-4eb7-9a27-c13790b96500&refresh_token=<redacted>&brk_client_id=c44b4083-3bb0-49c1-b47d-974e53cbdf3c&redirect_uri=brk-c44b4083-3bb0-49c1-b47d-974e53cbdf3c%3A%2F%2Fportal.azure.com"
Response-Headers:
HTTP/1.1 400 Bad Request
Cache-Control: no-store, no-cache
Pragma: no-cache
Content-Type: application/json; charset=utf-8
Expires: -1
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: Content-Length,Content-Encoding,x-ms-request-id
Access-Control-Allow-Methods: POST, OPTIONS
P3P: CP="DSP CUR OTPi IND OTRi ONL FIN"
x-ms-request-id: d6d5b5e5-6476-4fe6-aea4-24704a2a5b00
x-ms-ests-server: 2.1.16368.8 - SCUS ProdSlices
x-ms-clitelem: 1,50020,0,128399.3291,
Referrer-Policy: strict-origin-when-cross-origin
X-XSS-Protection: 0
Set-Cookie: fpc=AhkjZfkZxm1LhPtSjOE-mHOeQHSKAQAAAPoXndwOAAAA; expires=Fri, 20-Oct-2023 16:42:34 GMT; path=/; secure; HttpOnly; SameSite=None
x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly
stsservicecookie=estsfd; path=/; secure; samesite=none; httponly
Date: Wed, 20 Sep 2023 16:42:34 GMT
Content-Length: 848
Response-Body:
{"error":"invalid_grant","error_description":"AADSTS50020: User account '{EmailHidden}' from identity provider 'live.com' does not exist in tenant 'Microsoft Services' and cannot access the application '0a2057a8-149c-40ca-859e-98de032535fb'(Microsoft Azure Marketplace) in that tenant. The account needs to be added as an external user in the tenant first. Sign out and sign in again with a different Azure Active Directory user account.\r\nTrace ID: d6d5b5e5-6476-4fe6-aea4-24704a2a5b00\r\nCorrelation ID: 94da1959-f972-46c4-b87e-027b98655470\r\nTimestamp: 2023-09-20 16:42:34Z","error_codes":[50020],"timestamp":"2023-09-20 16:42:34Z","trace_id":"d6d5b5e5-6476-4fe6-aea4-24704a2a5b00","correlation_id":"94da1959-f972-46c4-b87e-027b98655470","error_uri":"https://login.microsoftonline.com/error?code=50020","suberror":"external_account_not_found"}