Microsoft Azure Documentation

Reference & Tutorials for Azure SQL Database

Tutorial: Create an Azure SQL Database

This tutorial guides you through the process of creating a new Azure SQL Database instance using the Azure portal.

Note: This tutorial assumes you have an active Azure subscription. If you don't have one, you can create a free account before you begin.

Prerequisites

Steps

1. Sign in to the Azure Portal

Open your web browser and navigate to the Azure portal. Sign in with your Azure account credentials.

2. Create a New Resource

In the Azure portal, select Create a resource from the left-hand menu. You can also search for "Create a resource" in the search bar at the top.

Azure Portal Create Resource

3. Search for SQL Database

In the "Search the Marketplace" box, type "SQL Database" and press Enter. Select SQL Database from the search results under the Databases category.

4. Configure Basic Settings

On the "SQL Database" page, click Create.

Fill out the following fields in the Basics tab:

Tip: For development and testing, consider using the free tier or lower-cost options to manage expenses.

5. Configure Networking

Navigate to the Networking tab.

6. Configure Additional Settings (Optional)

Navigate to the Additional settings tab. You can configure options like data encryption, collation, and sample data. For this tutorial, the defaults are usually fine, but you can choose to Use existing data or select Sample to pre-populate the database with some data.

7. Review and Create

Navigate to the Review + create tab. Azure will validate your configuration. If validation passes, review the details and click Create.

Deployment: The deployment process may take a few minutes. You can monitor the progress in the notifications area of the Azure portal.

8. Access Your Database

Once the deployment is complete, you can click Go to resource to navigate to your newly created Azure SQL Database. From here, you can manage your database, view its properties, and connect to it using tools like SQL Server Management Studio (SSMS) or Azure Data Studio.

Next Steps