Pulumi building authorizer error

The error message retrieved is this:

  azure-native:resources:ResourceGroup (resourceGroup):
    error: building authorizer: Error obtaining Authorization Token from the Azure CLI: Error parsing json result from the Azure CLI: Error waiting for the Azure CLI: exit status 1

Regular login did not help. Digging further this shows this error already in the Azure CLI

az account get-access-token

PS E:\> az account get-access-token
AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2021-11-07T19:53:44.6091446Z and was inactive for 90.00:00:00.
Trace ID: 902b5501-f59b-407f-8cb5-d80909a82200
Correlation ID: 32904ef0-d44c-49ea-a212-635e84106623
Timestamp: 2022-04-24 13:30:10Z

So what required was a relogin, although az still seems to work as normal

az login --scope https://management.core.windows.net//.default