mediakind-video / ams-migration-tool

3 stars 4 forks source link

DefaultAzureCredential: failed to acquire a token. #16

Closed Mobiusimmortal301 closed 6 months ago

Mobiusimmortal301 commented 6 months ago

When I run the program, it is unable to login to Azure with the following error:

error exporting assets: encountered error while exporting assets from Azure: failed to advance page: DefaultAzureCredential: failed to acquire a token.\nAttempted credentials:\n\tEnvironmentCredential: missing environment variable AZURE_TENANT_ID\n\tWorkloadIdentityCredential: no client ID specified. Check pod configuration or set ClientID in the options\n\tManagedIdentityCredential: managed identity timed out\n\tAzureCLICredential: Azure CLI not found on path

I get the same error when running from either powershell or visual code.

I have set Tenant Id and Client Id, but just get a different error about a token endpoint.

Mobiusimmortal301 commented 6 months ago

When using VS Code, users need to make sure they are signed in with the Azure account that has access the AMS assets being transferred. The easiest way for users to authenticate will be to login to the Azure CLI within VS Code.