Presentation is loading. Please wait.

Presentation is loading. Please wait.

Bellevue College Workshop Azure Storage & SQL Mohamed El Hassouni Hans Olav Norheim.

Similar presentations


Presentation on theme: "Bellevue College Workshop Azure Storage & SQL Mohamed El Hassouni Hans Olav Norheim."— Presentation transcript:

1 Bellevue College Workshop Azure Storage & SQL Mohamed El Hassouni Hans Olav Norheim

2

3 Queues Reliable queues at scale for cloud services Decouple and scale components Message visibility timeout and update message to protect against unreliable dequeuers Code against (REST API) Use on Windows & Linux VMs Azure Storage Documentation http://aka.ms/AzureStorageDocshttp://aka.ms/AzureStorageDocs

4 Low Control Shared Lower cost Dedicated Higher cost High Control Hybrid Cloud On premises Off premises SQL Server Physical Machines (raw iron) SQL Server Private Cloud Virtualized Machines+ Appliances SQL Server in WA VM Virtualized Machines Virtualized Databases WA SQL Database

5 SQL Database Service A relational database-as-a-service, fully managed by Microsoft. For cloud-designed apps when near-zero administration and enterprise-grade capabilities are key. Perfect for organizations looking to dramatically increase the DB:IT ratio.

6 Storage and SQL Database: Activity 1 Friday, March 6, 2016 Bellevue College Cloud Workshops Create and connect to a SQL Database 1.Login to the Azure portal 2.Click New  Data + Storage  Sql Database (new database) 3.Enter a database name 4.Select a resource group 5.Click Server  Create a new server 6.Enter a server name, server login and password and click Select 7.Click on Pricing tier and select B Basic and click Select and then Create 8.Click on All Resources in the left pane. 9.Once your server is created, click on it. 10.Click “Show firewall settings” 11.Click on + Add Client IP and click Save 12.Click on Settings  Properties to get the server name and admin login 13.Connect from Management Studio a)Open SQLServer Management Studio b)Enter your server name, login and password and click Connect a)You can get the server information from the portal by clicking on your server  All Setting  Properties c)Expand Databases -> your database d)You are now connected to your database 14.You can also connect to your database from Visual Studio 1.On your database blade in the portal, click on Tools  Open In Visual Studio

7 Storage and SQL Database: Activity 2 Friday, March 6, 2016 Bellevue College Cloud Workshops Create a table and insert a few records 1.On SQL Server Management Studio click on your database and click the New Query button 2.Type and execute the following script to create an employee table and insert a few employees CREATE TABLE dbo.Employee ( EmployeeID int PRIMARY KEY CLUSTERED, FirstName VARCHAR(25), LastName VARCHAR(25), JobTitle VARCHAR(25) ); INSERT INTO dbo.Employee VALUES (1, 'Luke', 'Skywalker', 'Jedi') INSERT INTO dbo.Employee VALUES (2, 'Han', 'Solo', 'Jedi') INSERT INTO dbo.Employee VALUES (3, 'R2', 'D2', 'Droid') SELECT * FROM dbo.Employee

8 Storage and SQL Database: Activity 3 Create a storage container, upload/download/browse files 1.Login to the Azure portal 2.Click New  Data + Storage  Storage Account 3.Enter the storage account name 4.Select a resource group 5.Select a location and click Create 6.After the storage account is created, click on it. 7.Click on blobs 8.Click the + Container button to create a new container 9.Enter a container name and click Create 10.Open the Microsoft Azure Storage Explorer ( http://storageexplorer.com/ ) http://storageexplorer.com/ 11.Connect to your Microsoft Account by clicking the “Connect to Microsoft Azure” button. 12.Click on your newly created storage account and expand it 13.Expand Blob Containers and double click on your container 14.Click the Upload button, select upload files… 15.Select a file and click Upload 16.Go back to the portal and click on your container 17.Click on the newly uploaded file 18.Click Download Friday, March 6, 2016 Bellevue College Cloud Workshops

9 Storage and SQL Database: Activity 4 Friday, March 6, 2016 Bellevue College Cloud Workshops Point in time database restore 1.In SQL Server Management Studio, select your database and click the New Query button 2.Take note of the current time. Write it down somewhere. 3.Let’s drop the table by executing the following statement 4.On the azure portal, click on your database 5.Click the Restore button 6.Enter the time your noted in step #2 in the Restore Point (Add 7 hours for UTC) 7.Click Ok 8.Once the restore is completed, go back to SQL Server Management Studio and refresh the list of databases (right click  Refresh) 9.You should see the newly restored database. Click on it and click the New Query button 10.Verify that the table has been restored by running the following sql statement SELECT * FROM dbo.Employee DROP TABLE dbo.Employee


Download ppt "Bellevue College Workshop Azure Storage & SQL Mohamed El Hassouni Hans Olav Norheim."

Similar presentations


Ads by Google