A year has gone by and I have finally managed to bring my inventory / documentation script to the latest version. Carl Webster and a lot of other guys (all mentioned in the script) have helped updating the script and making it better, faster, more awesome! I can now focus on adding more functionality again. I have fixed most issues from the comment section, I believe and also added a couple of new things. New requirement: You need at least ConfigMgr 2012 R2 CU4. Some of the cmdlets I am using are only available in CU4. Do you know my original Powershell inventory (or documentation) script for Microsoft System Center 2012 […]
Have you been to the Global Azure Bootcamp edition of 2015 in Melbourne? http://melbourne.azurebootcamp.net Or you wanted to come, but couldn’t? (after all, it was ANZAC day) Or maybe you just landed here by chance. Either way, it seems you are interested in my session slides and some code snippets from my session on “PowerShell Desired State Configuration on Azure IaaS”. Here you go! Obviously you need to change some variables and the Azure_IaaS_DSC_DEMO_publish.ps1 does make some assumptions, but have a look and see how far you get. Great event and proud to have been part of such a huge worldwide event!
This is a real quick one. In preparation to the Global Azure Bootcamp in Melbourne I had to write a lot of PowerShell code and while provisioning VMs on Azure I came across a strange issue which took me a while to troubleshoot. New-AzureVMConfig case-sensitive I wanted to run the following script: It resulted in this output: Strange, I specified a RoleSize of small and that is a valid value, or is it? small is unequal to Small. That parameter of New-AzureVMConfig is case-sensitive. Note: New-AzureVMConfig -InstanceSize small Fails! New-AzureVMConfig -InstanceSize Small Works! Also note, the whole Azure SDK is still pre-release, so this might change in the future. Thanks […]
Are you interested in Azure? Are you thinking about extending your on-premises network to Azure and want to get an overview of what is possible? Microsoft Virtual Academy has some great learning content you can use to get your head around all the new terminology, concepts and ideas. Here’s three examples of these FREE resources on MVA: (1) Microsoft Iaas Series I: IaaS Fundamentals (2) Microsoft Iaas Series II: Dive Deep into Networking Storage and Disaster Recovery (3) Microsoft Iaas Series III: Embrace Open Source Technologies to Accelerate and Scale Solutions Enjoy using this content and make sure you check out the other content on MVA as well. – David […]
In part one of this miniseries I explained some principals around using the new class keyword in Windows PowerShell DSC resource modules. If you haven’t read that article yet, go find it here: http://www.david-obrien.net/2015/02/windows-powershell-dsc-classes-introduction-part-1/ This part 2 will concentrate on the enum keyword and the three main functions in each resource class. Enum -erate input One of the most important things in every script (no matter what language) is error handling. PowerShell and DSC is no exception here. For me, part of error handling is also to validate input users can provide your script or application with. Enum is used to implement constant values inside of a variable. A limitation […]
The Windows Management Framework 5 (WMF 5) Technical Preview also brought us PowerShell 5, and with that we got Desired State Configuration v2 (DSC v2). I just made that name up, I don’t believe it’s officially called DSC v2. 😉 Anyways, with PowerShell v5 we now got two new keywords, called “class” and “enum”. Developers will instantly recognise these two keywords and will also know what to do with them. I’m an IT Pro, not a developer, I had (have) to learn what to do with them. Follow me on my journey to a more “dev” side of the PowerShell world than I was ever used to.
ConfigMgr & PowerShell automation While being in Oslo for NicConf I had the pleasure to do a talk on “ConfigMgr and PowerShell – How to automate tasks in ConfigMgr” at a local Oslo Microsoft User Group. Even though the audience was quite small (10 attendees?), I enjoyed speaking there. It was more interactive than I expected, which was great. As promised, here are my slides (not many, I know, I’m not a Powerpoint guy): Here are some of the commands I used, run them in your test environment and on the ConfigMgr server: Enjoy, David
If you’ve been to my session on PowerShell Desired State Configuration and are interested in the slides, well, here you go. PowerShell DSC resources The session description: What is Powershell Desired State Configuration and how can you become the captain of that spaceship which is your IT environment? How hard is it really to create your own custom DSC Resource? Follow me on a journey where only the bold have gone before and realised, it wasn’t that hard after all. Download:
I was tasked to write a bunch of PowerShell scripts to deploy a new Active Directory Domain Services (ADDS) Server onto Azure. The end goal would be to have some kind of synchronisation running between the off-premises and the on-premises environment, the off-prem basically being the Test/Dev environment for that customer. Over the last couple of days I wrote down some notes on about what I did and what curiosities I found. If you haven’t yet started using the Azure PowerShell SDK, go check out http://azure.microsoft.com/en-us/documentation/articles/install-configure-powershell/ . This will help you get started. PowerShell SDK for Azure as with everything you are trying to automate, it helps a lot to have a […]
After getting rid of my Surface earlier this year there’s another big change for me, I’m saying good-bye to the Enterprise Client Management Group and with immediate effect am now a “System Center Cloud and Datacenter Management” (SCCDM) MVP. My MVP Profile has already been updated accordingly. Cloud and Datacenter Management MVP This has already been on my mind for some time. I’m still going to do and blog about ConfigMgr, but my focus will clearly stay on Cloud and Datacenter AUTOMATION, because that is what I do, in my free time, when speaking at events and of course at work. Even more exciting times ahead! –David
2015 brought its first big change for me, I’ve sold my Surface Pro 3 and bought a – wait for it – MacBook Air. 😀 Why did I sell the Surface Pro 3? Well, I was very, very excited when I got the Surface. I had the first Surface Pro, my wife had the first Surface RT and we were both pretty unimpressed with Microsoft’s first Surface. My wife still occasionally uses the Surface RT for some stuff, but I sold mine with great financial loss. Then, when Microsoft released the Surface Pro 3 I wanted to have it right away (the i5, 128GB version). Even with a 10% off […]