Jump to content

Implementing backend using Microsoft Azure SQL database


Recommended Posts

Guest _sachinmittal
Posted

About the Author

 

 

 

mediumvv2px400.png.082b2ed4c12541b78486d91a04c74ab8.pngSachin Mittal - Beta Microsoft Learn Student Ambassador - Microsoft |

 

I am pursuing my bachelor's degree from IIT Roorkee, India and a Beta Microsoft Learn Student Ambassador.

 

I am passionate about Web Development and Open-Source Contribution. I also like sharing tech information with others.

 

 

 

 

 

In this blog, we will learn how you can implement Azure SQL database as backend for your web app.

 

 

 

Azure SQL Database is an always-up-to-date, fully managed relational database service built for the cloud.

 

Want to know more about Azure SQL, check Azure SQL documentation.

 

 

 

Why to use Azure SQL database?

 

  1. Fully managed and always on the latest version of SQL
  2. Hyperscale the most demanding workloads
  3. Layers of protection and intelligent threat detection help keep your data secure
  4. Maintain peak performance and durability with an SLA of upto 99.995%

 

Let’s add backend in the web app we have created in Build your first Web Application with Microsoft Azure.

 

 

 

Step 1: Go to Azure Portal.

 

 

 

largevv2px999.png.123f08bd7e175c1208427b20dbeedb06.png

 

 

 

Step 2: Click on “SQL databases”.

 

 

 

Step 3: Click on “Create SQL database”.

 

 

 

largevv2px999.png.4bdcfc0cbdfb4dd4355c592d6a45b604.png

 

 

 

Step 4: Enter a name for resource group, name for database.

 

 

 

Step 5: Click on “Create new” in Server.

 

 

 

Step 6: Now, enter a name in Server name, select Location & Authentication method & click on “OK”.

 

 

 

largevv2px999.png.fc6b1e02f35190298483fbf925cb568a.png

 

 

 

Step 7: Select Workload environment, Select the size of the database for most student work loads choose the basic (which is the most cost effective & Backup storage redundancy. Click on “Next: Networking >”.

 

For Database sizes we recommend

 

Standard-series (Gen 5)

 

 

Intel E5-2673 v4 (Broadwell) 2.3 GHz, Intel SP8160 (Skylake), Intel Xeon Platinum 8272CL 2.5 GHz (Cascade Lake) and Intel® Xeon Scalable 2.8 GHz processor (Ice Lake) processors. In the standard-series (Gen 5), 1 vCore = 1 hyper thread. The standard-series (Gen 5) logical CPU is great for most relational database servers. and cost approx $0.51/hour

 

 

largevv2px999.png.dd206bf6735d02dbf2824d2f84e4bf58.png

 

 

 

Step 8: Select Connectivity method, Firewall rules, connection policy & Click on “Next: Security >”

 

 

 

largevv2px999.png.761e8312668c1d5aff4ae21a76561c1e.png

 

 

 

Step 9: Enable Microsoft Defender for SQL & Click on “Next: Additional settings >”

 

 

 

Step 10: Select Data source & Click on “Next: Tags >”

 

 

 

largevv2px999.png.c91f682ee80f8fb50cd11cbcab43e9f0.png

 

 

 

Step 11: Click on “Next: Review + create > here you can can see the costs of the datbase, you can change the size under the basic tab and understand costs of cloud services based on the "Compute Storage size”.

 

 

 

largevv2px999.png.79a30fb919cce8c368261cc9ee3b617e.png

 

 

 

Step 12: Click on “Create”, once you review all the sections.

 

 

 

largevv2px999.png.4b09d74148207b2a1a5ce0ee101fd7ca.png

 

 

 

Step 13: Once the Validation will complete & show message, “your deployment is complete”. Click on “Go to resource".

 

 

 

largevv2px999.png.9d3767c2254dbba921027804c6812d9f.png

 

 

 

Now, a tab will open from where you will get options to Configure, connect to application & start developing your application.

 

 

 

largevv2px999.png.320bfd909e97104b3fa78471c86d6f75.png

 

 

 

Congratulations, you have deployed Azure SQL. If you have any query, feel free to contact.

 

 

 

Want to learn more about SQL Databases, here are some Go to following Microsoft Learn resources and interactive handson labs:

 

Microsoft Learn: Introduction to SQL Server 2022

 

 

 

Microsoft provides several resources for learning Azure SQL.

 

Microsoft Learn: Introduction to Azure SQL

 

Microsoft Learn: Azure SQL for Beginners

 

Continue reading...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...