I am trying to make changes to the existing Azure SQL Database. I have a sql project created using Visual Studio, and trying to make changes to the Azure SQL Database using Azure CLI.
I am stuck at the step where the sql script is generated, after generating the sql script I will be deploying it in the database:
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe" "$(Build.SourcesDirectory)\Projects\Test\Test_DB\Test_DB.sqlproj" /t:Build;Publish /p:DeployOnBuild=false /p:Configuration=Install /p:SqlPublishProfilePath="$(Build.SourcesDirectory)\Projects\Test\Test_DB\Test_DB.publish.xml" /p:UpdateDatabase=false
Error I got:
error MSB4018: The "SqlPublishTask" task failed unexpectedly. error MSB4018: System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> AdalException: No mapping between account names and security IDs was done.
How can I fix the issue?