:Unable to obtain authentication token using the credentials provided

33 views Asked by At

Hey I just started learning AAS and I am facing issue with backup encountering this error while taking analysis service backup: Backup-ASDatabase :Unable to obtain authentication token using the credentials provided. error

Solution for this error

1

There are 1 answers

0
Re1ter On

The Backup-ASDatabase command uses credentials from your PC to log in to Azure, and they don't match, resulting in an error. Use parameter Credential:

$cred = Get-Credential
Backup-ASDatabase "mydb.abf" -Server "myserver" -Credential $cred