Tutorial: Create an Azure SQL Database Server
This tutorial guides you through the process of creating a new Azure SQL Database server using the Azure portal. A SQL Database server is a logical construct that hosts your databases.
Prerequisites
Before you begin, ensure you have:
- An active Azure subscription. If you don't have one, create a free account.
- Appropriate permissions to create resources in your Azure subscription.
Step 1: Sign in to the Azure portal
Open your web browser and navigate to the Azure portal at https://portal.azure.com/. Sign in with your Azure account credentials.
Step 2: Navigate to SQL databases
In the Azure portal search bar at the top, type "SQL databases" and select it from the services list.
Alternatively, you can navigate through the menu:
- Click on the menu icon (three horizontal lines) in the top-left corner.
- Select "Databases".
- Under "SQL", select "SQL databases".
Step 3: Create a new SQL server
On the "SQL databases" page, click the + Create button.
This will take you to the "Create SQL database" page. In the "Basics" tab, you'll configure the core settings.
Step 4: Configure server details
Under the "Server" section, click the Create new link.
This opens the "Create server" pane. You need to provide the following information:
- Server name: Enter a globally unique name for your SQL server. This name will be part of the fully qualified domain name (e.g.,
yourservername.database.windows.net). - Subscription: Select the Azure subscription under which to create the server.
- Resource group: Choose an existing resource group or create a new one. Resource groups help you organize and manage related Azure resources.
- Location: Select the Azure region where you want to deploy your server.
- Admin username: Define a login name for the server administrator. This is different from your Azure account login.
- Password: Create a strong password for the server administrator.
- Confirm password: Re-enter the password.
Once you've filled in the details, click OK.
Step 5: Configure database details
Back on the "Create SQL database" page, you'll now configure your database.
- Database name: Enter a name for your SQL database.
- Compute + storage: Click "Configure database" to select a service tier (e.g., Basic, Standard, Premium, or General Purpose/Business Critical/Hyperscale for vCore). For this tutorial, you can choose a suitable option or the default.
- Collation: Leave as default or select as needed.
Step 6: Configure Networking
Navigate to the "Networking" tab. Here you can configure how your database server can be accessed.
- Connectivity method: Choose Public endpoint.
- Firewall rules: For testing purposes, you can enable "Allow Azure services and resources to access this server". You may also want to add your current client IP address by clicking "Add current client IP".
For production environments, it's recommended to implement more restrictive firewall rules.
Step 7: Review and Create
Go to the "Review + create" tab. Azure will validate your configuration.
Review all the settings. If everything looks correct, click the Create button.
Step 8: Deployment
Azure will now begin deploying your SQL server and database. This process typically takes a few minutes. You can monitor the deployment progress on the notification panel or by navigating to the resource group.
Once the deployment is complete, you will see a "Deployment succeeded" message.
Next Steps
Congratulations! You have successfully created an Azure SQL Database server. You can now:
- Connect to your SQL server using tools like SQL Server Management Studio (SSMS) or Azure Data Studio.
- Create tables, insert data, and run queries.
- Configure advanced security and performance settings.
Refer to the following resources for more information: