Finally the AzureStack TP1 bits have arrived!

Yesterday the AzureStack TP1 PoC files was released and now you can play around and create your own Azure. Now I just need a decent hardware to run this!

If you have some issues with the requirements my friend Daniel have made a blog about how you can try to install it with less memory!

Shown below is the diagram of the PoC setup and here you can see all the different roles included for your Azure on premises :-)

image1

On this page you can read more about it and learn how to deploy it to your environment!

Cool Stuff happening!

So 2016 have started and fun stuff will happen in the near future!

Last week me and the family was in the ski mountains Idre and the rest of the family was skiing but I had a achilles tendon rupture in the christmas weekend so I had to be in the cabin most of the time! Although one evening I got to do some sightseeing on the mountain B-)

20160114_190931000_iOS

Pretty amazing stuff going with a large piste caterpillar and seeing the result!

But more importantly what is happening in the near future:

DevOps Hackathon in CopenHagen 20-21/1

I will be one of the proctors on Rasmus Hald´s DevOps Hackathon that will take place in Microsoft´s office in Copenhagen Denmark. During two days we will do workshops in DevOps stuff.

NIC in Oslo 4-5/2

Me and Fredrik will do two sessions on DevOps and automation with Chef/Azure/PowerShell/ARM during the Nordic Infrastructure Conference

Want to join? sign up here and book your flights

TechXAzure Microsoft Sweden 15-16/2

During the two-day event at Microsoft Sweden´s TechXAzure me self and Fredrik Nilsson will talk about AzureStack,OMS,Chef and Azure

Sign up here

DevOps day Microsoft Sweden 24/2

In this one-day event I will be with some MVP friends Jacob and Mathias and also Fredrik Nilsson where the Swedish Devs and Ops will learn how to become DevOps with Microsoft solutions.

Please join us! this one is free!!

Azure Automation – Hybrid job with custom runas account

Microsoft and the Azure Automation team has made it possible to use a custom account when running a job on a hybrid worker and that is awesome! Originally the jobs runs under the Microsoft Management Agent´s service account context and that is not always wanted.

Screen Shot 2016-01-09 at 13.56.43

As I described in a post that I did some time ago I used a parameter -PScredential with the inlinescript but now I can with the new functionality get the whole job in the right user context, the user should be saved as a credential asset in your automation account! Last year also the possibility to use PowerShell scripts runbooks besides Workflow runbooks!

Screen Shot 2016-01-09 at 13.57.15

Happy automating!

MVP 2016 – Cloud and Datacenter Management

The year of 2016 started in the best of ways when I got the mail every technical community fellow waits for with the subject:

Congratulations 2016 Microsoft MVP!

mvp

Dear Niklas Akerlund,

Congratulations! We are pleased to present you with the 2016 Microsoft® MVP Award! This award is given to exceptional technical community leaders who actively share their high quality, real world expertise with others. We appreciate your outstanding contributions in Cloud and Datacenter Management technical communities during the past year.

I am very thankful and happy that I get this for the third year!

And thank you IT-fellow out there that read and follow my content!

The year of 2015 could though have ended in a better way, I played some badminton after christmas and had the unfortunate luck to get a achilles tendon rupture so the first half of 2016 I will be recovering from this..  (typical injury for a male in his 40ies 😬 )

10624574_10153348252508549_1911082092853277587_n

//Niklas

Download SysCtr 2016 TP4 VHD´s with PowerShell

I have been using and publishing my script for easily download all the VHD´s for evaluating and testing the technical previews of System Center 2016 and now it is time for the TP4! These pre-installed VHD´s make it quite easy to spin up some of the System Center Suite as VM´s on your Hyper-V box within minutes once downloaded.

Here is the script for your convenience and start playing with the new release!

 

 

Creating VM´s with configuration version 5.0 on Hyper-V 2016 TP4

Creating a VM in the GUI on a Hyper-V manager with Windows Server 2016 TP4 makes a VM configuration 7.0 by default and once that is done it is not possible to move the VM to a Hyper-V 2012 R2 box.

So if you have a mixed environment and want to be able to move those VM´s to a 2012 R2 Hyper-V box you will have to use powershell to create that VM instead of the GUI. One alternative way is to create them on that 2012 R2 box and then move it to the 2016 but that is not as cool  😉

in the New-VM cmdlet there is a parameter -Version that you can use and set the configuration version to 5.0 instead of 7 and thus enabling it to be compatible with the older version of Hyper-V.

I have two examples in the screendump below where you can see the result,

Screen Shot 2015-11-23 at 13.43.46

My friend Didier has made a blog post about how you upgrade the configuration version if you do not need this backward compatibility and some new features requires the configuration version 7.

Trying to do a Checkpoint on a VM resulting in error 12700

Today I helped a customer that have issues with their new VM´s and doing backup using Veeam and also trying to do Checkpoints within VMM on their Hyper-V 2012 R2 environment.

19982_orig

Looking at the error message from VMM it showed quite clearly that it was just one of the VHDx that was having the issue and looking at where it was residing it showed the reason:

Screen Shot 2015-11-13 at 11.43.59

The file was residing on its own in a CSV volume and directly in the root folder, and as stated in the blog post from the Core Team the VM worker process (VMMS) does not have the relevant permissions on that level and thus getting a access denied error when trying to do a checkpoint.

So how do you solve it? By either manually or with live storage migration moving it into a subfolder which will give the right ACL´s and thus giving the VM worker process rights to create a avhdx file in that folder.

So watch out when you create new VM´s that you actually put all of the virtual disks that belong to it inside folders on those CSV´s!

Managing Azure workloads with Chef and PowerShell DSC at TechDays

pic-devops-kungfu

Last week at TechDays me self and Fredrik Nilsson had a session about managing your workloads in Azure with Chef and PowerShell DSC. Despite the fact that we had the same timeslot as Arwidmark, Nystrom and Ben Armstrong our room was quite full of kung fu interested geeks 😉

Here is the presentation so you can find the links and info:

Screen Shot 2015-10-26 at 10.34.23

TechDaysChefAzure

For you guys that did not have the opportunity to be there, a recording will be available although it is in Swedish…

Playing with automation of OMS agent deployment

I have been playing around with automation of the deployment of OMS agents in my lab environment and wanted to share one way to do it, of course there are others.

I found Adam´s contribution to send files over PS2+ WinRM instead of utilizing a remote share or other deployment of the installation file..  Sometimes you maybe have firewall constraints to take into consideration and then this is a handy way to get that MMAgent over and installed if you have maybe only PowerShell remoting open :-)

If you already have WMF 5 deployed you can utilize that instead of the Send-File function as it is in the new PowerShell version by default.

Screen Shot 2015-10-13 at 21.40.01

And here is the code:

good luck in deploying those OMS agents!

 

Rescue failing deploy from VMM 2012 R2 to Hyper-v hosts

I was contacted by a customer with an issue where he could not use ISO´s or deploy VM´s from his VMM server to the Hyper-V hosts.

Screen Shot 2015-10-13 at 16.36.56

First I started searching the net for solutions and found some that could match:

Move VM error  : https://fawzi.wordpress.com/2013/10/03/vmm-2012-sp1-error-2912-when-moving-vm/ suggesting changing BITS port

Deploy VM from VMM : http://blogs.msdn.com/b/nitinsingh/archive/2015/03/31/getting-error-error-2912-quot-an-internal-error-has-occurred-trying-to-contact-the-server-no-param-no-param-while-trying-to-deploy-a-virtual-machine-in-system-center-virtual-machine-manager-scvmm.aspx where I updated the hosts certificates on the VMM server,

but they did not help as the error continued, I also tried to reinstall the VMM agents on the hosts if that would have been the cause.

Starting to investigating this issue more thoroughly i noticed some strange things, I could store VM´s from the hosts into the VMM library so that way worked with BITS, So the problem seemed to be related to the VMM Server..

Screen Shot 2015-10-13 at 16.36.39

Talking with my friend and MVP Daniel Neumann he sent me a link to another blog post that describes if you have deleted the VMM certificate (my certificate was there but apparently out of sync in some way) so here is the steps to regenerate the VMM certificate:

1. Launch the VMM PowerShell on the Virtual Machine Manager server.

2. Type the following and press enter:

$credential = get-credential

3. Type the username and password that is a local admin on the VMM server.

4. Type the following and press enter:

Get-VMMManagedComputer -ComputerName “vmm2012sp1.contoso.com” | Register-SCVMMManagedComputer  -Credential $credential

5. Ensure that the VMM job completes successfully under the Jobs tab in the VMM console.

Note: In my example above, vmm2012.contoso.com is the FQDN of the VMM server.

And after this the VMM deploy works again!