Forum Discussion

Noddy285's avatar
Noddy285
Copper Contributor
Mar 02, 2021

Deploying a Dacpac using SQLPackage

Hi,

 

I'm trying to use SQLPackage to deploy a Dacpac using AccessToken authentication.

 

I'm using the following command...

.\sqlpackage.exe /Action:Publish /SourceFile:Database.dacpac /TargetServerName:xxxx.database.windows.net /TargetDatabaseName:DatabaseName /AccessToken:xxxx

 

The error message I'm getting is:

Unable to connect to target server 'xxxx.database.windows.net'. Please verify the connection information such as the server name, login credentials, and firewall rules for the target server.
Login failed for user '<token-identified principal>'.

 

Any ideas what's wrong here?

 

Resources