430 likes | 903 Views
IT Camp: Windows Azure Infrastructure Services. Tommy Patterson Senior Technical Evangelist Microsoft. About.Me (Tommy Patterson);. 17 Years as an experienced IT Professional Network Engineer, IT Manager, Consultant Trained and consulted with thousands of IT Pros WW Author of …
E N D
IT Camp:Windows AzureInfrastructure Services Tommy Patterson Senior Technical Evangelist Microsoft
About.Me(Tommy Patterson); 17 Years as an experienced IT Professional Network Engineer, IT Manager, Consultant Trained and consulted with thousands of IT Pros WW Author of … Virtuallycloud9.comblogs.technet.com/tommypatterson
Contact.Me(Tommy Patterson); http://virtuallycloud9.com @tommy_patterson http://aka.ms/tplinkedin http://aka.ms/tpohours http://aka.ms/tpmeetup Tommy.Patterson@Microsoft.com Bonus – Try Server 2012 R2 @ http://aka.ms/mshosting
Introduction to Windows Azure IaaS,PaaSand SaaS Self-Service Provisioning Global Scale Estimating Costs Cloud Patterns Common Scenarios Pay-As-You-Go Windows or Linux Global, Solid, Scalable
Cloud Computing Models Today’sFocus: • Platform • ( as a Service ) • Software • ( as a Service ) • Infrastructure • ( as a Service ) • On-Premises • ( Private Cloud ) • You Manage • You Manage Data & Access Data & Access Data & Access • You Provision & Manage Data & Access Applications Applications Applications • Provisioned & Managed by Vendor • Provisioned & Managed by Vendor Applications • You Provision & Manage Runtime Runtime Runtime Runtime Operating System Operating System Operating System Operating System Virtual Machine Virtual Machine Virtual Machine • Physical FabricManaged by Vendor Virtual Machine • You ProvisionCloud Services Compute Compute Compute Compute Networking Networking Networking Networking Storage Storage Storage Storage Host Consume Develop
Self-Service Provisioning http://manage.windowsazure.com
Australia Austria Belgium Brazil Canada Chile Colombia Costa Rica Cyprus Czech Republic Denmark Finland France Germany Greece Hong Kong Hungary India Ireland Israel Italy Japan Korea Luxembourg Malaysia Mexico Netherlands New Zealand Norway Peru Philippines Poland Portugal Puerto Rico Romania Russia Singapore Spain Sweden Switzerland Trinidad & Tobago UK United States New Countries: Algeria 89 countries and territories Kuwait Latvia Liechtenstein Lithuania Macedonia Malta Montenegro Morocco Azerbaijan Nigeria Oman Pakistan Panama Paraguay Qatar Saudi Arabia Serbia Slovakia Slovenia South Africa Sri Lanka Taiwan Thailand Tunisia Turkey UAE Ukraine Uruguay Venezuela Bahrain Argentina Belarus Bulgaria Croatia Dominican Rep Ecuador Egypt El Salvador Estonia Guatemala Iceland Indonesia Jordan Kazakhstan Kenya
ITPAC – How Microsoft Builds Azure Datacenters Generation 4 Cloud Datacenters ITPAC ( IT Pre-Assembled Components ) aka.ms/itpac aka.ms/msdatacenters
Estimating Cloud Costs http://www.windowsazure.com/en-us/pricing/calculator/
Estimating On-Premises Server Costs • Question: How much does it cost to procure and operate monthly? A. $100 / month B. $500 / month C. $750 / month D. $1,000 / month • Answer: Average ~ $630 / month
Comparative Performance/Price IaaS Study Unixbench / Cost “Windows Azure scores 3 times higher than Amazon EC2 on average.” “Windows Azure … provides 5x more value than Rackspace on average.” Source: Cloud Spectator Study, June 2013
Storing Data on Windows Azure Windows Azure Storage
Storing Data on Windows Azure Windows Azure Storage Highly Durable Storage
Increased Availability with Replication Geo-Replicated Storage WEST DC EAST DC > 400 miles continuous storage geo-replication Windows Azure Storage
Accessing Blob Storage https://<account>.blob.core.windows.net/<container>/<blobname> Blob Pages/ Blocks • Account Container vhds VM01.VHD Page (1TB) contoso Block (4MB) videos VID1.AVI Block (4MB)
Hybrid Cross-Premises Scenario OnPremNet Windows Azure CloudNet On-Premises Network Subnet 10.2.1.0 / 24 - Web SQL IIS System Center SharePoint IIS Site-to-Site IPSec VPN tunnel Subnet 10.2.0.0 / 24 - Gateway IPv4 Public Address Highly Available Active / Passive AD / DNS VPN Gateway VPN Gateways Subnet 10.2.2.0 / 24 - Core Exchange BranchCache File AD / DNS SQL IP Address Space: 10.1.0.0/16 IP Address Space: 10.2.0.0/16
Remote Access Scenario OnPremNet Windows Azure CloudNet On-Premises Network Subnet 10.2.1.0 / 24 - Web SQL IIS System Center SharePoint IIS Site-to-Site IPSec VPN tunnel Subnet 10.2.0.0 / 24 - Gateway IPv4 Public Address Highly Available Active / Passive AD / DNS VPN Gateway VPN Gateways Subnet 10.2.2.0 / 24 - Core Exchange BranchCache File AD / DNS SQL 10.3.0.0/24 IP Address Space: 10.1.0.0/16 IP Address Space: 10.2.0.0/16 Point-to-Site VPN For Remote Users
Windows Azure VM Sizes • Variable instance sizes to handle complex workloads of any size • Medium • X-Large • A6 • A5 • A7 • X-Small • Small • Large $0.18 $2.04 $1.02 $0.72 $0.51 $0.02 $0.09 $0.36 Per service hour Per service hour Per service hour Per service hour Per service hour Per service hour Per service hour Per service hour • Unit of Compute Defined • X-Small • Small • Medium • Large • A6 • X-Large • A7 • A5 8 x 1.6Ghz 8x 1.6Ghz 4 x 1.6Ghz 2 x 1.6Ghz 4 x 1.6Ghz Shared Core 2 x 1.6Ghz 1 x 1.6Ghz (high mem) (high IO) (high mem) (high mem) (high IO) (low IO) (high IO) (moderate IO) 14 GB memory 605 GB OS Disk 16 Data Disks (1TB) 16 x 500 Max IOPs • 768 MB memory • 20 GB OS disk • 1 Data Disk (1TB) • 1 x 500 Max IOPs 3.5 GB memory 135 GB OS disk 4 Data Disks (1TB) 4 x 500 Max IOPs 1.75 GB memory 70 GB OS disk 2 Data Disks (1TB) 2 x 500 Max IOPs 56 GB memory 605 GB OS Disk 16 Data Disks (1TB) 16 x 500 Max IOPs 7.0 GB memory 285 GB OS Disk 8 Data Disks (1TB) 8 x 500 Max IOPs 28 GB memory 285 GB OS Disk 8 Data Disks (1TB) 8 x 500 Max IOPs 14 GB memory 135 GB OS Disk 4 Data Disks (1TB) 4 x 500 Max IOPs
Microsoft Windows Server 2012 R2 Preview Windows Server 2012 Windows Server 2008 R2 SP1 SharePoint Server 2013 Trial SQL Server 2014 CTP1 SQL Server 2012 SQL Server 2008 R2 SP2 BizTalk Server 2013 Visual Studio Ultimate 2013 Preview Windows Azure VM Platform Images Open Source OpenSUSE12.3 SUSE Linux Enterprise Server 11 SP3 SUSE Linux Enterprise Server 11 SP2 Ubuntu 12.04 LTS Ubuntu 12.10 Ubuntu 13.04 CentOS6.3
What about software licensing? Windows Server • Per-hour/per-minute license in the cloud Microsoft Applications • License Mobility for Applications ( SA ) • Per-hour/per-minute license in the cloud for subset of products ( SQL & BizTalk ) External Applications • Based upon vendor and product
Virtual Machines & Cloud ServicesVMs exist within a Cloud Service Cloud Service VM 1 • Cloud Service is a… • Public IP Address • Public DNS Name • Internet Firewall • Load Balancing • boundary
Virtual Machines & Cloud ServicesMultiple VMs can be hosted within the same cloud service Cloud Service • Cloud Service is a… • Public IP Address • Public DNS Name • Internet Firewall • Load Balancing • boundary VM 2 VM 1 VM 3 VM 4
Imaging VMs in the Cloud Cloud Identical/similar deployment instances using common OS image as start Base.VHD Boot VM Customize VHD Generalize VHD Capture VM Capture VM Saves Customized Image to Your Image Library
Virtual Machine Portability • On-Premises Cloud MyApp.vhd
Bring Your Own Server to the Cloud Cloud • On-Premises MyApp.vhd Provision VM from Image or Disk using portal, script or API Upload VHD Create Disk or Image On Premises Virtual Server Use Case • Disk - Migration of VMs • Images – Sys-prepped (Generalized) VHD Must Be Fixed Disk OS must be configured as DHCP client OS should be configured to allow Remote Desktop
Load-Balanced Endpoints Cloud App / Hosted Service Endpoint Public Port Local Port Protocol (TCP/UDP) Name PORT 443 PORT 443 PORT 443 LB/IP IIS VM1 IIS VM2 Single Public IP Per Cloud Service
Virtual Machine Availability SetsUpdate Domains are honored by host OS updates Fault Domain Fault Domain Rack Rack Virtual Machine Virtual Machine Availability Set IIS2 IIS1 UD #2 UD #1 Availability Set Virtual Machine Virtual Machine SQL1 SQL2 UD #1 UD #2
End-to-End Highly Available SolutionRedundancy at every level SQL Server VM1 DB-AVSET Internet Web-AVSET IIS Web Application • IIS VM1 • SQL Mirroring LB IIS Web Application SQL Server VM2 • IIS VM2
auto-scaling Auto-scaling Windows Azure VM’s Based on CPU Utilization Thresholds Scale-up: Start VMs Scale-down: Stop VMs Cloud Service IIS VM1 IIS VM2 IIS VM3 :-) :-) :-)
Disaster Recovery Scenario S S S AD Repl AD/DNS Web AD/DNS File SQL SQL DB Mirroring / AlwaysOn 80/443 VPN Tunnel SQL Distributed Filesystem Replication ( DFS-R ) Xcopy / Robocopy based Deployments File Web Cloud Service On-Premises Windows Azure Virtual Network
Windows Azure Scripting Tools http://www.windowsazure.com/en-us/downloads/#cmd-line-tools
Windows Azure Free Trial Subscription • Up to $200 USD in “Cloud Credit” for up to 30-Days • What kinds of scenarios can I build with a Free Trial? • 3 Small VM’s running continuously for 1-month • On-demandDev/Test/Lab environment as-needed for 1-month • 2.3TB of Geo-Replicated Cloud Storage for 1-month • Up to 10 Web Sites – Web, Blog, E-Commerce, Collaborate … and MORE!
Getting Started with Azure and PowerShell # Download & Install Windows Azure PowerShell module http://aka.ms/CloudLabStartHere # Import Azure PowerScriptModule Set-ExecutionPolicyRemoteSigned Import-Module Azure.psd1 # Download Azure Publisher Settings File ( cert ) Get-AzurePublishSettingsFile # Import Azure Publisher Settings FileImport-AzurePublishSettingsFilemycloud.pubsettings
Build Cloud VMs with PowerShell – Part 1 # Set Default Azure Subscription Set-AzureSubscription –DefaultSubscription “Azure Free Trial” # Set Default Storage Account Get-AzureSubscription| Set-AzureSubscription -CurrentStorageAccountXXXlabstor01 # Set VM Image ( Platform or Custom Image ) $myImage = Get-AzureVMImage –ImageName “XXXimage01”
Build Cloud VMs with PowerShell – Part 2 # Specify a Name for the new VM $myVM = “XXXlabvm02” # Set Affinity Group in which new VM will run $myAffinityGroup = “XXXlab01” # Specify a new local Administrator credentials for the VM $myUsername = “AzureAdmin” $myPwd = “P@ssw0rd1”
Build Cloud VMs with PowerShell – Part 3 # Build a new Windows VM in the Cloud New-AzureQuickVM -Windows -name $myVM -ImageName $myImage.ImageName -ServiceName $myVM -AffinityGroup $myAffinityGroup -AdminUsername $myUsername -Password $myPwd
Build Cloud VMs with PowerShell – Part 4 # Build a new Linux VM in the Cloud New-AzureQuickVM -Linux -name $myVM -ImageName $myImage.ImageName -ServiceName $myVM -AffinityGroup $myAffinityGroup -LinuxUser $myUsername -Password $myPwd
Upload VHDs with PowerShell # Set the Azure Storage Account Name $myStorageAcct = “XXXlabstor01” # Set Source Path and Dest Path – Needs to be a FIXED SIZE VHD $mySourceVHD = “C:\MyVHDs\MyServerDisk.vhd” $myDestVHD = “http://” + $myStorageAcct + “.blob.core.windows.net/vhds/MyServerDisk.vhd” # Upload VHD to Azure Storage Account Add-AzureVhd –LocalFilePath $mySourceVHD –Destination $myDestVHD # Assign VHD to Azure Disks and VM Images Add-AzureDisk –OS Windows –MediaLocation $myDestVHD –DiskName “MyServerDisk” # Add Disk for 1 VM Add-AzureVMImage –OS Windows –ImageName “XXXimage01” –MediaLocation $myDestVHD –Label “Descriptive Label” # Add VM Image
Yung Chou’s Azure Deployment Script http://aka.ms/QSK
Contact.Me(Tommy Patterson); http://virtuallycloud9.com @tommy_patterson http://aka.ms/tplinkedin http://aka.ms/tpohours http://aka.ms/tpmeetup Tommy.Patterson@Microsoft.com Bonus – Try Server 2012 R2 @ http://aka.ms/mshosting