skyplane-project / skyplane

🔥 Blazing fast bulk data transfers between any cloud 🔥
https://skyplane.org
Apache License 2.0
999 stars 58 forks source link

[bug] skyplane init fails to invoke AzureCli for credential #896

Closed abiswal2001 closed 1 year ago

abiswal2001 commented 1 year ago

skyplane init normally checks multiple credential avenues for Azure in order to authenticate the user, one of which is the AzureCli (which stores credentials after calling az login).

Currently, skyplane init fails to invoke Azure Cli thereby making azure authentication very difficult:

23:09:10 [WARN]  Getting quota for Azure Cloud has failed: DefaultAzureCredential failed to retrieve a token from the included credentials.
Attempted credentials:
        EnvironmentCredential: EnvironmentCredential authentication unavailable. Environment variables are not fully configured.
Visit https://aka.ms/azsdk/python/identity/environmentcredential/troubleshoot to troubleshoot this issue.
        ManagedIdentityCredential: ManagedIdentityCredential authentication unavailable. The requested identity has not been assigned to this resource.
        SharedTokenCacheCredential: SharedTokenCacheCredential authentication unavailable. No accounts were found in the cache.
        AzureCliCredential: Failed to invoke the Azure CLI`
abiswal2001 commented 1 year ago

Closing this issue as wiping my azure-cli install and reinstalling fixed it.