Quantcast
Channel: Cloud Training Program
Viewing all articles
Browse latest Browse all 1907

Azure SQL Deployment Options | SQL Managed Instance | SQL Database| SQL On VM

$
0
0

This blog post gives an understanding of how to deploy Azure SQL Server in using different deployment options ranging from SQL on Azure Virtual machine, SQL managed instance, and SQL Database.

Topics, we’ll cover:

Here’s the quick sneak-peak of how to start learning design and implement SQL deployments & to clear Microsoft Certified – Azure Database Administrator Associate DP-300 by doing hands-on.

Introduction

Within the Azure SQL Platform umbrella, there are various database deployment options for you to meet your needs with pay as you go, which gives you flexibility. We will also cover technical specifications for each of the options. The deployment options that we have discussed here include SQL Server on a virtual machine, Azure SQL managed instance, SQL database, Azure SQL Database elastic database pools, Azure SQL managed instance pools.

Azure SQL Server On Virtual Machine

SQL Server on Azure virtual machine is referred to as IaaS ( Infrastructure as a service ) in this we are responsible for patching and updating the Operating and SQL server and we have full access to all the capabilities of the  SQL server.

Here are some considerations for deploying SQL Server on a virtual machine :

  • Consider memory-optimized or storage-optimized virtual machine sizes for maximum performance.
  • Use the right storage configuration and take advantage of azure blob storage read caching.
  • You can integrate your database with azure blob storage and automated backups.

Key Features

  • SQL Server and Operating System server access
  • Windows, Linux, containers
  • File stream, DTU, and simple recovery model

Lab To Deploy SQL Database Server On Azure Virtual Machine

1.) Types virtual machine in the search bar and select it after selecting click on add button to add virtual machine.

2.) In the basic Tab make sure you have selected your subscription and resource group if you do not have a resource group then create using the create-new button.

select-subscription

3.) Under the instance details name give the virtual machine name, region, select the image and size of the VM.

Azure SQL

 

4.) Under the administrator account select and fill in the username and password for your VM.

Azure SQL

 

5.) In the inbound port rules select the RDP with port number 3389 and select the allowed selected ports.

Azure SQL Server

6.) Leave the remaining as it is and click on review + create. and if the validations are passed then click on create button.

Azure SQL

7.) After completing the deployment procedure go-to resources and on virtual machine click on connect and then select  RDP option to connect with the virtual machine.

Azure SQL

8.) After the connection of the virtual machine open the local server in the virtual machine that you have created and turn off  the  IE Enhanced Security Configuration Settings.

9.) Then download the SQL Server Evaluation edition 2019 and do a custom install.

Azure SQL

10.) On clicking the New SQL Server standalone installation or add features to an existing installation so after this you need to specify that you want to enter the product key or else you want to use 180 days trial version.

Azure SQLAzure SQL

11.) When clicking next it will ask for features that you want to install then select the database engine service to run your server then next.

Azure SQL

12.) In the next wizard, it will ask for the authentication mode select one as mixed-mode this mode have the same credentials that your virtual machine has already and add the current user.

Azure SQL

13.) Go to the SQL Server Configuration and then go to the SQL Server Network configuration then protocols for MSSQLSERVER then select TCP/IP using right click go to properties and enable it.

Azure SQL

14.) After setting up the IP address go to the SQL Server Services and select your MSSQLSERVER and restart to complete the setup.

Azure SQL

15.) After this we have to create a firewall rule where we have to set up port number is 1433 with protocol type TCP.

Azure SQL Azure SQL

16.) Then return to your azure portal and go to the virtual machine and then click the networking settings and set a new inbound port rule with port number 1433 with protocol type TCP.

Azure SQL

17.) Then in the final step go to the SQL server management studio and gives the server name and select authentication type as SQL server authentication and log on to your server.

Azure SQL Server

18.) Now, you are successfully login into your server here you can create your database as shown in the figure.

Azure SQL

 

Azure SQL Managed Instance

In azure, it is a platform as a service deployment option. It gives the instance of the SQL server but removes the full access for managing the virtual machine  SQL managed instance includes features like SQL server agent, service broker, database mail, linked servers, machine learning, and distributed transactions.

Key Features

  • Single instance or instance pool
  • Native virtual network support
  • On-Premises identities enabled with azure ad and ad connect.

Lab To Deploy SQL Managed Instance On Azure 

1.) Go to the Search panel and search for Azure SQL Managed Instance and click on create button.Azure SQL

2.) After selecting the subscription and resource group you have to fill in the managed instance details like managed instance name, region and select the appropriate compute + storage solution as per your needs.

Azure SQL

3.) And right below the managed instance details, there is an option for an administrator account in this section you have to fill in the admin login username and password.

Azure SQL

4.) Then leave the networking and additional setting (optional ) option and click on review + create and then after the validation is passed click on create button after this it takes 6 hours of deploying time.

Azure SQL

Azure SQL Database

The SQL Database is a platform as a service option in azure SQL  that encapsulates both the operating system and the SQL server instance away from the users. This deployment option is very simple you just get a  database to deploy applications. That supports all the scenarios that require a vast amount of storage and providing autoscaling for the unpredictable workloads. It also provides the highest availability SLA in the industry.

Key Feature

  • Single database or elastic pool
  • Hyperscale storage
  • Serverless computing
  • High availability with AZ isolation

Lab To Deploy SQL Database On Azure 

1.) Type Azure SQL in the search bar and select it and click on create button.

2.) After Clicking on create button select the SQL databases with resource type as a single database.

Azure SQL

3.) Then after click on create button fill the database name and server detail in the database details section and in the configure section we can configure our storage and compute power uses it depends on your usages.

Azure SQL

4.) If you do not have a server already created with you then click on create a new button and fill the server name and password in the new wizard.

Azure SQL

5.) Then in the networking section click on the public endpoint as your connectivity method and also enable your current client IP address for the firewall rules.

Azure SQL

6.) In the additional settings tab in the data source wizard select use existing data as simple, it will give you the readymade sample data to perform your queries.

Azure SQL

6.) Once your database is created then go and click the database that you have created and select the query editor option after clicking it, it will ask for username and password enter the credentials into it. And you can use other tools to run your database like:- SQL Server management studio.

Azure SQL

 

Related/References

Next Task For You

In our Azure Database Administrator training program, we will cover all the exam objectives, 24 Hands-On Labs, and practice tests. If you want to begin your journey towards becoming a Microsoft Certified: Azure Database Administrator Associate by checking our FREE CLASS.

DBAdmin_CU

The post Azure SQL Deployment Options | SQL Managed Instance | SQL Database| SQL On VM appeared first on Cloud Training Program.


Viewing all articles
Browse latest Browse all 1907

Latest Images

Trending Articles



Latest Images