Hi @ ashishj ,
In the commands your providing your using shared-key auth, if you intend to use Azure AD and RBAC don't use the --shared-key-auth
param.
If you must use shared-key-auth please please verify that your shared key is valid and debug and troubleshoot the login cmdlet:
az batch account login -g myRg --name myPool --shared-key-auth --show --debug
.
Once you can see the debug logs you can validate your key is correct.
I would recommend using RBAC and just not use the --shared-key-auth
param.