Accessing Azure Key vault results in AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access
As of Yesterday I'm faced with the following error when attempting to access all Azure Key Vaults that reside in subscriptions in 2 specific Tenants from the browser. I have access to several other subscriptions residing in other tenants that also contain Azure Key Vaults. There I still am able to access the Key Vaults using the same identity. On all tenants I get prompted for MFA, and using MS authenticator gives no indication of failure.
Exactly one week I was able to access these Key vaults without a problem.
The error message received:
Additional information from the call to get a token: Extension: Microsoft_Azure_KeyVault Resource: keyvault Details: invalid_grant: AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access '<guid>'. Trace ID: <guid> Correlation ID: <guid> Timestamp: 2023-08-23 08:44:27Z
Using powershell I'm able to access the keyvault and values
Connect-AzAccount -tenant <guid> -AuthScope AzureKeyVaultServiceEndpointResourceId
Get-AzKeyVaultSecret -VaultName <vault-name>
Get-AzKeyVaultSecret -VaultName <vault-name> -Name <secret-name> [-AsPlainText]
note: without parameter AuthScope it does not work.
Get-AzKeyVaultSecret: Your Azure credentials have not been set up or have expired, please run Connect-AzAccount to set up your Azure credentials. You must use multi-factor authentication to access resource AzureKeyVaultServiceEndpointResourceId, please rerun 'Connect-AzAccount' with additional parameter '-AuthScope AzureKeyVaultServiceEndpointResourceId'.