Azure Automation and Using Hybrid workers runbook on vSphere

During the day I have been digging into the Microsoft Operations Management Suite which is a collection of cloud services that you can get for a quite reasonable price.

The different services included is Log Analytics, Security, Automation, Availability.

I have registered my on premise Windows Servers in the log analyzer and started uploading logs getting a nice overview with several out of the box solutions that will give you a heads up on areas in your environment that needs attention…

Screen Shot 2015-08-25 at 15.19.37

 

So how about the automation? I have already been using the automaton for different services within Azure but in this case I wanted to see how I could utilize the Hybrid worker and the VMware environment residing there.

With the release of VMware PowerCLI 6 some of the stack are remade as PowerShell Modules.

So if I configure a hybrid worker on premise with the PowerCLI installed I can then utilize that in a runbook that as an example takes an input variable VMName and restarts the VM (in this case I do it without being nice and asking for a shutdown but just pulling the plug)

Screen Shot 2015-08-25 at 16.05.59

And here is the runbook:

Screen Shot 2015-08-25 at 16.02.38

And here I start the runbook with the variable,

Screen Shot 2015-08-25 at 15.51.25

And as you can see in the vSphere Client my VM winrecover restarts

Screen Shot 2015-08-25 at 15.55.19

This can of course be made a bit more complex and also as you can see in the Azure automation view, scheduled. So if you have something that needs to be automated at 11 PM every night within your VMware vSphere environment it can be done by Azure Automation and Hybrid workers..

 

Download SysCtr TP3 evaluation VHD´s with PowerShell

Earlier this week Microsoft released Windows Server Technical Preview 3 and System Center Technical Preview 3 to the masses.

There is also a way to easily test the System Center bits instead of installing everything with prereqs and stuff and that is to use the preinstalled VHD´s that Microsoft and the System Center team provides.

You can find the eval VHD´s here on the download site:

Or you can use my powershell script to download them and import into your Hyper-V server and start playing once downloaded :-D. If there are issues during download you can just start the script again as I check if the file already been downloaded so you will only download each file once and as I use the BITS engine the file appears in the download folder when it is completely downloaded….

Happy playing!!

NanoServer in Windows Server 2016 TP3 – so easy even a monkey can do it

As I described in an earlier post the Technical Preview 3 was released today and I wanted to test things. Apparently there was quite a few more thinking this way as it seems containers vhd takes forever to download but that gave me a reason to look more at the new NanoServer version.

in the TP3 media there is the NanoServer folder and to deploy Microsoft and the Nanoteam has added the PS scripts in that folder making it ridiculously easy to get things up and running (even if my title says monkey I doubt that a chimpanzee  would pull it of?!)

Screen Shot 2015-08-19 at 23.30.51

So I copied the folder to my server and ran the powershell for creating a virtual hard disk and a virtual machine with that disk.. As you can see I added some parameters such as -compute (hyper-v role) and -clustering (for failover cluster role) and name of the nanoserver, in this case I wanted it to be a hyper-v vm so I added the hyper-v integration components also but you could add some other drivers for a physical box NIC´s etc instead.

Screen Shot 2015-08-21 at 14.04.15

 

The NanoServer team has taking feedback and making a console access that can let you log on and see basic stuff and also enable/disable networking so this looks really promising for the RTM release!

Screen Shot 2015-08-19 at 23.23.02
Screen Shot 2015-08-19 at 23.23.20

and of course you can still use powershell remoting to access and manage that Nanoserver.

Screen Shot 2015-08-19 at 23.43.05

Now time to sleep and tomorrow I will check out the Container stuff!

 

Windows Server 2016 TP3 alive on Azure

So the day we all have been waiting for is here, Microsoft releases the Technical Preview 3 of Windows Server 2016

This is really exciting news as for example in this build containers is here for us to play with!

Azure have been updated with the image and I immediately went in and created myself a VM with the new bits…

Screen Shot 2015-08-19 at 15.18.23

 

And as you can see when I have the VM provisioned and log in it is actually the real stuff 🙂

 

Screen Shot 2015-08-19 at 15.28.25

 

As you can read on the technet site there is more news besides containers!

I will do a follow up post with more details later!