EnvironmentCredential authentication unavailable. Environment variables are not fully configured.
I am able to run the project locally in windows but when I tried the same project in MAC visual studio 2022 I am getting an error like
"EnvironmentCredential authentication unavailable. Environment variables are not fully configured.
ManagedIdentityCredential authentication unavailable, no managed identity endpoint found.
SharedTokenCacheCredential authentication unavailable. No accounts were found in the cache.. ErrorCode:, Key:COMPLIANCE:SecondaryEncryptionKey, Label:DEV, Etag:BCcMS5NYmrBESOWbasdn06GntNOhwOJeyTP4cvkht0o, SecretIdentifier:https://kvt-eus-nprod-t01-deeng.vault.azure.net/secrets/COM-SecondaryEncryptionKey-DEV-MML
"
Also I have created PAT in the azure and tried az login as well but still same issue .