83
Introduction to Microsoft Azure (Day 1) Narisorn Limpaswadpaisarn Microsoft Partner Technology Strategist [email protected]

Microsoft Azure day 1

Embed Size (px)

Citation preview

Page 1: Microsoft Azure day 1

Introduction to Microsoft Azure (Day 1)

Narisorn LimpaswadpaisarnMicrosoft Partner Technology [email protected]

Page 2: Microsoft Azure day 1

Outline1. Cloud and Azure Introduction2. VM Pricing3. Azure Portal4. การสราง Server บน Cloud

4.1 Virtual Machine4.2 VM components

5. Storage6. Back up (Recovery Service)Case Scenario

Page 3: Microsoft Azure day 1

Objective

1. เพอใหผเขารวมมความเขาใจ เบองตนใน ระบบ cloud ของ Microsoft2. เพอใหเกดความเขาใจในการ คด ราคา ของ Server และ การ Backup

Page 4: Microsoft Azure day 1

1. Cloud and Azure Introduction

Page 5: Microsoft Azure day 1

Microsoft Azure Microsoft Azure คอ Cloud platform ททาง Microsoft ไดเตรยมไวสำาหรบองคกร ทตองการพฒนา และ ปรบปรง

ศนยขอมล (Data Center) เพอใหรองรบความตองการทางธรกจไดอยางมประสทธภาพ

ในระบบ cloud ทเปนแบบ Public cloud ของ Microsoft Azure จะชวยตอบโจทยในเรองของ

1. ความยดหยนในการใหบรการ 2. ความยดหยนในการใชงานและราคา 3. ความปลอดภยของระบบ

Page 6: Microsoft Azure day 1

รปแบบการใหบรการ

Page 7: Microsoft Azure day 1

ความยดหยนในการใชงานและราคาIT extended, Backup & Disaster Recovery

Auto-Scaling, Pay as you go

Flexible platformRun your apps anywhere

Page 8: Microsoft Azure day 1

ความปลอดภยในระบบ

https://azure.microsoft.com/en-us/support/trust-center/

Page 9: Microsoft Azure day 1

ความปลอดภยในขอมล

1. You own your data

2. You are in control of your data

Page 10: Microsoft Azure day 1

Option การซอ Azure

Page 11: Microsoft Azure day 1

Get Azure Trial1. Get Azure Pass Promo Code from Instructor ( ตองม Microsoft mail account กอน เชน Hotmail หรอ Outlook)2. ไปท https://www.microsoftazurepass.com/ 3. เลอก Thailand แลวใส Promo Code แลว คลก Submit

4. ยนยนขอมล แลว คลก Submit 5. ยนยนจะใช Azure Pass โดยคลก Active และ คลก Sign-up (with your Microsoft mail account)

6. รอ การ provision เมอเสรจแลว คลก Start managing my service > ระบบจะเขาไปท portal ของ Azure7. ปดหนาตาง แลวไป part ตอไป

Page 12: Microsoft Azure day 1

2. VM pricing

Page 13: Microsoft Azure day 1

VM cost estimationTest or

ProductionServer

ใส Disk ทงหมดกลก?

Core? RAM?Window or

Linux?Bandwidth เทา

ไหร? Backup?

Test server- Basic

Production Server

- Standard

HDD (Drive D:)

- Std A-series

SSD (Drive D:)

- Std D-series

ConsumeMax 1 TB per disk each(Page blob)(LRS, GRS or RA-GRS)

Inbound -

Free

Outbound-

Zone 2

Azure Backup- Protected

+

- Consume (Block blobs)

(LRS or GRS)

QNAP Backup - Bandwidth (Zone 2)

+- Consume

(Block blobs)

(LRS or GRS)

Page 14: Microsoft Azure day 1

VM components 1. Virtual Machine sizes 2. Attach disks/storage 3. Outbound Bandwidth 4. IP 5. Backup service 6. Service Support

* ถาใชงานตลอดเวลา: 1 เดอนของ Microsoft คดเปน 744 ชวโมง

Page 15: Microsoft Azure day 1

Virtual Machine sizes (Window & Linux)

OS Window OS LinuxMax data disks กลก (1TB each) = 1, 2, 4, 8, 16 ตามลำาดบ

IOPS = 300/ ลก

(D:) temp

For Test/dev, single instance production. No load balancing and auto-scaling

Page 16: Microsoft Azure day 1

Virtual Machine sizes (Window & Linux)

OS Window OS LinuxMax data disks กลก (1TB each) = 1, 2, 4, 8, 16, 4, 8, 16 ตาม

ลำาดบ IOPS = 500/ ลก

(D:) temp

Page 17: Microsoft Azure day 1

Virtual Machine sizes (Window & Linux)

OS Window OS Linux

Max data disks กลก (1TB each) = 2, 4, 8, 16, 4, 8, 16, 32 ตาม ลำาดบ IOPS = 500/ ลก

(D:) temp

Page 18: Microsoft Azure day 1

Virtual Machine sizes (Window & Linux)

OS Window OS Linux

Max data disks กลก (1TB each) = 2, 4, 8, 16, 32, 4, 8, 16, 32 ตาม ลำาดบ IOPS = 500/ ลก

(D:) temp

Intel Xeon Haswell ProcessorCPU จะเรวกวา D-series

ประมาณ 35%

Page 19: Microsoft Azure day 1

Virtual Machine sizes (Window & Linux)

OS Window OS Linux

Max data disks กลก (1TB each) = 4, 8, 16, 32, 64 ตาม ลำาดบ IOPS = 500/ ลก

(D:) temp

Page 20: Microsoft Azure day 1

Virtual Machine sizes (Window & Linux)

Create ไดในNew Portal

Attach เขาทรนD หรอ G

series เปนDS, GS series

Page 21: Microsoft Azure day 1

Attach disk storage ถาไมใช premium จะคดราคาตามทจ ไมใชตาม

size ทเรา attach

Page 22: Microsoft Azure day 1

Outbound Bandwidth

1. ไมม คา Inbound2. ในกรณ Outbound เกน

500 TB ใหตดตอ[email protected]

Page 23: Microsoft Azure day 1

IP1. โควตา IP ตอ 1 subscription จะม

- Reserved IP ได 20 ตว ( ฟร 5 ตวแรก)- 5 PIP (ไมฟร)- ถาอยากไดเกนโควตาใหตดตอ[email protected]

2. เมอ Stopped-Deallocated - Reserved IP ยงคดเงนอย- PIP ทสรางมาแลว ไมคดเงน- เศษชวโมงปดขน ( เรมนบชวโมงท 2)- ใช PowerShell เพอ delete ไมใหคดเงน

3. Reserve IP ทสรางมาแลวแตไมได delete ถาเอาไป map กบ cloud service ตวใหม จะ

เสยคา remaps PIP cost = $0.004/hour per IP (~$3/month per IP)Load-balanced VIP = $0.004/hour per IP (~$3/month per IP) -> 5 IPs per cloud service/vm

Page 24: Microsoft Azure day 1

Backup มคา 2 คา แยกกน ( คอ protected instance + storage) เครอง(vm, application server, window client) ทลงตว Back up agent (protected instance)

Storage ในน จะเปน ชนด Block blobs และ มใหเลอกระหวาง LRS และ GRS

Page 25: Microsoft Azure day 1

Backup

Page 26: Microsoft Azure day 1

Service support See next slide

Page 27: Microsoft Azure day 1

• 02-263-6888 • 001-800-441-0560 ((ฟรคาบรการ))

สามารถตดตอไดทกวนตลอด 24 ชวโมง ยกเวนวนหยดนกขตฤกษ (สำาหรบภาษาไทยจะมเฉพาะวนจนทร ศกร เวลา – 9:00 – 21:00 น.) เมนลกคาสมพนธ: https://support.microsoft.com/th-th/gp/contactoptionsCall Center (ทกผลตภณฑ)

Channel

Paid

Activation Center: การเปดใชงานผลตภณฑ ตดตอไดท 02-263-6888 หรอ 001-800-441-0560 หรอ 001-800-2468-1668 ใหบรการทกวนตลอด 24 ชวโมง ยกเวนวนหยดนกขตฤกษ (สำาหรบภาษาไทยจะมเฉพาะ วนจนทร ศกร เวลา – 9:00 – 21:00 น.) ((ฟรคาบรการ))……………………………………………………………………………………………………………………………………………………… Microsoft Virtual Academy เรยนร และลองใช ไมโครซอฟทเทคโนโลยแบบเจาะลก โดยไมเสย คาใชจาย: https://www.microsoftvirtualacademy.com/ ……………………………………………………………………………………………………………………………………………………… TechNet แหลงอปเดตเทคโนโลยสำาหรบผเชยวชาญดานไอท: https://technet.microsoft.com/en-us/ ……………………………………………………………………………………………………………………………………………………… MSDN แหลงอปเดตเทคโนโลยสำาหรบนกพฒนา: https://msdn.microsoft.com ……………………………………………………………………………………………………………………………………………………… การสนบสนนดานเทคนค Window Live, Outlook.com: https://support.live.com/

Microsoft Volume Licensing Service Center: 001-800-441-0231 ใหบรการวนจนทร ศกร เวลา – 9:00 – 18:00 น. (ภาษาไทย) หรอ ตดตอทางอเมลท [email protected] ((ฟรคาบรการ)) ………………………………………………………………………………………………………………………………………………………………… Care Line หากมขอสงสยเหรอตองการสอบถามขอมลเกยวกบ Windows Phone ตดตอไดท 02-255-2111 ใหบรการวนจนทร ศกร ยกเวนวนหยดนกขตฤกษ เวลา – 9:00 – 18:00 น.………………………………………………………………………………………………………………………………………………………………… Live Chat สามารทำาการสนทนาออนไลนเพอรบคำาแนะนำา ทกวนจนทร ศกร – Windows Phone เวลา 9:00 – 18:00 น.: https://www.microsoft.com/th-th/mobile/support/contact/ MS ผลตภณฑอนๆ เวลา 9:00 – 21:00 น.: https://support.microsoft.com/en-us/gp/contactoptions/th# ………………………………………………………………………………………………………………………………………………………………… Pinpoint เครองมอชวยคนหาขอมลสำาหรบคคาไมโครซอฟททเหมาะกบความตองการ: https://pinpoint.microsoft.com/th-TH/home

Channel

Free

ตดตอไดท 001-800-441-2619 ((ฟรคาบรการ))• คำาถามทวไปเกยวกบผลตภณฑ ราคา

การชำาระคาใชจาย การยกเลกการใชงาน ใหบรการวนจนทร ศกร เวลา – 9:00 – 18:00 น. ยกเวนวนหยดนกขตฤกษ

(ภาษาไทยจะมเฉพาะวนจนทร ศกร เวลา – 9:00 – 17:00 น.)• แจงปญหาทางดานเทคนค ตดตอไดทกวนตลอด 24 ช.ม ยกเวนวนหยดนกขตฤกษ (สำาหรบภาษาไทยจะมเฉพาะวนจนทร ศกร เวลา – 9:00 – 17:00 น.)

• หากมปญหาเรองการเปดใชงาน การ Activationตดตอไดท 001-800-441-2619 ((ฟรคาบรการ))

• หากมปญหาดานการสงซอ ตดตอไดท 02-263-6888 ใหบรการวนจนทร ศกร เวลา – 9:00 – 18:00 น. ยกเวนวนหยดนกขตฤกษ (สำาหรบภาษาไทยจะมเฉพาะวนจนทร ศกร – เวลา 9:00 – 17:00 น.)

แจงปญหาทางดานเทคนคตดตอไดท : 02-263-6888 หรอ001-800-441-0560 ((ฟรคาบรการ))ตดตอไดทกวนตลอด 24 ชวโมง ยกเวนวนหยดนกขตฤกษ (สำาหรบภาษาไทยจะมเฉพาะวนจนทร ศกร –เวลา 8:00 – 17:00 น.)

https://portal.office.com/ https://datamarket.azure.com/support https://www.microsoft.com/surface/th-th/support/

Paid

Premier Support: 02-263-6802ตดตอไดทกวนตลอด 24 ชวโมง

Premier Support: 02-263-6802ตดตอไดทกวนตลอด 24 ชวโมง

https://premier.microsoft.com/ https://premier.microsoft.com/ 

Page 28: Microsoft Azure day 1

3. Azure Portal

Page 29: Microsoft Azure day 1

Portal ทง 2 ชนด ของ Azure

https://manage.windowsazure.com https://portal.azure.com/

Old portal / Management Portal New portal / Preview Portal

ใน new portal user จะไดลอง feature ใหมๆ ทใน portal เกาไม support เชน Premium Storage, VM version ใหมๆ

Page 30: Microsoft Azure day 1

การ login

Page 31: Microsoft Azure day 1

New portal1. ไปท https://portal.azure.com/ แลวใส username/password จะเขาไปท Portal ใหม2. คลกท subscription แถบซายมอ เพอดชอ subscription name และ ID ของเรา3. คลกทชอ subscription (Azure pass) จะม tile ขยายออกมา ใหด billing ได4. สามารถ scroll down มาดคาตางๆ เชน billing, วนทเหลอทจะใช Azure ได และถาอยากเอาคานนมาท

หนาหลก … ใหคลกทปม และเลอก pin to dashboard เชน Cost by resource5. ปด tile ทงหมดจะเหน หนา billing ใน dashboard เรา สามารถ เลอกจดหนา dashboard ไดโดย คลก

ท edit6. ใหปดทงหนาตางน เพอไป part ตอไป 5.

2.

4.

Page 32: Microsoft Azure day 1

Old portal1. ท https://manage.windowsazure.com ทแถบซาย เลอนลงมาจนสด คลกท Setting2. ท subscription จะโชว subscription name และ ID ใหเราเหน

3. ท ดานบน credit status จะโชว จำานวนเงน + วนทเหลอ ในการใช Azure สามารถ คลกเขาไปด รายละอยดหนาSummary ได

1.

3.

Page 33: Microsoft Azure day 1

การออกคำาสงตางๆ ใน Azure 1. Click & type ใน Interface ตางๆใน Azure portal 2. PowerShell command http://aka.ms/webpi-azps

Page 34: Microsoft Azure day 1

Check points 1. การ log in ทำาไดโดย Microsoft Account 2. Azure ม Portal 2 แบบ คอ management portal (เกา) และ preview portal (ใหม)

3. การควบคมคำาสงตางๆใน Azure ทำาไดผาน interface ใน portal และPowerShell command

Page 35: Microsoft Azure day 1

4. การสราง Server บน Cloud

Page 36: Microsoft Azure day 1

4.1 Virtual machine

Page 37: Microsoft Azure day 1

Virtual Machine- VM เปน service ในหมวดของ IaaS- ทำาหนาทเปน Server จำาลองทำางานไดเหมอน เครอง Server หรอ PC เครองหนง- รองรบ ทงระบบปฏบตการ Window, Linux- ม spec ของเครองทหลากหลาย

Page 38: Microsoft Azure day 1

รองรบระบบปฏบตการทง Window และLinux

Page 39: Microsoft Azure day 1

Supported/Unsupported workloads

For others servers https://support.microsoft.com/en-us/kb/2721672

For Window ServerSupportedActive Directory Domain ServicesActive Directory Federation ServicesActive Directory Lightweight Directory ServicesApplication ServerDNS ServerFailover ClusteringFile ServicesNetwork Policy and Access ServicesPrint and Document ServicesRemote Access (Web Application Proxy)Remote Desktop ServicesWeb Server (IIS)Windows Server Update Service

For Window ServerUnsupported featuresBitLocker Drive Encryption (on the operating system hard disk; may be used on data disks)

Internet Storage Name ServerMultipath I/ONetwork Load BalancingPeer Name Resolution ProtocolSNMP ServicesStorage Manager for SANsWindows Internet Name ServiceWireless LAN Service

For Window ServerUnsupportedDynamic Host Configuration Protocol ServerHyper-VRemote Access (Direct Access, Routing)Rights Management ServicesWindows Deployment Services

Page 40: Microsoft Azure day 1

Create a new 1st VM 1. ท https://manage.windowsazure.com แถบซายมอ แลว เลอกไปท Virtual machine 2. หรอ คลกมมซายลางท +New -> Compute -> Virtual Machine -> From gallery

3. หนา Image gallery เลอก Window Server 2012 R2 Datacenter แลว กดลกศรขวามอ

4. หนาตอมา ใสชอ virtual machine (Version, Tier, Size คงไว) ใสUsername/password

ไว log in เขาเครอง แลว กดลกศรขวามอ

1.

Page 41: Microsoft Azure day 1

Create a new 1st VM ใน Page ท 3

Cloud service: ใหเลอกสราง cloud service อนใหม

Cloud service DNS Name: ใหตงชอใหม หรอ จะ ใชตามชอของ vm กได

Region/Affinity Group/ Virtual Network: ใหเลอก Southeast Asia Storage Account: เลอก Use an automatically generate storage account

Availability Set: ใหเลอก (None) Endpoints: ใหคงคาไว

เมอเสรจแลวกดลกศรขวามอ

Page 42: Microsoft Azure day 1

Create a new 1st VM หนาทจะเปนการ ลง 3rd party agent

ตางๆเพอ เพมความสามารถใหกบ vm ใหเราคงคาไว

Install the VM Agent ไวเพอการ manage extension ใน

อนาคต

แลวกด เครองหมายถกเพอ create vm ซงจะใชเวลา 5-10 นาท

Page 43: Microsoft Azure day 1

ทดลอง RDP เมอ vm ได provisioning “เรยบรอยแลวสถานะ running” ให ทดลอง log in โดยกด connect

ในกรณ ท สถานะ VM “ไมไดอยใน running” ใหโดยกดท Start ดานลาง กอนแลวคอย กด connect

จะ download ไฟล RDP มาให save ไว แลว double click เพอ login แลวใส username/password เมอผาน แลวกด Yes เพอเขาส vm

Window จะใช RDP ในการ access เขา vm สวน Linux จะใช SSH

Page 44: Microsoft Azure day 1

Usage cores limitation ใน portal เราสามารถ run vm พรอมๆกนไดหลายตว แต ผมรวมของ core ของ vm จะ

ไดไมเกน 20 สามารถขอตดตอ เปด ticket กบทาง Microsoft ในเพม จำานวน core ใหเกน 20 ได

จากรป vm ทกตวเปน A3 ม 4 cores ฉะนนจง เปดพรอมกนใหทำางานได 5 ตวใน portal ดผลรวมไดในหนา Dashboard

Page 45: Microsoft Azure day 1

Check points 1. VM เปน บรการ ภายใต IaaS 2. รองรบระบบปฏบตการ/workload ทหลากหลาย เชน Window/Linux 3. workload และ features ของ vm ไมไดรอบรบหมดควรด ขอจำากดประกอบ

Page 46: Microsoft Azure day 1

4.2 VM components

Page 47: Microsoft Azure day 1

Status ของ vm 1. Running: vm กำาลงเปดใชงานอย จะถก billing 100% 2. Stopped: Core ของ vm หยดทำางาน จะถก billing บางสวน ( ทำาไดโดย Start -> Shutdown ใน vm)

3. Stopped (Deallocated): vm หยดทำางานทงหมด ไมถก billing ( ทำาไดโดยShutdown ใน portal)

ขอควรระวงStop-deallocated จะทำาให

ขอมลในD: Drive ซงเปน temp

drive หายดวย

Page 48: Microsoft Azure day 1

VM default drives (C: & D:) C: Drive มไวเกบ ขอมลของ OS มขนาด 127 GB

D: Drive เปน temporary drive ไวสำาหรบ เกบขอมลชวคราว paging ไฟล มขนาด แลวแต spec ทเลอก

Page 49: Microsoft Azure day 1

Storage ตอน create vm Storage ทเกบ vhds ไฟล ของ vm จะถกเกบไวภายใต ชอทอาน

ยาก เขาไปดไดโดยคลกลกศรซาย ขาง Storage account ทตองการ แลวไปท container เราสามารถสราง storage เปลาๆ โดยตงชอใหอานงาย กอน แลวคอยสราง vm แลวlink อกท

Page 50: Microsoft Azure day 1

Cloud Service• เปนเสมอน Container สำาหรบใส vm ละ link resource ตางๆท เกยวของกบ vm (1 cloud มไดถง 50 vm)• Cloud service จะได public IP (VIP) และ DNS name (xxx.cloudapp.net) • พอสราง vm ตางๆ ใน cloud service จะได DIP ทเปน private จาก cloud service ม storage account ไวเกบ

VHD, disks• vm ทอยใน cloud service เดยวกน สามารถคยกนตรงไดเลย โดย DIP• Port ตางๆจะ อนญาต ใหสงไปท vm โดยเปด end point ผาน Public IP • ถา vm ใน cloud service ทกตว stopped (Deallocated) เมอเปดใหม cloud service จะได public IP ใหม

** vm ทตาง cloud service กนจะคยกนตรงๆไมได จงจำาเปนตองสราง Virtual network

Page 51: Microsoft Azure day 1

Cloud Service ในการสราง vm ตวแรก ใน cloud service ตว size ของ vm ตวแรกใน cloud service จะเปนตวกำาหนด group ของ vm ตวตอไปทสรางไดใน cloud service อนนน ·  Type 1: A0-A4 (Basic) ·  Type 2: A0-A7 (Standard) ·  Type 3: A8/A9 ·  Type 4: A0-A7 and D1-D14 ·  Type 5: G1-G5 ·  Type 6: DS1-DS14  

Page 52: Microsoft Azure day 1

Resize vm การ Resize ทำาไดโดย ไปทหนา configure ของ vm นนๆ แลวไปเลอก Dropdown list แลวกด save ซงการ Resize ก เปนไปตามกรปใน slide ทแลว เชนเดยวกน

* การ resize อาจทำาใหระบบตอง restart vm

Page 53: Microsoft Azure day 1

Virtual Disk• vm สามารถ ใส virtual disk เปลาๆ(empty disk) เพอเพม storage

capacity ใหกบ vm ได หรอ upload disk ทมขอมลจากทอนมาใสได• จำานวน disk ทใสไดจะอยท spec ของ vm ทเราเลอก• Virtual Disk 1 ลก ได maximum ความจท 1 TB• สามารถ นำา virtual disk มารวมกนทำา storage pool เพอเพมความเรว

อานเขยน IOPS ได ( ทำาใน window server)

Page 54: Microsoft Azure day 1

Endpoints เปนเสมอน Firewall แรก กอนเขา vm ( ใน vm เชน window server กม firewall

ของมนเองอกท) โดยเบองตน เวลา create vm จะม 2 port เปดอย คอ Remote desktop และ

PowerShell

Page 55: Microsoft Azure day 1

3 types of IP address 1. Virtual public IP (VIP): Cloud services

จะได IP นมาจาก xxx.cloudapp.net, จะถกเปลยนเมอ เปดจากสภาพ stopped (deallocated)

2. Dynamic IP (DIP): เมอ cloud service ไดVIP มาแลว จะจาย private IP แบบ dynamic ให vm

3. Instance-level public IP (PIP): เปน IP แบบ on-demand ตรงส vm (RDP ตรงไดเลย) ซงจ

ะ bypass endpoint ทำาไดโดย คำาสง PowerShell, จะ ถกเปลยนเมอ เปดจากสภาพ stopped (deallocated)

*Reserved IP: เปน VIP ท user ใชคำาสงจองไว IP จะ

ถกลอคไว และไมเปลยนแม vm จะเปดจากสภาพstopped (deallocated) ทำาไดโดย คำาสง PowerShell

Page 56: Microsoft Azure day 1

3 types of IP addressLoad-balanced IP: คอ VIP ท assign เพมเตม ให cloud service/vm เพอทำาการ load balancing

Microsoft public IP poolhttp://www.microsoft.com/en-us/download/details.aspx?id=41653

Page 57: Microsoft Azure day 1

Create cloud service สามารถสราง cloud service เปลาๆ กอนแลวคอย สราง vm เพอใสเขาไปได

1. ท https://manage.windowsazure.com ทแถบซาย เลอนลงมา คลกท Cloud services 2. คลก +new ทลางสด ซายมอ Compute -> Cloud service -> Quick create

3. ตงชอ URL ( ท unique), Location เปน Southeast Asia 4. คลก Create cloud service

2.

1.

4.

Page 58: Microsoft Azure day 1

Add empty disk to vm1. ท https://manage.windowsazure.com ทแถบซาย มาท Virtual Machines2. ทมาทชอ virtual machine ทตองการ คลกท Attach -> Attach empty disk3. คาทระบบเตมไวทกอยางใหคงท4. ปรบขนาด side in GB ได สงสด 1 TB (1023 GB)5. คลกท เครองหมายถกเพอเรม attach รอการ update สกพก

1.

2.

Page 59: Microsoft Azure day 1

Add empty disk to vm 6. RDP เพอ access เขา vm นน ใส username/password 7. เมอ login เขามา desktop ใหเขามาท Server Manager 8. เมอเขามาซายมอ คลกท File and Storage services -> disk จะเหน disk ตวนง ขน unknown อย 9. คลกขวาท disk เลอก new volume 10. ให หนาแรก หนาสอง คลก next 11. Size ใหใชเตมคามทเคยใสไว คลก next 12. Drive letter เลอกไดตามใจชอบ คลก next จน สดทายเลอก create 13. คลกท file explorer จะเหน new volume ใหมเขามา

7.

8.

13.

Page 60: Microsoft Azure day 1

ทดลองเปด Endpoints Endpoint สามารถเปดได 3 ท โดยใช PowerShell, ตอนสราง vm และ จากหนาของEndpoints ใน portal

ถาเปดจากหนา Endpoints ทำาไดโดย คลกลกศรซายทตว vm ทตองการแลวคลกendpoints

Page 61: Microsoft Azure day 1

ทดลองเปด Endpoints จะเหน list ของ Endpoints ทเปดให vm ตวน ใหเลอก add พอเปดเพม

เลอก add a stand-alone endpoint แลว กดลกศรซายมอ

Page 62: Microsoft Azure day 1

ทดลองเปด Endpoints Name: จะม list protocol ตางๆทมใหเลอก เชน FTP, HTTPS Drop down เปน HTTP Protocol: ใหเปน TCP Private port และ Public port ใหใส 80

แลวกด เครองหมายถก

Page 63: Microsoft Azure day 1

Test VIP 1. ท https://manage.windowsazure.com ทแถบซาย มาท Virtual Machines

2. ไป vm ท running อยแลวคลก ลกศรซาย

3. คลก Dashboard แลวสงเกต คา DNS name, public IP (VIP) และ Internal IP

1.

2.

3.

Page 64: Microsoft Azure day 1

Test VIP4. ท Desktop คลกขวา start แลว คลก command prompt (Admin) ( หรอพมพท search วา cmd)5. พมพ คำาสง nslookup xxx.cloudapp.net ( ชอ dns ของ cloudservice เรา)6. สงเกต วา IP จะตรงกบทโชวใน portal7. ไปท Dashboard ของ vm อกตวทอยใน cloud service เดยวกน สงเกตวน VIP จะอนเดยวกน

Page 65: Microsoft Azure day 1

Auto-scaling เปนการ scale out โดย เราจะ สราง vm หลายๆตว เปน spare เอาไวแลวตงใหอยในcloud service เดยวกน Availability set เดยวกน และ vm size เทากน แลวไปตง

วนเวลา หรอ rule ระบบเปด/ ปด vm มาชวยในตามทกำาหนด ในหนา scale ของ cloud service นนๆ

Page 66: Microsoft Azure day 1

Checkpoints 1. Status ของ vm “ทเปน stop deallocated” จากการ shutdown ท portal จะไม

ถก billing แต ขอมลใน Drive D: หาย 2. Cloud storage รบ public IP (VIP) และแจก private IP (DIP) ให vm ทงหมด

ในตวมน (max vm = 50) 3. ถา vm ทกตว stop deallocated แลวเปดมาใหม cloud service จะได public IP ใหม

4. vm ทอยใน cloud service เดยวกนจะคยตรงกนเองได 5. Virtual disk 1 ลก จสงสด 1 TB จำานวน disk ทใสไดตาม spec ของ vm นนๆ 6. Endpoint ทำาหนาคลายเปน Firewall แรกกอนเขาส vm ควบคม port ตางๆ 7. Auto-scaling ตองอยใน Availability set เดยวกน cloud service เดยวกน และvm size เดยวกน

Page 67: Microsoft Azure day 1

5. Storage

Page 68: Microsoft Azure day 1

Storage types 1. Blob storage เกบทงขอมล backup, document, picture, video

ในสวนของ VM ตว ไฟล VHD จะเรยกวาเปน ชนด Page Blob & Disks ซงภายใตหมวดนเชนกน

2. File storage ทำาหนาทเปน file share ระหวาง apps ท run บน vm ดวยกนรวมไปถงให on-premise มา access ได

3. Table storage เกบขอมลจำาพวก NoSQL เปน unstructured เหมะสำาหรบ web applications และaddress books มการใช key access เพอความปลอดภย

4. Queue storage เปนการเกบขอมลเพอ ให การ message สงขอมล workflow ไมซำาซอนกนระหวางresource ใน cloud service

Page 69: Microsoft Azure day 1

Storage account types1. LRS = Locally Redundant Storage

ขอมลสำาเนา 3 ชด ใน 1 zone ใน 1 region2. ZRS = Zone Redundant Storage

เกบขอมล block blobs หลายๆ zone ใน 1 region ซง ไม support vm ทขอมลเปน page blobs3. GRS = Geo-Redundant Storage

ขอมลสำาเนา 6 ชด ใน 2 region (region ละ 3 ชด)4. RAGRS = Read-only Access Geo-Redundant Storage (for max data availability/durability)

เปนประเภท GRS ซง primary location จะได read/write (xxx.blob.core.windows.net) สวน Secondary location จะเปน read-only (xxx-secondary.blob.core.windows.net)

5. Premium Storage เปนประเภท LRS แตขอมลจะอยท high performance SSD based storage (low latency) support

ใหแคเฉพาะ vm https://azure.microsoft.com/en-us/documentation/articles/storage-redundancy/

Page 70: Microsoft Azure day 1

GRS primary/secondary regions pairing

Page 71: Microsoft Azure day 1

Create storage 1. ท https://manage.windowsazure.com แถบซายมอ เลอนแลวเลอกไปทStorage

2. คลก +new ทลางสด ซายมอ Data service -> storage -> Quick create 3. ตงชอ URL ( ท unique), Location เปน Southeast Asia และ Replication

เปน Geo-redundant 4. คลก create storage account

1.

2.

3.

Page 72: Microsoft Azure day 1

Change replication type ทำาไดโดย ไปท storage account ทตองการ กดลกศรขางชอ account แลวไปท แถบconfigure

เลอกเปลยน replication ตามตองการ แลวกด save ระบบกจะเตอนวา pricing จะ เปลยนใหกด yes

Page 73: Microsoft Azure day 1

Checkpoints 1. Premium Storage เปน แบบ LRS และ support เฉพาะ vm 2. GRS เกบขอมล 6 สำาเนา แบงไป 2 regions ทละ 3 ชด 3. VHD เกบเปนชนด page blob & disks

Page 74: Microsoft Azure day 1

6. Backup (Recovery Services)

Page 75: Microsoft Azure day 1

Recovery Services 2 Types of vault 1. Site Recovery vault – DR site

2. Backup vault – file backup and VM back up

Page 76: Microsoft Azure day 1

Backup vault (Data) 1. RDP ไปใน vm ทเราสราง ท Server Manager มาท Local server 2. มาท IE Enhance Security Configuration คลก ตรง on 3. เลอก off ทง Administrators และ users แลวกด ok แลว กด F5 เพอ refresh จะเหนมนขนวา off (เราจะเขาwebsite ตางๆใน vm ได)

4. เขา IE มาท https://manage.windowsazure.com แลว sign in พอเขาหนา portal แลว คลก +new ทลางสด ซายมอ Data services -> Recovery services -> Backup vault -> Quick create

5. ตงชอ vault ของเรา และ Region ในการวาง back up แลวกด create vault 6. Service จะสรางไวในแถบซาย ชอวา Recovery Services 7. ทแถบ Recovery Services มาท vault เราให คลก ลกศรซายมอ ขางชอ vault 8. ทหนา cloud icon เลอนลงมา แลวกด download vault credentials ลง desktop ของ vm

4.

6.

2.

Page 77: Microsoft Azure day 1

Backup vault (Data) 9. จากนน คลก Agent for Windows Server or System Center data Protection Manager or

window client เพอ download ตว agent ลงเครอง10. ดบเบลคลก ท agent เพอเรมการ Install 11. คลก next จนมาท Microsoft Update Opt-In เลอก Use Microsoft Update when I check for update แลวคลก next แลว คลก Install12. รอสกพก คลก Process to Registration เพอลงทะเบยน13. มาท Vault Identification กด Browse แลวเลอกไปท credential ทเราเพงdownload มาตอนแรก14. ท Encryption Setting กดปม generate passphrase แลว browse เพอ save เกบไว15. คลก finish เปนอนเสรจการ ลงทะเบยน

Page 78: Microsoft Azure day 1

Backup vault (Data) 16. ทดลอง สราง note file ขนมา โดยคลกขวาทหนา desktop เลอก new -> text document ใหไปเกบไวท D: drive

17. มาท โปรแกรม Microsoft Azure Backup ทดานขวา เลอก schedule backup 18. มาท wizard คลก next ท Select Items to Backup คลก Add Item เพอ upload file

ถาเราเกบ text ท desktop ใหเลอก D: -> text document ให uncheck สวนทไม ตองการออก แลวกด ok

แลวกด next 19. มาท ตงเวลาการ Backup สามารถตงไดวา เปน รายวน, รายอาทตย ทกวนไหนบาง เวลาใด

บาง ( ไดถง 3 ครงตอวน) เลอกแลวกด next 20. เลอก Retention policy คอ ไฟลท backup ขน cloud แลวจะใหเกบไวกวน เลอกเสรจ

คลก next จนจบ แลวคลก finish เมอ รอสกพก เมอ successful แลวกด close

Page 79: Microsoft Azure day 1

Backup vault (Data) 21. จากตวอยาง ใน ขอท 19. ถาเราเลอก week, 6.00PM, 1 week, Friday แลว ขอ 21.

เลอกตามภาพ ผลทจะไดคอใน เดอนนงจะ Backup ทกวนศกร 18.00 น. แตละversion ของวนศกร จะมอาย 1 เดอน ยกเวนวนศกรสดทายของเดอนจะอาย 1 ป

Page 80: Microsoft Azure day 1

Backup vault (Data) 22. จากตอนน Azure จะเรม Backup ใหเราตามเวลาทตง ใหเราทดลอง backup เลยโดยกดbackup now ทอยดาวขวามอของโปรแกรม จากนน ท wizard คลก backup ระบบจะเรม

ทำาการ back up ทนท เมอ successful แลวกด close 23. ทดลอง restore กลบลงมาโดยกด Recovery data ดานขวามอ 24. เลอกท This server และกด next เลอก browse for files กด next 25. Volume เลอก drive ทม ไฟลเรา Backup (D:) จะม calendar ใหเลอกวน version

ไฟลทเคย backup ซงในทนมวนเดยว กด next 26. เลอก ไฟลใน Drive ทจะ restore แลวกด next 27. ท Recovery destination ใหเลอก restore ลง drive อนด คอเลอกท Another location แลว browse เชน desktop นอกนนคาใหคงไว กด next28. คลก Recover แลวดผล

Page 81: Microsoft Azure day 1

Case scenarios

Page 82: Microsoft Azure day 1

Case 1 vm ลกคาตองการใชงาน Virtual Machine ท run Windows Server 2008 R2 สำาหรบproduction แอพพลเคชนของลกคา ทใช CPU 2 Core ลกคาอยากไดเปน memory intensive หนอยคอ RAM ประมาณ 7 GB แต Storage ไมไดจมาก ประมาณ 30 GB

ควรเลอก VM size Standard A3 คาใชจาย $259 ตอเดอน ใช Azure Open Token($100) 3 อน

Page 83: Microsoft Azure day 1

Case 2 Back up ใน Azure นาย A ม vm instance ขนาด 48 GB แบบ LRS replication ตอมานาย A ลง agent ตว back up เพอ backup file ของทม Finance ซง data ในนนมขนาด 10GB   เดอนนนเขาจะโดน billing สำาหรบ Backup = $5 + (10 x $0.024) = $5.24   ถาเดอนตอไป เพม instance อกตว เขาเปนขนาด 160GB backup แบบ GRS และ back up data ในนนอก 70 GB และ instance ตวแรก มการใส file ตางๆเพมไป จงขนาดเพมเปน 78 GB back up เพมจาก 10GB

เปน 20GB เดอนตอไปเขาจะโดน billing สำาหรบ Back up = $10 + (70 x $0.048) และ $10 + (20 x $0.024) = $23.84