Tag Archives: Automation

Installing & Configuring Azure PowerShell

Do you know that Microsoft Azure offers a flexible management options rather than the Azure Portal? With Windows PowerShell you can perform most of the routine tasks that you do in your cloud tenants, from creating VMs to scaling your applications. This comes pretty much handy if you have scheduled or predefined cloud workloads that you need to perform on Azure. Lets take a look on how to install and configure Azure PowerSehll for your cloud tenant.


  1. An Azure Subscription
  2. A computer that is either running Windows 7 or Windows Server 2008 R2 upwards.

Installing Azure PowerShell

Azure PowerShell comes as a redistributable running in Microsoft Web Platform installer. You can download the setup from here. When prompted, select Azure PowerShell in the feature selection stage. You’ll notice that  the new Azure PowerShell when you do a search or in Al  Programs in your computer.

Connecting to your subscription

In order to manage a tenant first the Azure PowerShell needs to be connected to an active subscription. There are two methods for this. Using a downloaded management certificate which include the subscription information, or by logging into Microsoft Azure using your Microsoft Account associated to that subscription. Note that the  Azure AD will perform the credential authentication in the latter method.

OK I’m all set. Now what can I do with Azure PowerShell?

Azure PowerShell provides a large number of cmdlets that can be used to provision, deploy, manage & maintain Azure services. These includes creating, modifying & deleting of VMs, VM networks, cloud services, storage, web sites etc… Much like in Windows PowerShell there is a comprehensive help content of each and every one of these cmdlets.

I’ve included some articles that I found on how to use Azure PowerShell. Also you can create PowerShell scripts and locally run them in your on premise infrastructure to manage your cloud tenant. The power is up-to you to automate.


  1. Configuring Azure PowerShell
  2. Provisioning VMs with Azure cmdlets

Introducing Automation | Microsoft Azure

It’s been a long time from my last post and I sincerely apologize for that. I was busy with an Office 365 migration project last month and had all my eyes and ears focused to it. Today I’m going to explain how you can automate your cloud workflows with Azure Automation.

Azure Automation is a preview feature (upcoming GA) that allows us to automate creation, deployment, monitoring, and maintenance of Azure resources. It allows you to create Runbooks to orchestrate time consuming and repetitive workloads that you have in you cloud tenant. These Runbooks are indeed powered by Windows PowerShell workflows.

Currently Azure automation supports the automation of following services.

  • Web Sites (management)
  • Cloud Services (management)
  • Virtual Machines (management and WinRM support)
  • Storage (management)
  • SQL Server (management and SQL support)

Now if you know your way around PowerShell, Automation saves you a great time of time and labour. Imagine that you’ve been assigned to create 100 VMs in the cloud with exact same properties. Rather than writing a standard PowerShell script you can play with a PowerShell workflow that triggers an Azure Automation Job.

When we look at the pricing factor, as of right now this feature is still in preview stage. So you won’t be charged up to 20 Runbooks in the Free tier.

Here are some great resources that you can learn more about Azure Automation.

  1. Creating a sample Runbook in Azure
  2. Getting started with Azure Automation by Keith Mayer
  3. Automation Library