The User Guide's Using your own Azure AD identity doc shows the command to set CLIMICROSOFT365_AADAPPID environment variable on Linux or macOS as m365 export CLIMICROSOFT365_AADAPPID=506af689-32aa-46c8-afb5-972ebf9d218a. However, this is not correct and the m365 alias needs to be removed to make it export CLIMICROSOFT365_AADAPPID=506af689-32aa-46c8-afb5-972ebf9d218a.

I'm willing to raise a PR to fix this.
Good catch @aakashbhardwaj619 馃憤馃徎
Looks like this update crept in when we added the m365 alias to all command examples.
Good catch @aakashbhardwaj619, appreciate your help 馃憦