An Azure relational database service.
Hi helpm
It sounds like you’ve set up SQL auth users and added your teammates’ IPs to the firewall but they still can’t connect. Here’s a checklist and some detailed steps you can try:
Make sure you’re editing the server-level firewall settings, not the database blade
- In the Azure portal, search for SQL servers (not “SQL databases”), pick your server.
- Under Settings, click Networking or Firewalls and virtual networks.
- If you don’t see a Networking tab on the database page, you’re in the database view—switch to the server view.
- Under **Public network access**, set it to **Selected networks** (or **Yes** for “Allow Azure services…” if they’re connecting from within Azure). - Click **Add your client IP** or enter your teammates’ public IP addresses (double-check each IP via something like [https://whatismyipaddress.com/](https://whatismyipaddress.com/)). - Save your changes. Verify SQL authentication settings - Ensure your server admin login (the one you created when provisioning) still exists and is enabled for SQL auth. - When your teammates connect, they should use: • Server name: `<your-server-name>.database.windows.net` • Login: `<sql-username>@<your-server-name>` • Authentication type: SQL Login Create and grant database-level users correctly If you created extra SQL logins/ users, make sure you did this at the right scope: - Connect as the server admin in SSMS or the Azure Query Editor. - In the `master` database run: `CREATE LOGIN MyUser WITH PASSWORD = 'StrongPass!123';` - Switch to your project database and run: `CREATE USER MyUser FOR LOGIN MyUser;` `ALTER ROLE db_datareader ADD MEMBER MyUser;` `ALTER ROLE db_datawriter ADD MEMBER MyUser;` Test network connectivity From a local machine or VM, run: `Test-NetConnection -ComputerName <your-server-name>.database.windows.net -Port 1433` You should get `TcpTestSucceeded : True`.
- Under Settings, click Networking or Firewalls and virtual networks.
If it’s still not working, could you share the exact error message your teammates see when they try to log in? That’ll help pinpoint whether it’s a firewall/network issue or a login/permission problem.
Hope this helps! Let me know what error you’re getting and we’ll go from there.
Reference links:
- IP firewall rules – Azure SQL Database and Azure Synapse Analytics: https://learn.microsoft.com/azure/azure-sql/database/firewall-configure
- Understanding and configuring “Allow Azure services and resources to access this server”: https://learn.microsoft.com/azure/azure-sql/database/network-access-controls-overview#allow-azure-services
- Configure Public network access: https://learn.microsoft.com/azure/azure-sql/database/network-access-controls-overview?view=azuresql#public-network-access
- Tutorial: Secure a database in Azure SQL Database (create logins/users): https://learn.microsoft.com/azure/azure-sql/database/secure-database-tutorial#manage-database-access