Configure Additional Settings (Optional)
You can explore "Additional settings" for options like data redundancy, but the defaults are fine for a first database.
A step-by-step guide to get you started with Azure SQL Database.
Azure SQL Database is a cloud-based relational database service from Microsoft that provides a fully managed database engine. This tutorial will walk you through the process of creating your first SQL database and connecting to it using the Azure portal.
Before you begin, ensure you have the following:
Open your web browser and navigate to the Azure portal. Sign in with your Azure account credentials.
In the Azure portal search bar at the top, type "SQL databases" and select "SQL databases" from the results under the "Services" section.
Alternatively, click on the menu icon (☰) in the top-left corner, then select "Azure services" -> "Databases" -> "SQL databases".
On the SQL databases page, click the + Create button.
On the "Create SQL database" page, fill in the following details:
myResourceGroup). Resource groups help you manage related Azure resources.mySampleDatabase).Navigate to the "Networking" tab. For simplicity in this tutorial, you can select "Public endpoint" and "Allow Azure services and resources to access this server". For production environments, configure firewall rules more restrictively.
You can explore "Additional settings" for options like data redundancy, but the defaults are fine for a first database.
Click the "Review + create" button. Azure will validate your configuration.
Once validation passes, click the "Create" button to provision your SQL database.
The deployment process may take a few minutes. You can monitor the progress in the Azure portal.
Once deployment is complete, click "Go to resource" to navigate to your newly created SQL database overview page.
Congratulations! You've successfully created your first Azure SQL Database. Here are some common next steps:
Open Azure Data Studio, create a new connection, and enter:
Server: <your_server_name>.database.windows.net
Authentication type: SQL Login
User name: <your_admin_login>
Password: <your_admin_password>
Database: <your_database_name>
In SSMS, enter:
Server name: <your_server_name>.database.windows.net
Authentication: SQL Server Authentication
Login: <your_admin_login>
Password: <your_admin_password>
Then, right-click your database name in Object Explorer and choose "New Query".