Today as the Teched Europe kicks off with the Keynote there where several new announcements and one was that Azure Automation and the Runbook gallery now are General Available.
If you have not tried the Automation during the preview then you now can create a Automation account from the portal and start playing!
Click on create and name it something smart and to what subscription it should be part of, right now not all regions in azure can be used for the automation accounts. The following regions can be chosed:
South east Asia
When you have an account you can see the first page where some good links reside for you to dig into and learn more about the Azure Automation:
When you want to create your first Runbook, Microsoft has the Runbook Gallery that you can use to get speed in the automation process as there are several scripts that can help you get started, maybe there is already a script that fits or maybe just need a small customization to get it to do exactly what you want!
Out of the box you get one module in each Automation account and that is the Azure Module, and it is the latest version right now 0.8.9. There is a possibility to add your own modules, scripts, credentials and certificates.
So what is the cost for running azure Automation? Now you get 500 minutes of runtime in your subscription but you can change that if you run out of “free” time to standard and then you will be billed, the 500 minutes as described below is for all your automation accounts in that subscription.
As every responsible dad out there I have set up an Minecraft server to my daughter so she can play with her friends!
I have deployed a Windows Server on Azure in which I installed the Minecraft server with the right mods, apparently that is important 😉 I have not myself got lost in the Minecraft world, maybe because I grew up in the 80´s and had games that was mega-pixel and now I want that high definition graphics!
To see that it is working and alive I wanted some kind health check so here Azure Automation comes into play! Of course there would have been easier ways but I want try new stuff and also test and see how Azure Automation works and can be utilized.
So I created a runbook that checks the status and try to remediate the issue if it is not working:
# Easy script to check health of my daughters Minecraft server and take action if stopped
I have utilised the YAMS so that the Minecraft Server is handled by a Windows Service. If there is some outage or maintenance on Azure the VM can be restarted and then it is good to know that the Minecraft Server will start even if no user is logged in. If for some reason the YAMS service is stopped or the Minecraft Server has stopped my runbook can remidiate that!
In Azure Automation I can schedule a check every 1 hour:
And as you can see when checking a job it reports that my Minecraft server is working!
To connect to the VM´s powershell endpoint I have added SessionOption -SkipCACheck thus letting me connect without getting a cert from a trusted certificate authority or importing the servers cert. Saw this option on Tim´s blog post and borrowed it:-)
In the deployed VM I have also done as explained in the PowerShell Tip from powershell.com to be able to connect to it as it is not part of a domain and when PowerShell remoting is enabled it uses Kerberos by default and the Minecraft server is standalone thus Kerberos not working!
Probably I will do some tweaking and update the script later but you can at least see the possibilities and power of using Azure automation!
Next week Teched Europe kicks of and that will tons of great sessions! Sadly I can´t be there this year 🙁 but family comes first and the week after that I will be at the MVP Summit in Redmond!
But whats so great with the Microsoft conferences is that you can be part of whats happening even if you cannot make it onsite! Channel 9 will be live broadcasting and also all cool sessions will be uploaded!!
Here are some of the sessions that either if you will be in Barcelona or if you want to check out the recording later should watch/attend!!
As I am an Hyper-V MVP I of course have focus on virtualization, but as my friend and former colleague Fredrik Nilsson says: “attend a session on something you do not know” so here is my top 10 to watch out for!
Today I have been doing some work at a customer creating a Hyper-V 2012 R2 Cluster and starting to live migrate VM´s from their Hyper-V 2012 Cluster.
Doing that from VMM gave me some errors and here is the solution so that if you happens to get into the same problem 🙂
First of all, when added the new cluster to VMM I tried to live migrate a VM but got this error (12700)
After a quick search on the net I found this blog post explaining the need to configure kerberos live migration and delegation between the hosts and also that the hosts needs an “Host Management Credentials” account set up in the properties! I had already set up the hosts to use Kerberos and delegation between and still got the above error but when checking the Run As account it was empty:
The problem as you can see though, it is greyed out and cannot be altered, I tried to do add an account through PowerShell and there I got an answer that it had to be set on the cluster,
checking on the cluster properties in the VMM console there is nowhere to add or see the management credential
There where some bashing on the net when the VMM 2012 R2 was released and the P2V functionality was removed from that version and some crazy ideas using a secondary VMM 2012 SP1 to do the P2V migrations and then importing into the VMM 2012 R2 was suggested, well that time is now no more now 🙂
The installation is quite straightforward with the msi and just a simple wizard.
Once installed You can start exploring the new options including the new P2V.
When doing a P2V the MVMC will install an agent on the source and when doing a P2V the source have to be online during the migration.
And then you go through the wizard and start the conversion
Once it is finished, you find the VM in your Hyper-V host and can start it, but beware that the wizard does not ask if you want to shut down your source after migration so that is something you have to take care of before starting that P2V´d VM
But wait you say, I have 100 vm´s and will die if I use the wizard for all of them! Then you can use the PowerShell module and automate the conversion:
The operating systems that is supported migrating with the MVMC are (although only Windows with the P2V):
First of the changes gives for some reason duplicates of each file url from the web page I collect the download url´s I want to download and to get around that I use the superduper cmdlet and parameter Select-Object -Unique which gives me an array with all files just once 😉
Secondly with Invoke-WebRequest PowerShell uses IE under the hood and I get this dialogue and to get rid of that i use -BasicParsing and that lets PowerShell use its own parser.
And as you saw in the above screendump I utilize Switch parameters so you can choose which of the roles you want and here you can see the script and copy to your own lab server and start downloading to test!
And by the way, make sure that you either have enough storage available on C: or what drive and folder you want to save it to with the -Dest parameter!!
So today Microsoft released their technical previews of Windows 10 and also of Windows Server
As an Hyper-V interested guy I wanted to check out some things in this build, there have already been a blog post about cool features such as rolling cluster updates so that you can have different versions in the Hyper-V cluster and keep the VM´s up all time during an upgrade.
There are some more info on the technet site discussing the different new features:
I was talking to some guys with a quite solid VMware background and they were working on setting up a Hyper-V cluster with Windows Azure Pack as frontend.
Their environment was a traditional setup with Hyper-V hosts connecting to a SAN with FC thus using CSV´s for storing the VM´s. All VM´s including their management was configured on these hosts.
As a best practice they ran the Failover Cluster Validation (and yes you should run it or you won’t get support) but as I will show you, they had an unwanted restart of their VM´s including the one they had failover cluster manager started so look and think twice before starting that validation with all tests!
with no HA – VM´s there are not so much to think about but once you add VM´s there is, and it can have some consequences…
If you in the wizard add the CSV volume to the test you can see the warning showing that you will get the VM´s stopped doing the validation,
Going next in the wizard and then going back the warning has disappeared!
But of course in the Confirmation it still says that the VM roles will be stopped but if you are in a hurry and start the validation then all VM´s on the CSV volumes will be stopped and then started and maybe that was not what you had intended from the beginning!
So look and select the options carefully when doing a validation of a cluster with production workloads in 🙂
So you are an IT Pro or maybe an CIO or CTO and have been sleeping under your desk the latest years or so? But the IT Operations departments are under a lot of stress these days coping in being able to deliver the services to the business in the pace that they demand! Do you recognize this? For example your development division request 50 VM´s and wanted them yesterday, Your response is that come back in a week or two….
Many IT departments are seeing their internal customers such as Dev or Business going outside of the organisation and buying their services directly from Azure or another public cloud provider delivered instantly and that also cheaper than you could produce internally..
Here the Hybrid way of thinking becomes important and why, well you will not be able to compete with all the services that the public cloud can give you in a cheaper and more reliable way so IT Operations of tomorrow will utilize the public cloud as their own and be able to use it for their needs where their private cloud lacks functionality or capacity and in that way respond to the requests from the departments.
Giving the users an self service portal where they can order and see the cost of their engagements is an important part of this and when you implement this you have to have automation as a key part because the users want things to happen when they press the build button!
Taking Microsofts Azure data centers as an example, they have automated enormously and that from the physical layer all the way into the virtual machines and networks. How does this automation gain you with your environment and becoming more agile and not just run around putting out fires but being able to address the needs of the company IT challenges today and also tomorrow!
Some say that we are in the second machine age and that the IT will have to change big time. Just look at the public cloud Company’s and their services, if they would have done things in a traditional way they would have to charge xx times the amount the charge for their services and also be xx more manpower on the data centers to cope with the day to day operation.
In the latest year Microsoft have released several automation solutions that have been developed and gives you the tools for this must-have automation platform. First of is the Service Management Automation (SMA) which is a robust orchestration engine based on PowerShell workflows and this has also been released as Azure Automation. Secondly we have Microsofts investment in Desired State Configuration and here this also utilize PowerShell. The DSC have some development left but it is so powerful and really large web services utilize this today and keeping their massive services compliant and up to date! DSC can be used for provisioning different things including third party software solutions and for example, Microsoft Azure offers different web services (jomla, wordpress etc) deployed in an automated way probably with some DSC technology behind the curtains.
Of course this gigantic automation project will not be done over a night and will cost quite a bit of money in initial investment but the winning and surviving IT Department is the one successful in their automation processes!
9 years ago I started an onboarding automation process and on that time I had VB script to work with but that manual labor every time a new employee was hired was painful and so boring and already at that time I found the will and inspiration to learn techniques to automate. Still today there are several processes in companies that are perfect candidates for automation but for some reason still being done manually…
Let me help you get Strategic in your IT (automation) delivery!
Yesterday I was testing Bare-Metal deployment on a VMM 2012 R2 with a new Hyper-v image and got the error 21161 during the process of making a physical machine into a Hyper-V Server.
I did of course check the library server (which was the same as the VMM server) and also that the vhdx that contains the Hyper-V image was in the library. I also checked the profile where the reference to the VHDx is and everything looked good.
The error was resolved when checking out the library server properties and changing to a host group instead of the default.
I have been deploying servers from this VMM before and why it started to complain right now is a mystery and I will dig and see if I can find the reason and if I do you will get an update on the blog, but now you know how to get it running 🙂
Update: Daniel Clarke mentioned my fix, In the VMM I have as this error occured I had not updated to UR3 during the time between the deployments which would otherwise had maybe explained the error. I have now updated the server to UR3 and can still do bare-metal deploy.