Excel Power Query, Azure Analysis Services, and Microsoft Entra authentication rely on the Analysis Services client libraries (AMO/MSOLAP/ADOMD). These libraries support both interactive Microsoft Entra sign-in and non‑interactive methods, and interactive flows can show a Microsoft Entra MFA dialog when Universal Authentication is used.
For Azure Analysis Services, the recommended and most reliable option is to use Active Directory Universal Authentication (Microsoft Entra interactive flow). This method is designed to handle token acquisition and renewal, including MFA, and can show a sign‑in dialog when the existing token cannot be reused. Other non‑interactive methods (such as AD Password or Integrated) do not show a pop‑up and can fail with authentication errors when the cached token or session is no longer valid.
In Excel, the behavior depends on:
- Which client library and authentication mode the connector is using.
- How the Microsoft Entra session and token cache are handled by that library and by Excel’s build/update level.
Power BI Desktop, SSMS, and Visual Studio explicitly support Active Directory Universal Authentication and are updated monthly with the latest client libraries. Excel receives the same client library updates through Microsoft 365, but on a less frequent cadence, and some organizations use deferred channels, so Excel may be running older client libraries or slightly different behavior around token reuse and prompts.
Given the symptoms:
- First connection and refresh succeed.
- After reopening the workbook, refresh fails with
AnalysisServices: Authentication failed.
- No Microsoft Entra sign‑in dialog is shown.
- Clearing/recreating credentials in Data Source Settings temporarily fixes it.
This aligns with a scenario where the non‑interactive or cached token path fails, but Excel does not fall back to an interactive Universal Authentication prompt.
Recommended actions based on the documented behavior:
- Ensure the connection is configured to use Active Directory Universal Authentication (Microsoft Entra interactive) for Azure Analysis Services, not Windows or legacy AD methods. Universal Authentication is the recommended mode for Azure Analysis Services and is designed to show an interactive prompt when needed.
- Make sure the Azure Analysis Services server users are defined as Microsoft Entra accounts (UPN/organizational email) and that the account used in Excel is the same Entra identity configured as a server admin or database user.
- Confirm that the Excel client is on a current Microsoft 365 update channel so it has the latest Analysis Services client libraries. Older builds or deferred channels can behave differently around authentication and token reuse.
- If the Azure Analysis Services firewall is enabled and the error sometimes appears as invalid credentials, verify that the client IP is allowed. For Power Query Online scenarios, the PowerQueryOnline service tag must be allowlisted; for desktop, ensure the relevant client IP ranges are permitted.
This behavior is not described in the documentation as a specific known Excel build bug, but it is consistent with using a non‑Universal or cached authentication mode that does not trigger a new Microsoft Entra prompt when the token cannot be reused. Aligning the connection with Universal Authentication and keeping Excel and the Analysis Services client libraries current is the supported path to avoid repeated manual credential clearing.
References: