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.

[Screenshot: Azure portal sign-in page]

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.

[Screenshot: Azure portal search bar with "SQL databases" selected]

Alternatively, you can navigate through the menu:

  1. Click on the menu icon (three horizontal lines) in the top-left corner.
  2. Select "Databases".
  3. Under "SQL", select "SQL databases".

Step 3: Create a new SQL server

On the "SQL databases" page, click the + Create button.

[Screenshot: SQL databases page with "Create" button highlighted]

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.

[Screenshot: Create SQL database page, Server section with "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.
[Screenshot: Create server pane with fields filled]

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.
[Screenshot: Create SQL database page, Database section]

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".
[Screenshot: Networking tab with firewall rules configured]

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.

[Screenshot: Review + create tab]

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.

[Screenshot: Deployment in progress]

Once the deployment is complete, you will see a "Deployment succeeded" message.

Note: You can manage your Azure SQL Database server and databases from the Azure portal, Azure CLI, PowerShell, or through programmatic APIs.

Next Steps

Congratulations! You have successfully created an Azure SQL Database server. You can now:

Refer to the following resources for more information: