Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CONNECTION when using Service Principal #241

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

snoa93
Copy link

@snoa93 snoa93 commented Oct 14, 2024

I noticed that my deployments failed when the external user was missing in the master db. To mitigate this issue, I had to create the external user in both the database and in the master database.

A related issue seems to have been mentioned before: #213

User only created in db, not in master db:
Initializing deployment (Start)
Initializing deployment (Failed)
*** An error occurred during deployment plan generation. Deployment cannot continue.
Login failed for user '@'.
Time elapsed 0:00:26.67
Error: The process 'sqlpackage' failed with exit code 1

User created in db and in master db:
Initializing deployment (Start)
*** The object [data_0] exists in the target, but it will not be dropped even though you selected the 'Generate drop statements for objects that are in the target database but that are not in the source' check box.
*** The object [log] exists in the target, but it will not be dropped even though you selected the 'Generate drop statements for objects that are in the target database but that are not in the source' check box.
Initializing deployment (Complete)
Analyzing deployment plan (Start)
Analyzing deployment plan (Complete)
Updating database (Start)
'QUERY_STORE=OFF' is not supported in this version of SQL Server.
Starting rebuilding table [dbo].[Example]...
Caution: Changing any part of an object name could break scripts and stored procedures.
Caution: Changing any part of an object name could break scripts and stored procedures.
Update complete.
Updating database (Complete)
Successfully published database.
Changes to connection setting default values were incorporated in a recent release. More information is available at https://aka.ms/dacfx-connection
Time elapsed 0:02:04.86
Successfully executed action Publish on target database.

Changes:

  • Added step for master db when using service principal

Added step for master db when using service principal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant