Create an Azure SQL Database
This tutorial will guide you through the process of creating a new Azure SQL Database using the Azure portal. Azure SQL Database is a fully managed platform as a service (PaaS) database engine that handles most of the database management functions such as upgrading, patching, backups, and provides high availability without administrator intervention.
Prerequisites
- An Azure account with an active subscription. If you don't have one, you can create a free account before you begin.
Steps to Create a SQL Database
-
Sign in to the Azure portal
Open your web browser and navigate to https://portal.azure.com/. Sign in with your Azure account credentials.
-
Navigate to SQL databases
In the Azure portal search bar at the top, type "SQL databases" and select SQL databases from the search results.
-
Create a new SQL database
On the SQL databases page, click the + Create button.
-
Configure basic settings
In the Create SQL Database form, fill in the following details:
- Subscription: Select your Azure subscription.
- Resource group: Choose an existing resource group or click Create new to create a new one. A resource group is a logical container for your Azure resources.
- Database name: Enter a unique name for your database (e.g.,
mydemodatabase
). - Server: Click Create new to configure a new SQL server.
- Server name: Enter a globally unique name for your server (e.g.,
mydemoserver123
). - Location: Select the Azure region where you want to deploy your server and database.
- Administrator login: Enter a username for the server administrator (e.g.,
azureuser
). - Password: Enter a strong password and confirm it.
- Click OK.
- Server name: Enter a globally unique name for your server (e.g.,
- Want to use SQL elastic pool?: Select No for this tutorial.
- Compute + storage: Click Configure database.
- For this tutorial, select the Basic tier. You can adjust the compute size and storage as needed for your workload.
- Click Apply.
-
Configure networking
Navigate to the Networking tab.
- Connectivity method: Select Public endpoint.
- Firewall rules: Ensure Allow Azure services and resources to access this server is set to Yes. You can add your current client IP address for easier access later.
-
Review and create
Navigate to the Review + create tab. Review your configuration details. If everything looks correct, click the Create button.
-
Deployment
Azure will now deploy your SQL server and database. This process may take a few minutes. You will see a deployment notification, and once complete, you can click Go to resource to view your new SQL database.
Congratulations! You have successfully created an Azure SQL Database. You can now proceed to connect to it and start working with your data.
Next Steps
Now that your Azure SQL Database is created, you can:
- Connect to your Azure SQL Database
- Learn about managing your database
- Explore other Azure SQL Database features.