Reputation: 4765
I have a new Azure account. I am able to log into the 'manage' page as admin, but I forgot the password to one of my databases. I would like to reset the password on that one DB. How do I do that? Microsoft doesn't seem to have a KB on that - at least not one I could find. Thx.
Upvotes: 108
Views: 101197
Reputation: 325
If someone had forgotten his password for DB, First of all, look at the connection string(appsettings.json).
You will find it there.
Upvotes: 0
Reputation: 3683
You can actually reset your admin password to your SQL database using the old/previous Silverlight portal.
Log into https://windows.azure.com/ or into the current one and select "Previous portal" from your login
In the previous portal click the "Database" menu item on the bottom left
Select the database from the subscription
click the "reset password"
Upvotes: 1
Reputation: 12819
Using the new azure portal: https://portal.azure.com
Select SQL databases
Choose a database that's in the server you want to change creds for.
Select the server name url for that selected database. This should open up the server configuration blade.
Reset password is the second button from left.
Upvotes: 116
Reputation: 2308
Update for new portal:
Go to the SQL server that's hosting your SQL DB and click on "Reset password".
Upvotes: 0
Reputation: 41
With the current iteration of the interface, the process is similar to what is described above with an additional step:
Upvotes: 4
Reputation: 29885
You can use the following command with the Azure CLI 2.0 to change / reset the password for Azure SQL Database:
az sql server update -n {database server name}
-g {resource group name}
-p {password}
Source: https://buildazure.com/2017/05/18/azure-cli-2-0-reset-azure-sql-database-password/
Upvotes: 1
Reputation: 3273
Another variation on new Azure portal (bypassing the database), #1 go to SQL servers directly; #2 click on the DB Server you want to update the password for, #3 click the pencil, #4 update the password, confirm and save.
Upvotes: 15
Reputation: 131
To reset the administrator password for a SQL Database server, use the following steps:
If you reset the SQL Database server password during a time when there are active connections to databases on the server, you may want to use the KILL statement to terminate user sessions. This will force client connections to refresh their sessions with the database and the host server. For more information, see KILL (Windows Azure SQL Database).
Upvotes: 9
Reputation: 71028
If you're referring to the administrative password for a specific Windows Azure SQL Database server, you can do this from the new portal. Select the Database choice on the left, then select Servers:
Then, after selecting the server of choice, you'll see the option on the right for resetting admin password:
Upvotes: 117