Share via

I need to change the server-level account in my SQL Azure resource.

James 0 Reputation points
2026-03-05T21:25:39.85+00:00

I need to change the server-level account in my SQL Azure resource to a different user/login. Is this possible?

Azure SQL Database

2 answers

Sort by: Most helpful
  1. TP 155.3K Reputation points Volunteer Moderator
    2026-03-06T06:02:00.7366667+00:00

    Hi James,

    You may change the server admin password by navigating to your logical server in the portal and clicking Reset password. To do this you can use below link to navigate to list of SQL logical servers:

    https://portal.azure.com/#servicemenu/SqlAzureExtension/AzureSqlHub/DatabaseServer

    Click on your server, similar to below:

    User's image

    Next click Reset password:

    User's image

    Please enter new password twice to confirm and click Save.

    Thanks.

    -TP


  2. Saraswathi Devadula 15,610 Reputation points Microsoft External Staff Moderator
    2026-03-06T05:10:49.43+00:00

    Hello James

    The name of the Server admin account can't be changed after it has been created.
    User's image

    https://learn.microsoft.com/en-us/azure/azure-sql/database/logins-create-manage?view=azuresql#existing-logins-and-user-accounts-after-creating-a-new-database

    Please follow the below steps to create a new SQL login and give it the same privileges.

    Connect with your existing admin (for example in SSMS) and run:
    -- create a new SQL login

    CREATE LOGIN [NewAdminLogin] WITH PASSWORD = 'Strong!Passw0rd'; GO
    

    -- add it to the sysadmin server role

    ALTER SERVER ROLE sysadmin ADD MEMBER [NewAdminLogin]; GO
    

    To drop the login:

    DROP LOGIN [OldAdminLogin];
    GO
    

    https://learn.microsoft.com/en-us/sql/relational-databases/security/authentication-access/create-a-login?view=sql-server-ver17#create-a-login-using-sql-server-authentication-with-t-sql
    https://learn.microsoft.com/en-us/sql/t-sql/statements/alter-login-transact-sql?view=azuresqldb-current
    https://learn.microsoft.com/en-us/sql/t-sql/statements/alter-server-role-transact-sql?view=sql-server-ver17

    Hope that helps you switch over to the “new” server-level account. If this doesn't help you, please let me know will assist you with further troubleshooting.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.