Sample code: create an HDInsight cluster, run job, remove the cluster

In a previous post, I gave an example of a simple automation job. Here is a more interesting one. Here is a sample Azure Automation code that creates an HDInsight cluster, runs a job, and removes the cluster. I used it for a demonstration at the French Hadoop User Group. You can find the video…

0

Azure Automation: What is running on my subscriptions

the result I regulalry need to check if my Azure virtual machines are turned off before leaving. Besides virtual machines, I also want to know in which pricing level my web sites, Azure SQL Databases, etc are running. I want to know if I have an HDInsight cluster running. So I created an Azure automation…

0

Windows Azure, PowerShell: How to start virtual machines in parallel

In Windows Azure, I sometimes have several virtual machines that are part of the same vNet but are spread across different cloud services. Several VMs in the same cloud service are not started in parallel,. However, I have several cloud services so I may want to deploy in parallel my VMs from one script. In…

0

Sample Windows Azure Virtual Machines PowerShell Scripts

I sometimes show a platform that requires a bunch of Windows Azure virtual machines. It has 1 Active Directory domain controller (n123dc1), 3 SQL Server VMs for database mirroring (n123sql1, n123sql2, and n123sp20131 which also happens to have a SharePoint Server 2013 installed), and 2 members of a SharePoint 2012 Web Front End. Between two…

0

Windows Azure PowerShell: The remote server returned an unexpected response: (400) Bad Request

A few days ago, I was using Windows Azure PowserShell cmdlets to create a new virtual machine, and I got an error that didn’t provide the exception details. I requested some help internally and could eventually have additional information on my exception. Here what I did. Il y a quelques jours, j’étais en train d’utiliser…

0