0% found this document useful (0 votes)
105 views

Azure SQL Database

This document provides a 23 step process for creating an Azure SQL Database. It includes selecting a subscription and resource group, configuring the database name and server, selecting pricing and security options, and connecting to the database using SQL Server Management Studio.

Uploaded by

Amardeep Kumar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
105 views

Azure SQL Database

This document provides a 23 step process for creating an Azure SQL Database. It includes selecting a subscription and resource group, configuring the database name and server, selecting pricing and security options, and connecting to the database using SQL Server Management Studio.

Uploaded by

Amardeep Kumar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

Creating an Azure SQL

Database
Azure SQL Database
SQL Database is a high-performance reliable cloud database. It is a managed cloud database-
as-a-Service (SaaS) that uses the SQL Server database engine in the Azure Cloud Platform.
It becomes easier for the developers/programmers to develop their products as there is less
involvement in the maintenance part of the product. It supports relational, JSON, XML, and
spatial data structures. Azure SQL provides various advanced features to its users such as
Long-term backup retention, Geo-replication, Automatic tuning, Scaling database resources,
business continuity etc.

● Step 1: Open the Azure management portal and log in to https://portal.azure.com

● Step 2: Click on “Create a Resource”.

● Step 3: Search and Select “SQL Database”. Then, Click on “Create”.

Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
● Step 4: Fill in the following details under the “Project Details” section:

1. Subscription: Choose a suitable subscription.


2. Resource group: Resource group is a container that holds related resources for an
Azure solution. You can keep the resource group as it is or you can also create one by
clicking “Create New”.

● Step 5: Fill in the following details under the “Database Details” section:

1. Database Name: You will have to name your database.


2. Server: After naming your database, you will have to create a server. Click on “Create
new”, and you will be prompted to set up some details, which will be explained in Step
7.

Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
3. Elastic Pool: If you had a large number of databases and want to manage the
performance and the cost together, you could put them in an elastic pool. But here,
you need to create a new one. Hence, Select “No”.
4. Workload Environment: As default settings are provided for production workloads.
Keep it as it is.
5. Compute + Storage: Once you are done creating a server, you will be able to click on
the “Configure Database”, where you will have to select pricing options
(Explained in Step-8).

● Step 6: In the “Backup Storage Redundancy” section, Select Geo-redundant backup


storage as shown in the image below.

1. Locally-redundant backup storage: Copies your backups synchronously three times


within a single physical location in the primary region. LRS is the least expensive
replication option but isn't recommended for applications requiring high availability.
2. Zone-redundant backup storage: Copies your backups synchronously across three
Azure availability zones in the primary region.

Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
3. Geo-redundant backup storage: Copies your backups synchronously three times
within a single physical location in the primary region using LRS, then copies your data
asynchronously to a single physical location in the paired secondary region.

● Step 7: Click on the “Create new” option as highlighted in Step 5 to create a new server.
Enter the below details on the New Server form.

1. Server name: Enters a unique server name.


2. Location: Select the location for your server.
3. Authentication method: Use the SQL authentication method.
4. Server Admin Login: Create a username as per your choice.
5. Password: Enter a strong password containing uppercase alphabets, special
characters, and numbers. Then, confirm your password by re-entering it.

Afterwards, Click on OK button at the bottom.

Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
● Step 8: Under “Compute + Storage”, Click on “Configure database”. Here, you need to
configure the database. This defines the storage and CPU usage of the databases. There
are mainly two types of configurations – DTU and vcore-based.

DTU stands for the Database Transaction Unit that will define how many resources
your database has. DTU offers a blend of computing, memory and I/O resources. There
are three configurations -
1. Basic : DTU:5, Size:2GB
2. Standard : DTU:10-3000, size: 1TB
3. Premium : DTU:125-4000, size: 4TB

vCore Model allows you to dig into the underlying resources and scale them
independently for optional performance. It allows you to take Azure Hybrid Benefit
for SQL Server.
1. General-purpose/Standard: Scalable compute and storage options
2. Business Critical/Premium: On-demand scalable storage
3. Hyperscale: High transaction rate and high resiliency

For the initial use, In-Service tier, Select “Standard” under the DTU-based purchasing model.
Then, Click on “Apply”.

Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
● Step 9: After configuring the server, you’ll again be redirected to the same page. Now,
Click on “Next: Networking >” to jump onto the networking section.

Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
● Step 10: In the Networking tab, Choose the below options :

1. Select the Connectivity method as a Public endpoint.


2. Choose the No option for Allow Azure Services and resources to access this
server.
3. Select the Yes option for Add current client IP address.

● Step 11: Click on “Next: Security >” and Keep these options as it is.

Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
● Step 12: Click on “Next: Additional Settings >” and go to the Additional Settings tab.
Select the “None” option for “Use existing data”.

● Step 13: Click on “Next: Tags >” and Keep it as it is. Then, Click on “Review + Create”.

Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
● Step 14: “Review + Create” option will provide you with an overview of your Azure SQL
Database. Afterwards, click on “Create” to create your database.

Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
● Step 15: Wait for a few minutes and your deployment will be completed.

● Step 16: Once done with the deployment, when you go to the SQL databases, you can
see the database that you have just created. Select your database and continue with
the next step.

● Step 17: When you click on the database, you will the ‘server name’. Copy the server
name and then open SQL Server Management Studio.

Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
● Step 18: After opening the SSMS, Enter the server name which you have copied in the
previous step and Also, change the Authentication to “SQL Server Authentication”. Click
on “Connect”.

● Step 19: After clicking on “Connect”, the below pop-up window appears. Now, you have
to set the firewall rules for your Azure SQL server.

Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
● Step 20: For that, Click on Set Server Firewall from the Overview tab of the Azure portal.

● Step 21: Now, In the firewall rules section, Add your “Client IP address”. Then, you’ll
notice one IP address gets automatically added to the below list. “Save” the Changes.

Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
● Step 22: Again, In the SSMS, Click on “Cancel” if the “New firewall Rule” window
appears. Then Again, Click on “Connect” after entering the credentials.

Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
● Step 23: Your Azure SQL Database is now successfully connected. You can access the
database from Azure Database in SSMS.

Contact Us
You can always reach out to us if you need help with this practice hands-on lab. For getting
help email us at hello@scholarhat.com or connect at the #support channel on Discord.

Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.

You might also like