Step-by-Step: Get Ready to use Microsoft Azure Automation

For a long time now IT Operations has needed to be aligned application lifecycle and work closely and collaboratively to eliminate inefficiency, reduce bottlenecks, and maximize productivity.The concept is certainly not new, for a long time now business processes and operations based on software engineering concepts or lifecycle management methodologies are all trying to minimize inefficiency and maximize productivity. One clear way to do just that is to automate everything you can. In addition to efficiency and maximized productivity, you will also improve consistency, repeatability, and predictability.

Azure Automation allows you to automate the creation, deployment, monitoring, and maintenance of resources in your Azure environment using a highly scalable and reliable workflow execution engine. Orchestrate time-consuming and frequently repeated tasks across Azure and third-party systems to decrease time to value for your cloud operations

Azure Automation ships out of box with integration into many Azure services, including:

Web Sites (management)

Cloud Services (management)

Virtual Machines (management and WinRM support)

Storage (management)

SQL Server (management and SQL support)

But how do you get ready to use or write your own Run Book? The next few step will take you through the setup of the Microsoft Azure Automation.

1.Log in to the Azure Management Portal.

2.In the Management Portal, select Automation on the left, and click Create an Automation Account

3. Fill out the dialogue box with the name of the account you want to create

4- you now have a automation account ready to be used to automate your tasks.

Before running a runbook, make sure the following components are available:

Automation Connection Asset containing the subscription id and the name of the certificate setting in Automation Assets

Management Certificates

When you access the Microsoft Azure Portal, you have authenticated using an Office 365 or Microsoft account. But when you are using code, scripts, or other automation process to make a call to the Azure Management API, the requests must be signed by a X509 certificate. These certificates that are used to sign the requests are referred to as Management Certificates and you can create them manually or download one from the portal.

In addition to managing Microsoft Azure via the web-based Management Portal, Microsoft also provides a Microsoft Azure PowerShell module for scripted management of Microsoft Azure services. Both the Management Portal and PowerShell will be used in this series, requiring installation and configuration off the Microsoft Azure PowerShell cmdlets to get prepared.

Download and Install the Microsoft Azure PowerShell cmdlets. Note that a restart may be required after installing this module.

Right-click on Windows PowerShell in your Start Menu or Start Screen and choose Run As Administrator.

Import the Microsoft Azure PowerShell module and supporting cmdlets by running the following command at the PowerShell command prompt: PS C:\> Import-Module Azure

The following screen shot shows the results. Please note the name and subscription ID. you’ll need them later.

Automation Certificate Asset

The Assets page in Microsoft Azure Automation displays the various resources that are globally available to be used in or associated with runbooks, plus commands to import an integration module, add a new setting, or delete a setting. Settings include variables, schedules, credentials, and connections. Connections are defined in integration modules, and because of that they do not have a fixed format.

1- to setup the Automate Certificate Asset I first installed the Windows SDK for Windows 8 to create my own self-signed management certificates using the following command: