Upload
daniel-dean
View
218
Download
0
Tags:
Embed Size (px)
Citation preview
AutomateMicrosoft AzureRoss SponholtzMark Ghazai
Options for Automation
• PowerShell• Azure Automation• Rest API and .Net (Web services)• System Center Orchestrator•Windows Azure Pack SMA
Getting Started with PowerShell• http://azure.microsoft.com/en-us/downloads/
How to install and configure Azure PowerShellhttp://azure.microsoft.com/en-us/documentation/articles/powershell-install-configure
Installation Process
Connecting to your Account/Subscription
• If you want to enter your subscription when the script runs:• Add-AzureAccount
• If you want to use stored credentials
• Get-AzurePublishSettingsFile -Environment AzureGovernmentCloud
• Import-AzurePublishSettingsFile ".\ross.publishsettings"• Select-AzureSubscription "slgazurefairfax_Non-Billable_Production"
Connecting to Azure-Government• Add-AzureEnvironment -Name "AzureGovernmentCloud" -PublishSettingsFileUrl "https://manage.windowsazure.us/publishsettings/index" -ServiceEndpoint "https://management.core.usgovcloudapi.net/" -ManagementPortalUrl "https://manage.windowsazure.us/" -ActiveDirectoryEndpoint "https://login.windows.net/" -ActiveDirectoryServiceEndpointResourceId "https://management.core.usgovcloudapi.net/" –StorageEndpoint "core.usgovcloudapi.net"
• Set-AzureEnvironment "AzureGovernmentCloud“
• See here for more examples: • https://github.com/AzureFederal/azure-government-powershell
PowerShell
Demo
Visual Studio
Demo
Azure Automation
Lower costs and improve predictability
Automation
Enable service owners to focus on work that adds business valueReduce error-prone manual activities while lowering costs
Optimize and extend existing investments
IntegrationIntegrate into existing systems with PowerShell integration modulesBuild additional PS modules to enable integrating into other systems
Deliver flexible and reliable services
OrchestrationAccelerate time to value with flexible process workflowsImprove service reliability across multiple tools, systems, and department silos
Process automation that simplifies cloud management
Azure Automation Capabilities
Azure
Monitoring Systems
Change Control Systems
Anything
Runbook Authoring in Azure:Create runbooks to automate all aspects of cloud management in cloud based Monaco editor.
Highly Available Engine:
Support requirements for scale and H/A.Built on PowerShell Workflow. Isolation for runbook jobs.
Integration into other systems:Import existing or create new PS modules
and runbooks for Azure services or to connect into 3rd party systems.
AutomationPurge
stale logs from SQL
Staged deployme
nt of a service
Remediate alert on a service
Patch Azure VMs
without downtime
Built on PowerShell Workflow
PowerShell Workflow
• Use Windows PowerShell syntax• Parallel or serial execution across devices• Single task to manage complex, end-to-end
processes • Automated failure recovery with checkpoints • Connection and activity retries
Centralized store
• Credentials / certificates• Variables / connections• Checkpoints• Module management• Runbooks (draft / published versioning)• Integrated scheduling
As-a-service
• Azure-powered availability, scalability, reliability
• Tenant-isolated, host-independent execution• Management through APIs, SDKs, cmdlets• Multi-region support• Backed by Azure SLA
Historical Analysis
• Historical view of runbook job execution• View output, errors, verbose, progress logs
for jobs• View runbook version used for jobs
PowerShell
Workflow
Centralized store
Highly Availab
le
Historical
Analysis
Microsoft Azure
Automation
Typical Azure Automation Scenarios
Patch Azure IaaS VMs without downtime, leveraging Traffic manager.
Enable regeneration of storage account keys while avoiding downtime in the application.
SQL Backup on a schedule.
Backup and restore IaaS VMs.
Deploy a VM on an Azure / On-Premise cloud and enable monitoring for the VM.
Deploy a new service to Azure and configure the end points for CPU and Memory alerts.
Deploy application from Git, run validation tests, and swap to production if tests pass.
Monitor SharePoint online for an approval to update a service and update the service once approved.
Alert on a VM then turn on tracing, collect logs, upload to Azure Storage and make available in Visual Studio for troubleshooting.
Monitor for when a new service gets created, and configure it for the right tracing / backup policy.
Notify users of a subscription who have underutilized VMs and perform remediation.
Patch / Update / Backup
Orchestration
Change Control & Provisioning
Monitoring & Remediation
Managing VMs usingAzure Automation
Demo
On-Prem Solutions
• System Center 2012 R2 Orchestrator• Windows Azure Pack SMA (Service Management Automation)
If you think you will do a task twice – automate it!
Resources• How to install and configure Azure PowerShell http
://azure.microsoft.com/en-us/documentation/articles/powershell-install-configure
• Windows PowerShell Survival Guide http://social.technet.microsoft.com/wiki/contents/articles/183.windows-powershell-survival-guide.aspx
• Hybrid Cloud Automation Toolkit - Windows Azure and PowerShell http://gallery.technet.microsoft.com/Hybrid-Cloud-Automation-02f061a4
• Automating the Cloud with Azure Automation http://channel9.msdn.com/Series/Automating-the-Cloud-with-Azure-Automation
• How to connect Orchestrator to Windows Azure http://social.technet.microsoft.com/wiki/contents/articles/25006.how-to-connect-orchestrator-to-windows-azure.aspx
• TechNet Gallery Azure https://gallery.technet.microsoft.com/site/search?f%5B0%5D.Type=RootCategory&f%5B0%5D.Value=WindowsAzure
• GitHub Azure PowerShell https://github.com/Azure/azure-powershell
• Monitor Azure Websites using Azure Automation https://gallery.technet.microsoft.com/Monitor-Azure-Websites-25cf58a6
• Sending email from Azure Automation using Office 365 (Secure SMTP) https://gallery.technet.microsoft.com/Sending-email-from-Azure-24ee27cd
• TechNet Virtual Labs https://technet.microsoft.com/en-us/virtuallabs/bb467605.aspx
© 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows 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.