strategies to automate deployment and provisioning of microsoft azure

Post on 24-Jun-2015

1.372 Views

Category:

Technology

1 Downloads

Preview:

Click to see full reader

DESCRIPTION

Hear Michael Collier, Principal Cloud Architect at Aditi Technologies talk about the key automation strategies for success in Microsoft Azure, followed by a quick demo of Brewmaster, an automated provisioning and deployment tool for Azure.

TRANSCRIPT

www.aditi.com

WELCOMETO THE WEBINAR

Automation Strategies for Success in Microsoft Azure

#GoCloudWebinar

www.aditi.com

TODAY’S SPEAKERS

#GoCloudWebinar - @weareAditi

Michael CollierPrincipal Cloud ArchitectAditi Technologies

michaelc@aditi.com@MichaelCollierwww.MichaelSCollier.com

Raghu RajagopalanPrincipal Engineering ManagerAditi Technologies

raghuramanr@aditi.comhttp://blog.rraghur.in

www.aditi.com

TODAY’S WEBINAR

1/ Michael Collier: Expert Talk: Automation Strategies for Success in Microsoft Azure

2/ Raghu: Brewmaster Demo

3/ Q & A

#GoCloudWebinar - @weareAditi

WHY AUTOMATION?

Azure is highly automated• Service healing• Internal resources

Time to provision full environments• Compute, storage, etc.

Deployment to multiple geographies• Change only configuration / parameters

www.aditi.com

#1 Source of Failed Projects (IMO)

Humans Terrible at Repetitive Tasks

www.aditi.com

A FEW OPTIONS

REST API•Service Management

•Resource Manager

Azure Management Library

PowerShell•Invoke REST•Service Management

•Resource Manager

XPlat CLI•??

Azure Automation

Brewmaster

www.aditi.com

A FEW OPTIONS

REST API• Service Management• Resource Manager

Azure Management Library

PowerShell• Invoke REST• Service Management• Resource Manager

XPlat CLI• ??

Azure AutomationBrewmaster

www.aditi.com

MICROSOFT AZURE MANAGEMENT LIBRARY

www.aditi.com

MICROSOFT AZURE MANAGEMENT LIBRARY

Source: http://www.BradyGaster.com

Consistent modern libraries over the Azure REST API

www.aditi.com

MICROSOFT AZURE MANAGEMENT LIBRARY

Source: http://www.BradyGaster.com

www.aditi.com

MICROSOFT AZURE MANAGEMENT LIBRARY

• Scenarios• Integration Testing• Custom provisioning of services (SaaS)• Dev/Test• Resource Governance• Anything you may want to automate

www.aditi.com

MICROSOFT AZURE MANAGEMENT LIBRARY

Source: http://www.BradyGaster.com

Get all or just the ones you need

MAML

Create Web SiteCreate Storage AccountCreate and Deploy Web Role

1. Get the MAML Libraries from NuGet

Microsoft.WindowsAzure.Management

2. Get Active Directory Authentication Library

Microsoft.IdentityModel.Clients.ActiveDirectory (search “ADAL”)

3. Authenticate against AAD or use ClientCredential

Use Microsoft Account or Organization

4. Use resource specific client to perform actions

StorageManagementClient, ComputeManagementClient, etc.

RECAP

www.aditi.com

POWERSHELL

www.aditi.com

POWERSHELL CMDLETS

Get the goods

http://azure.microsoft.com/en-us/downloads/

https://github.com/Azure/azure-sdk-tools/releases

www.aditi.com

POWERSHELL

Use cmdlets and/or REST APIs

Ability to script complex environmentsTemplate with an XML parameters filePowerShell learning curve

Consistent DeploymentsBuild server or developer machine

www.aditi.com

• Interactive• Azure AD

> Add-AzureAccountVERBOSE: Account "michael.collier@live.com" has been added.VERBOSE: Subscription "Cloud Practice Sales Demos" is selected as the default subscription.VERBOSE: To view all the subscriptions, please use Get-AzureSubscription.VERBOSE: To switch to a different subscription, please use Select-AzureSubscription.

* Tip – Profile data stored in C:\Users\<user>\AppData\Roaming\Windows Azure Powershell

AUTHENTICATION OPTIONS

www.aditi.com

AUTHENTICATION OPTIONS

• Programmatic• Management certificate• New –credentials option$userName = "<your organizational account user name>"

$securePassword = ConvertTo-SecureString -String "<your organizational account password>" -AsPlainText -Force

$cred = New-Object System.Management.Automation.PSCredential($userName, $securePassword)

Add-AzureAccount -Credential $cred

PowerShell: Service Management

Create VMs with a custom script extensionDeploy a Cloud Service

1. Install the Azure PowerShell cmdlets

2. Select your Azure subscription

3. VMa) Get the VM template image from the Azure galleryb) Create machine administrative credentialsc) Add data disksd) Set script extension

4. Cloud Servicea) Create the Cloud Serviceb) Create the storage accountc) Deploy package to new Cloud Serviced) Wait for roles to start

RECAP

www.aditi.com

AZURE AUTOMATION

www.aditi.com

WHAT IS AZURE AUTOMATION?

IT process automation solution for Azure• Creation, monitoring, deployment, &

maintenance• PowerShell Workflow engine• Runbooks• Leverage existing PowerShell scripts

Azure Automation

Stop VMs on a Schedule

1. Configure your Assets

a) Create a management certificate for Azure Automation

b) Create a connection between Azure Automation and your subscription

2. Create a Runbook

a) Connect to Azure

b) Stop the VMs

3. Test Runbooks

4. Publish

RECAP

www.aditi.com

BREWMASTER

www.aditi.com

1. Choose Template2. Configure Parameters

3. Deploy

BREWMASTER

www.aditi.com

BREWMASTER TEMPLATES

Pre-built templates for popular server workloadsSharePoint, AD, SQL Server Always On, ARR, ElasticSearch etc.Templates hosted on GitHub/BitbucketOpen source: https://github.com/AditiTechnologies DSC and PowerShell

Template SDKTemplate = JSON + [DSC resources/Powershell scripts].C# Fluent Syntax Builder (NuGet) for authoring your own templates

Brewmaster

Create a SQL Server AlwaysOn environment

www.aditi.com

CHOICES . . . WHEN TO USE

MAML

• PCL (WinPhone/WinStore)

• Higher level languages

PowerShell

• DevOps• Templates• Build Servers• Quicker than portal

Azure Automation

• Schedule Tasks• Integrate with Other

Services• System Center scripts

Brewmaster

• Templates for server workloads

• Complete infrastructure stacks

• IaaS-only

RESOURCES

MAML• http://www.jeff.wilcox.name/2014/04/wamlmaml/ • http://www.bradygaster.com/post/announcing-the-general-availability-of-the-microsoft-azure-management-l

ibraries-for-net

PowerShell• Resource Manager- http://channel9.msdn.com/Events/Build/2014/2-607 • http://michaelwasham.com/windows-azure-powershell-reference-guide/ • http://gallery.technet.microsoft.com/scriptcenter/Deploy-a-Windows-Azure-Web-81629e04 • http://azure.microsoft.com/en-us/documentation/scripts/

Azure Automation• http://azure.microsoft.com/blog/tag/azure-automation/ • http://

blogs.technet.com/b/keithmayer/archive/2014/04/06/step-by-step-getting-started-with-windows-azure-automation.aspx

Brewmaster• https://www.aditicloud.com/Home/Brewmaster

www.aditi.com

Michael CollierPRINCIPLE CLOUD ARCHITECT, ADITImichaelC@aditi.com

Let’s continue the conversation.

top related