59
Welcome to the SQL Server on Azure Workshops

SQL Server on Azure Workshops - mvpskill.com · The basic syntax for AzCopy commands is: AzCopy /Source: ... //gab2018rc1diag130.blob.core.windows.net/migration /Dest ... SQL Server

  • Upload
    vodat

  • View
    224

  • Download
    0

Embed Size (px)

Citation preview

1Welcome to the

SQL Server on Azure Workshops

Workshop 1:

Provisioning SQL Server in

Azure VM

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

Workshop 2:

Provisioning Azure SQL

Database

24

25

26

27

28

29

30

31

32

33

34

35

Workshop 3:

Migrating SQL Server

Databases to Azure SQL

Using Microsoft Azure Storage Tools (AzCopy)

Download Link :

https://docs.microsoft.com/en-us/azure/storage/common/storage-use-azcopy

AzCopy Location:

C:\Program Files (x86)\Microsoft SDKs\Azure\AzCopy

The basic syntax for AzCopy commands is:

AzCopy /Source:<source> /Dest:<destination> [Options]

Options:

/Pattern: , /SourceKey: , /DestKey

Backup your SQL Server Database file:

Sample:

C:\backups\SalesDBOriginal.bak

39

Sample Blob Store Location:

https://mvpskillazuresqldiag515.blob.core.windows.net/migration

40

Sample Blob Store Location:

https://mvpskillazuresqldiag515.blob.core.windows.net/migration

41

42

43

44

45

46

Blob Store Location: (find your own)

https://gab2018rc1diag130.blob.core.windows.net/migration

Access Key: (find your own)

Key1: ica/w5qZu8RV4A7WH9z3LOxoPtDKOyyHH8ZA1DgFJekQkza4qj9/IWXrd07HO7J4imifU59L443o6VsW2t4VVw==

Key2: bblLeDRDiwx/lTUx3O36SsLgYeCdb4qkMWg0Q9Np9HnOlC6w3D3/cDb6/hCBSgzHgsG5aMeBpYTKdhebhCfhMg==

47

SQL Server Backup File

https://www.sqlskills.com/sql-server-resources/sql-server-demos/

48

On your Desktop

49

AzCopy Running

• Copy backup file to Azure Storage

AzCopy /Source:"C:\backups\" /Dest:https://gab2018rc1diag130.blob.core.windows.net/migration

/DestKey:ica/w5qZu8RV4A7WH9z3LOxoPtDKOyyHH8ZA1DgFJekQkza4qj9/IWXrd07HO7J4imifU59L443

o6VsW2t4VVw== /Pattern:"SalesDBOriginal.bak"

• Copy backup file to VM

AzCopy /Source:https://gab2018rc1diag130.blob.core.windows.net/migration /Dest:"C:\backups\"

/SourceKey:bblLeDRDiwx/lTUx3O36SsLgYeCdb4qkMWg0Q9Np9HnOlC6w3D3/cDb6/hCBSgzHgsG5aM

eBpYTKdhebhCfhMg== /Pattern:"SalesDBOriginal.bak"

50

51

52On Azure VM

53

54

55

56

57

58

References:

Migrating SQL Server Databases to Azure

https://mva.microsoft.com/en-us/training-courses/migrating-sql-server-databases-to-azure-

16594?l=3BplDv1lC_5505121157

Find helpful learning material by visiting

https://aka.ms/mva-42322-msp

SQL Server database migration to Azure SQL Database

https://docs.microsoft.com/en-us/azure/sql-database/sql-database-cloud-migrate

59

THANK YOU