Tuesday 18 November 2014

The joy of setting up course 20346B: Managing Office 365 Identities and Services

Here is a nice wee tale of the nuances of setting up for this course. I am writing this mainly for others who might already teach this course, so I presume that there's a little bit of inside knowledge along the way.

Ok, so in the latest little plot twist there is a new issue with the setup scripts. It is REALLY easy to fix, but a bit of a pain.

In the setup, you have to do get-azurepublishsettingsfile, then import-publishsettingsfile and after you've got that sorted, it's time to run the configure script.  And things fall undone. Quickly. Red text EVERYWHERE!

 
So what's the deal here? When you run the script, you're asked for numbers. First, you enter your CPLS ID which you then pad out with an extra 0 if you need it. We are 4232190 so I add a 0 to the end to be 42321900. You have to, as there is a check in the script to deal with it.  And then you add a 3 digit number for the student ID. We've all done it, you know there is nothing new there. What ends up happening is that to further 'uniquify' the lab IDs, the script appends today's date to give you a long string.  Mine today was 423219000071117.

Then, it adds the name lucstorage to the beginning of the name so eventually you end up with lucstorage423219000071117, a handy dandy unique 25 character string.

Seems harmless.

To many of us that have set this course up, we're used to seeing a bit of red in the Azure Powershell window from time to time. Sometimes it's cos we forgot the firewall, or didn't raise to admin level on the window.  In this new error, that isn't the cause.

Believe it or not, the storage that is built, has to have a name with between 3 and 24 characters, of course starting with lower case letters, but can include numbers!

To solve this for myself, I opened variables.ps1. Find the line that says @storagebase = "lucstorage" and change it to @storagebase = "lucstor"

After that, no more red text and perfect success for the setup.

I don't know if anyone else has had this issue yet? I gather I discovered it today as it's the first time that I have taught the course in a double number day, double number month! :-)  It was the beginning of Oct the last time I taught this, and prior to that, months with a single digit! Ha!

Hope this helps, if you do come across it.

Cheers,
Malc.