+ All Categories
Home > Documents > Advanced Windows Azure: Infrastructure as a service ( IaaS )

Advanced Windows Azure: Infrastructure as a service ( IaaS )

Date post: 06-Jan-2016
Category:
Upload: jared
View: 47 times
Download: 1 times
Share this document with a friend
Description:
Advanced Windows Azure: Infrastructure as a service ( IaaS ). Michael Washam @ MWashamMS Senior Technical Evangelist Session 3-026. A genda. Saving time and money with automation Building a virtual m achine l ibrary Designing for scale and availability. - PowerPoint PPT Presentation
Popular Tags:
33
Advanced Windows Azure: Infrastructure as a service (IaaS) Michael Washam @MWashamMS Senior Technical Evangelist Session 3-026
Transcript
Page 1: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

Advanced Windows Azure: Infrastructure as a service (IaaS)Michael Washam @MWashamMSSenior Technical EvangelistSession 3-026

Page 2: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

Saving time and money with automationBuilding a virtual machine libraryDesigning for scale and availability

Agenda

Page 3: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

Service management API (REST)

Power Shell Cmdlets

Cross platform CLI

Saving time & money with automation

Page 4: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

Windows Azure service management APIREST based - https://management.core.windows.net

X509 certificate authentication

Calls are asynchronous (poll for result status)

Versioned – Set through HTTP header"x-ms-version", "2012-03-01"

Page 5: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

Service model glossary

Cloud service=Hosted service

Virtual machine=PersistentVMRole

Page 6: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

Anatomy of a virtual machinePersistentVMRole (s)

Role Name=VMNameRole Type=PersistentVMRoleConfigurationSets• NetworkConfigurationSet• WindowsProvisioningConfigurationSet• LinuxProvisioningConfigurationSetOSVirtualHardDiskDataVirtualHardDisksRoleSize=ExtraSmall, Small, Medium, Large, ExtraLarge

Deployment

Slot (Always Production for PersistentVMRole)DeploymentNameRoleListDnsServersVirtualNetworkName

Cloud Service (Hosted Service)

ServiceName (myservice.cloudapp.net)AffinityGroupLocationDeployments (Production, Staging)

DnsServerNameAddress

Virtual Network is Defined at the Deployment Level

(Data Center)

Page 7: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

Network configurationNetworkConfigurationSet

• InputEndpoints• SubnetNames

InputEndpoint

LocalPortNamePortProtocolLoadBalancedEndpointSetNameLoadBalancerProbe• Path• Port• Protocol

PersistentVMRole

Role Name=VMNameRole Type=PersistentVMRoleConfigurationSets• NetworkConfigurationSet• WindowsProvisioningConfigurationSet• LinuxProvisioningConfigurationSetOSVirtualHardDiskDataVirtualHardDisksRoleSize=ExtraSmall, Small, Medium, Large, ExtraLarge

Page 8: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

Provisioning configurationWindowsProvisioningConfigurationSet

ComputerNameAdminPasswordResetPasswordOnFirstLoginEnableAutomaticUpdatesTimeZoneStoredCertificateSettingsDomainJoin

LinuxProvisioningConfigurationSet

HostNameUserNameUserPasswordDisableSshPasswordAuthenticationSSH

PersistentVMRole

Role Name=VMNameRole Type=PersistentVMRoleConfigurationSets• NetworkConfigurationSet• WindowsProvisioningConfigurationSet• LinuxProvisioningConfigurationSetOSVirtualHardDiskDataVirtualHardDisksRoleSize=ExtraSmall, Small, Medium, Large, ExtraLarge

Page 9: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

Storage

DataVirtualHardDisks

HostCachingDiskLabelDiskNameLunLogicalDiskSizeInGBMediaLink

OSVirtualHardDisk

HostCachingDiskLabelDiskNameMediaLinkSourceImageName

PersistentVMRole

Role Name=VMNameRole Type=PersistentVMRoleConfigurationSets• NetworkConfigurationSet• WindowsProvisioningConfigurationSet• LinuxProvisioningConfigurationSetOSVirtualHardDiskDataVirtualHardDisksRoleSize=ExtraSmall, Small, Medium, Large, ExtraLarge

Page 10: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

POST - https://management.core.windows.net/<subscription-id>/services/hostedservices/<service-name>/deployments

<Deployment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/windowsazure"> <Name>testsmapi1</Name> <DeploymentSlot>Production</DeploymentSlot> <Label>testsmapi1</Label> <RoleList> <Role i:type="PersistentVMRole"> …. </Role> </RoleList></Deployment>

Creating a virtual machine

Deployment PersistentVMRole

POST - https://management.core.windows.net/<subscription-id>/services/hostedservices/ deployments/<deployment-name>/roles

<PersistentVMRole xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/windowsazure"> <RoleName>myvm1</RoleName> <RoleType>PersistentVMRole</RoleType> …. </PersistentVMRole>

PersistentVMRole

First VM created with Create Deployment API

Additional VMs in the same deployment created with Add Role API

Page 11: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

GET - https://management.core.windows.net/<sub-id>/services/hostedservices/<service-name>/deployments/<deployment-name>/roles/<role-name>

Updating a virtual machine

PersistentVMRole

PUT - https://management.core.windows.net/<sub-id>/services/hostedservices/<service-name>/deployments/<deployment-name>/roles/<role-name>

<PersistentVMRole xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/windowsazure"> <RoleName>myvm1</RoleName> <RoleType>PersistentVMRole</RoleType> …. </PersistentVMRole> PersistentVMRole

Modify (add endpoints, disk changes etc..) and PUT changes

Returns XML Representation of the Virtual Machine

Page 12: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

Other operations

Capture Save Virtual Machine as a re-usable image

Delete Deletes the Virtual Machine (not the disks)

Download RDP File Generates an RDP File for the VM

Start, Shutdown and Restart

Page 13: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

Demo

Virtual machine automation with the Service Management API

Page 14: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

Automating with Script

Virtual NetworkingCompletely Configure Virtual Networks from a Script (PowerShell)

Provision Fully Configured Virtual Machines

AutomationQuery, Manage and Configure Virtual Machines across multiple subscriptions, cloud services and storage accounts.

Page 15: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

Download from http://www.windowsazure.com/en-us/manage/downloads

Import-Module Azure

Get-AzurePublishSettingsFile

Import-AzurePublishSettings File

Get-AzureVM

Getting started with the PowerShell Cmdlets

Page 16: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

Install node.js from http://nodejs.org

npm install azure –g

azure account download

azure account import

azure vm list

Getting started with the Cross Platform CLI

Page 17: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

Demo

Automation with the Windows Azure PowerShell Cmdlets and the Cross Platform CLI tools

Page 18: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

Using the capture feature to save customized images

Building a virtual machine library

Page 19: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

Building a virtual machine library

Install custom agents for management and advanced deployment

Use pre-configured virtual machines to save time and reduce costs

Page 20: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

Using capture to create an image

Blob Storag

e

Blob Storage

Platform Image

Identical/similar deployment instances using common OS image

as start

Capture VM Saves Customized Image to Your Image Library

Page 21: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

Configuring startup tasks

Allow the ability to run a Script when the virtual machine bootsEnable remote PowerShell Configure roles and install featuresDownload and execute other Scripts or software

Page 22: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

Demo

Bootstrapping a virtual machine

Page 23: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

Using availability sets and the load balancer to achieve both

Designing for scale and

availability

Page 24: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

Availability and load balanced setsAvailability setsDistributes your VMs on separate physical hardwareTells the fabric controller in what order to update virtual machines (rolling upgrades)99.95% SLA

Load balanced setsDistribute traffic in round robin based on port and protocol

Page 25: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

Redundancy at every level

End to end highly available solution

LB

Mirro

ring

Internet

SQL-AVSET

IIS-AVSETWeb

Server

Web Server

Database

Database

Page 26: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

HTTP 500

HTTP load balancer custom probes

Load balancer polls every 15 seconds

Receives other than 200 OK (HTTP)

Traffic stops until 200 Received

Continues polling

Page 27: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

Demo

Using HTTP health probes with the load balancer

Page 28: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

TCP load balancer custom probes

Load balancer polls every 15 seconds

Looks for ACK on socket connect

Traffic stops until ACK received

Continues polling

Page 29: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

Demo

Using TCP health probes with the load balancer

Page 30: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

You just saw…

• How to save time and money with automation

• Build a virtual machine library with capture

• Use custom probes for scale and availability

For more information:

• Follow me on Twitter @MWashamMS

• PowerShell Examples: michaelwasham.com

Don’t forget to fill out the eval

Wrapping up

Page 31: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

Session 2-011

Introduction to Windows Azure Infrastructure as a Service - Mark Russinovich

10/31 1:45PM – 2:45PM

(right before this session)

Related sessions

Page 32: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

• Follow us on Twitter @WindowsAzure

• Get Started: www.windowsazure.com/build

Resources

Please submit session evals on the Build Windows 8 App or at http://aka.ms/BuildSessions

Page 33: Advanced Windows Azure:  Infrastructure as a service ( IaaS )

© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.


Recommended