Skip to content

Authentication issue with azure cli 2.30.0

Hanxiao Liu edited this page Nov 30, 2021 · 1 revision

Azure cli has made a breaking change since 2.30.0 that deprecated old authentication and migrate to MSAL, which will break azure-cli authentication for old maven plugins (Function: v1.11.0 lower, WebApp: v1.13.0 lower). Here is the sample error message for this issue.

Cannot read files ~/.azure/azureProfile.json and ~/.azure/accessTokens.json. Are you logged in Azure CLI?

Azure maven tooling has migrated to azure identity library for authentication which support authentication with latest azure cli, please upgrade to the latest maven plugin once you meet this issue.

Clone this wiki locally