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

How to upgrade the application with Upgrade.ps1 if the db connection is authenticated with Active Directory Managed Identity #796

Open
deepblue-knight opened this issue Feb 11, 2025 · 0 comments

Comments

@deepblue-knight
Copy link

I want to upgrade my SaaS Accelerator to a higher version, the db connection is authenticated with Active Directory Managed Identity, as below:
"connectionstrings": {
"defaultconnection": "Server=tcp:abcd-sql.database.windows.net;Database=abcdefg;Authentication=Active Directory Default;"

But below Invoke-Sqlcmd command in Upgrade.ps1 needs to be executed with -Username & -Password:
Invoke-Sqlcmd -query $compatibilityScript -ServerInstance $Server -database $Database -Username $User -Password $Pass

The error that I encountered is as below
Image

How can I handle this?Please help.

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

No branches or pull requests

1 participant