24
All You Wanted to Know about SQL Azure, but were Afraid to Ask @ krisherpi www.sqlazure.co.il [email protected] 02.11.15 1

SQL Azure for ISUG(SQL Server Israeli User Group)

Embed Size (px)

Citation preview

Page 1: SQL Azure for ISUG(SQL Server Israeli User Group)

1

All You Wanted to Know about SQL Azure,

but were Afraid to Ask@krisherpi

. . .www sqlazure co il.pinikr@etoro com

02.11.15

Page 2: SQL Azure for ISUG(SQL Server Israeli User Group)

2

Regulations vs Social DataHybrid infrastructure

Page 3: SQL Azure for ISUG(SQL Server Israeli User Group)

3

Goals:For who ever worked/did not work with AZURE.•What is PAAS • Azure and DB’s:• SLA – 99.99% (VM is 99.95%)• Portal, DTU, versions, Security,

•What are our limitations as DBA• Price - Cost• Cons• Pros

Page 4: SQL Azure for ISUG(SQL Server Israeli User Group)

4

Page 5: SQL Azure for ISUG(SQL Server Israeli User Group)

5

Azure Data offers (not in scope)

• Storage• VM• DocumentDB - nosql• Tables - key-value nosql• Hadoop• BI• ETL’s

Page 6: SQL Azure for ISUG(SQL Server Israeli User Group)

6

Names–PAAS in Azure

•SQL Azure•Azure SQL•SQL DB•SQL Database

Page 7: SQL Azure for ISUG(SQL Server Israeli User Group)

7

Azure Portals• Old Portal (azure.com).

• Left bar.• Main body.• Folders in main body.• Toolbars.

• New portal – new concept- ibiza(portal.azure.com).• Left bar.• Pin to task bar.• Main body.• Blades.

• Upper toolbar.• Blades….

Page 8: SQL Azure for ISUG(SQL Server Israeli User Group)

8

What can we do in Azure Portals• Security.

• Who can connect to DB – FW(Server layer).• Who can do what in the portal.• UN/Pass admin.

• Properties.• Size• tier

• Some configurations.• Auditing• Security features enabling• DR

• Monitoring.• Managing Alerts.• Restores / Copy• Delete DB

Page 9: SQL Azure for ISUG(SQL Server Israeli User Group)

9

What is Server• Virtual entity : •Capacity.•FW rules.•Auditing.•Admin•Portal Roles

Page 10: SQL Azure for ISUG(SQL Server Israeli User Group)

10

What is Server

Page 11: SQL Azure for ISUG(SQL Server Israeli User Group)

11

Connecting to SQL Azure

•SSMS. •VS. •PS. •Free tools (web, apps).

Page 12: SQL Azure for ISUG(SQL Server Israeli User Group)

12

DTU in SQL Azure

•What is DTU (Database Throughput Unit) - DTUs are based on a blended measure of CPU, memory, reads, and writes. As DTUs increase, the power offered by the performance level increases.

•How to monitor it – Portal, T-SQL•How to figure what is based on – T-SQL.

Page 13: SQL Azure for ISUG(SQL Server Israeli User Group)

13

Versions of SQL Azure•@@version.•DATABASEPROPERTYEX(@dbname, 'Version'). •Tiers•OLD - Business / Web.•V2 - Basic / S1 / S2 / P1 / P2 / P3.•V12 - Basic / S1 / S2 /s3 / P1 / P2 / P4 / P6 / P11.

Page 14: SQL Azure for ISUG(SQL Server Israeli User Group)

14

Versions of SQL Azure

Page 15: SQL Azure for ISUG(SQL Server Israeli User Group)

15

DR \ Backups

•Restore to point in time•Geo-Replica :•Standard (75% of the Price, Not Readable)

•Premium•No backups only ‘Copy’•Import \ Export

Page 16: SQL Azure for ISUG(SQL Server Israeli User Group)

16

Elastic Pools (in short)

•Concept.•Create.•Jobs.•Pricing

Page 17: SQL Azure for ISUG(SQL Server Israeli User Group)

17

What to do with what we DO NOT have - DBA

•Jobs – From on premise / Automation.•Cross DB Query (Now we have).•Error Log – Query.•DR – Script for Fail Over

Page 18: SQL Azure for ISUG(SQL Server Israeli User Group)

18

What to do with what we DO NOT have - Dev

• Retry policy• Short Transactions• Minimized connections

Page 19: SQL Azure for ISUG(SQL Server Israeli User Group)

19

Security•TDE•Always Encrypted•RLS•Data Masking•AD•Logins•Audit \ Threat Detection

Page 20: SQL Azure for ISUG(SQL Server Israeli User Group)

20

Page 21: SQL Azure for ISUG(SQL Server Israeli User Group)

21

More•Master DB - queries•Query Store• Index Advisor• In-Memory OLTP•EE – to blob/buffer (Already PP)•2016 Stretch DB into SQL Azure

Page 22: SQL Azure for ISUG(SQL Server Israeli User Group)

22

Stories• Huge transaction by developer, He changed tier during the transaction – Need short transactions, every

transaction goes to 3 replicas… sync..

• Changes that are not documented in V2 and V12 (Bulk insert to tempDB due to scratch DB feature) –

Need to be aware.

• Social Feed into shards.

• Archive – DB size limit

• Pricing – developers create objects as they want…

• SAAS data to On-Premise: Mobius – Anonymous Data.

Page 23: SQL Azure for ISUG(SQL Server Israeli User Group)

23

So.. What's Next

•Transactional replication(Already PP)•Security•SQL DWH•Multi DB’s Query (Already PP)

Page 24: SQL Azure for ISUG(SQL Server Israeli User Group)

24

Goals•What is PAAS • Azure and DB’s:• SLA – 99.99% (vm is 99.95%)• Portal, DTU, versions, Security,

•What are our limitations as DBA• Price - Cost• Cons• Pros