You are on page 1of 16

1

Azure SQL labs and training

Kirandeep Kaur (100390856)

Kwantlen Polytechnic University

INFO 2312 – Database Management Systems

Professor: Chinmaya Mahapatra

April 11, 2021


2

Contents

What is AZURE?.........................................................................................................................................4

History of Azure SQL.......................................................................................................................... 4

Pay-As-You-Go: .................................................................................................................................... 4

What is cloud computing? ..................................................................................................................... 5

Why its typically cheaper to use? ......................................................................................................... 5

Advantages: ......................................................................................................................................... 5

Cloud service models:............................................................................................................................ 6

Types Of clouds: ................................................................................................................................. 6

Azure Portal: ......................................................................................................................................... 7

Azure Marketplace:............................................................................................................................... 7

Azure Overview: .................................................................................................................................... 7

Cloud service models:............................................................................................................................ 9

Azure subscription: ............................................................................................................................. 10

How to create Word Press Website? ................................................................................................... 11

Azure SQL database is built for modern cloud apps: ........................................................................ 11

vCore Model ........................................................................................................................................ 12

How to deploy Azure SQL database? ................................................................................................. 14

How to use azure CLI to do all azure task system:............................................................................. 14

Authentication: .................................................................................................................................... 14

Authorization: ..................................................................................................................................... 14

Network Security:................................................................................................................................ 15
3

Data protection: ................................................................................................................................... 15

Backup and restore: ............................................................................................................................ 15

Screenshots: ......................................................................................................................................... 15
4

What is AZURE?
Azure is a Microsoft cloud computing platform to help you build your business goals. Azure supports

infrastructure, platform and software as server.

History of Azure SQL

2008, announced that window azure and SQL is part of that

Before announcement, in 2006, cloud Db, Red Dog launched

2008, windows azure and SQL, data service announced

2010, windows azure and SQL launched

2012, SQL azure, azure SQL database introduced

2013, azure virtual machines come to know

2014, Windows azure and Microsoft azure

2015, Azure SQL database V12

2016, Azure SQL database and elastic pools are introduced.

2018, Azure SQL database with managed instance come to know

2019, azure SQL database hyperscale, azure SQL databases severless and azure SQL instance pools are

introduced.

Pay-As-You-Go:

You only pay for complete control on computer environment. Azure allows to host virtual machines in

clouds.

Person can upload own virtual hardware. It also provides cloud-based storage which allows person to store

applications and to backup data safely and securely. Azure app services provide scalable hosting platform
5

where developers can create web-based applications. Person can deploy, operate and scale their apps in

fully managed environment.

Azure container instances and azure Kubernetes allow individual to deploy containerized application.

Artificial intelligence and machine learning empowers developers and data scientist with wide range of

productive experience to build, training to machine models faster. With the regional datacenters, person

can distribute applications globally.

With the help of azure portal, we can create, configure and control all services and resources to use web-

based interface. Microsoft azure gives cloud computing services to save time and money.

What is cloud computing?

The computing services that are over internet are known as cloud computing.

Why its typically cheaper to use?

• Its operating cost is lower.

• Run your infrastructure more efficiently

• Scale as your business needs changes.

Advantages:

• Scalability

(which can be vertically and horizontally)

• Elasticity

• Reliability

• Agility

• Geo-distribution

• Disaster recovery
6

Cloud service models:

• IAAS (Infrastructure-As-A-Service)

• PAAS (Platform-As-A-Service)

• SAAS (Software-As-A-Service)

Types Of clouds:

There are three types of clouds.

Public cloud: In public cloud, services are offered over public internet and are available to those individuals

who wants to purchase them.

Types of cloud

Public
Private cloud Hybrid cloud
cloud

Private cloud: In private cloud, computing resources are used by users from one business or organization.

Hybrid: Hybrid cloud is a combination of private and public cloud.

How Azure works?


7

There is a technology named as virtualization that is used by azure which is used to separate the tight

coupling between computer’s hardware and its operating system. For this purpose, layer is used that is

known as hypervisor. Every server has hypervisor to run number of virtual machines. Orchestrator is

connected with software that is responsible for everything happening in azure.

API is called by mini tools which include user interface of azure portal. When request is sent by azure user

to create virtual machine then user can connect to it when virtual machine is created by fabric controller.

Azure Portal:

Azure portal is graphical management solution to create, configure and control all azure services and

subscription. It is for browser, phone apps and for window apps.

Azure Marketplace:

Azure marketplace helps users to connect with Microsoft partners and independent software vendors. From

the hundred of service providers, buyers can find, try, purchase and provision applications and services.

Azure API’s and CLI’s: To interact as aa programmer, azure provide command line interface and API’s.

Azure Overview:

The services that are available in azure are:

• Compute services

• Cloud storage

• Networking

• App hosting

• Artificial intelligence

• Internet of things

• Integration

• Security
8

How to get start with azure accounts?

To use azure services, there is a need of azure subscription. During completing learn modules,

temporary subscription is used which runs in environment and called Learn Sandbox.

Creating account:

Account can be created by signing up on azure website or with the help of Microsoft representative.

What is in the azure account?

With the azure account, person has a free access to popular azure products for 1 year means 12

months. In addition to it, have credit to send for first 30 days. Also, access to more that 25 products

that are completely free.

Learn Sandbox: Learn sandbox provides temporary subscription.

Cloud-computing: Cloud computing is a consumption-based model where users need to pay for

the resources they use.

Benefits:

• No upfront costs.

• There is no need to purchase costly infrastructure.

• Person has ability to stop paying for those sources that are no longer required.

• Ability to pay for additional resources.

Capital expenditure and operational expenditure:

Capital expenditure (CapEx) is an upfront spending of money on physical infrastructure.

Operational expenditure (OpEx) is spending of money on services and products by same time with their

payment.
9

Cloud service models:

IAAS: It gives complete control over hardware that runs applications.

Benefits:

• No CapEx.

• Agility

• Management.

• No skills required.

• Cloud benefit.

• Flexibility.

PAAS: PAAS has same benefits and considerations as IAAS but there are some additional benefits

too.

Advantages:

• No CapEx.

• Agility.

• Consumption-based model.

• Cloud benefits.

• Productivity.

Disadvantages: Platform limitation.

SAAS: This cloud service model is centrally hosted and managed by individual. It has same benefits as

IAAS but some more too.

Advantages:

• No CapEx

• Agility
10

• Pay-as-you-go pricing model

• Flexibility

Disadvantages:

• Software limitation

Serverless computing: By eliminating the need of managing infrastructure, serverless computing

enables users to build application faster. Serverless word comes from the fact that all the task with

infrastructure and management are invisible to builder.

Core architectural components:

• Resources

• Resource group

• Subscription

• Management groups

Azure subscription: For full access to services and products, azure subscription is required. There

are two types of subscription boundaries:

• Billing boundary

• Access control boundary

Multiple subscriptions can be organized into invoice subscription.

Resource: A manageable item that is available through azure.

Resource groups: A container that contains related resources for an azure solution.

[Note: If one resource group is deleted then all the resources in it will be deleted].

Benefits of using resource manager:

• Manage infrastructure.

• Deploy, monitor and manage all resources.

• Apply access control to all services.


11

Azure regions: Every resource is assigned and controlled within each region to ensure workloads

are balanced.

Availability zone: Each zone is made up of one or more datacentres and connected through high

speed, private fiber optic networks.

How to create Word Press Website?

• First must have activated sandbox.

• Using same account, sign in to azure portal.

• On the left of portal pane, select create resource.

• Search for WordPress and select default one.

• Click create.

• Then several options will appear to configure your deployment.

• Select App service plan/location.

• Select create new.

• Enter values for each setting.

• Select new pricing tier from Dev/test.

• Select Dev/ test tab and F1 pricing tier and then select apply.

• Go back on New app service plan pane and select ok.

• Fully select create to start new site.

Azure differentiation:

• Fully managed business continuity with failover groups.

• It is with the managed services.

• Using log shipping, azure has near zero downtime migration.

Azure SQL database is built for modern cloud apps:

Key features:
12

• Elastic pool

• Serverless compute

• Fully managed service

• Hyperscale storage

Azure SQL MI or DB?

Azure SQL managed instance:

• Server surface area.

• Fully managed service

Azure SQL database:

• Hyperscale storage

• Severless compute

vCore Model

vCore model has independent scalability where remote store has IOPS while local storage has IOPs ++

(PS stands for per second in memory)

Deploy and configure:

Types of migration:

• Pre-migration

• Migration

• Post migration

Pre-deployment Planning

• Deployment method

• Deployment option

• Region
13

• Purchasing model

• Service tier

• Hardware

• Size which includes vCores and data max size

Deploy:

In basics, there are subscription, resources group, managed instance or server name, database name,

admin login, password, region, opt-in for pools, compute and storage is present.

Network Connectivity:

• Public or private access.

• vnet or firewall rules.

• Connection type MI

Additional setting:

• Data source

• Server collation

• Database collation

• Time zone

• Opt-in for advanced data security

How to verify deployment:

First, there is managed Instance.

Then, heck managed instances status with azure portal on azure CLI

Next is azure portal on Azure CLI

Check deployment details and activity log

Check ERRORLOG
14

Connect with SSMS.

Run verify deployment queries

How to deploy Azure SQL database?


In azure portal, from home, search for azure SQL. In SQL database, click create. Then, select resource

group. Next step is to give name to database. Create a server with server name and server admin login.

There are some more steps in networking, additional setting, tags and review. In SAMS, paste server name

and connect to it and chose some more option.

How to use azure CLI to do all azure task system:

In CLI, type [az sql server connection policy show] to get current connection policy to azure sql database

logical server.

Authentication:

It is a process of establishing the identity of a person who wants to access a resource.

Authorization:

It means what level of access authentication person has.

Azure Ad: It is a cloud-based identity and enables organization to control access on apps according to

business requirements.

Who uses Azure AD?

• IT administrators

• App developers

• Users

• Online service subscribers

Single Sign on:

It gives user opportunity to sign in for one time and access multiple resources and applications.
15

Service-level agreement (SLA) is the agreement between a service company and the customer.

Network Security:

Network security provides control over network traffic and also used in subnet in virtual machine.

Data protection:

In azure, customers are provided with strong data security both by default and customer options. There is
azure vault where customers can maintain control of keys that are used in cloud applications.

Backup and restore:

Azure provides customers to restore azure virtual machine.

Screenshots:

There are some more knowledge test screenshots too. These knowledge tests are done after reading and

understanding all the modules.


16

You might also like