At today’s #UKVMUG I presented on the topic: PowerCLI In The Enterprise: Breaking The Magician’s Code. Below are the slides from the session:
During the session I discussed breaking your PowerShell code down into functions and modules. To aid with this I am posting the 6 function templates I use which cover many of the typical scenarios I write a function for and enable the rapid creation of these functions since much of the code is typically repeated. These are:
and can be downloaded below. I hope you find them useful
I am also posting an XML based snippets file by which you can add all of the above functions to your PowerShell ISE User-Defined Snippets. Simply copy this file to your $home\Documents\WindowsPowerShell\Snippets folder (you may need to create this folder since it is not there by default). Rather than then having to copy and paste one of these template functions, you can insert them via Ctrl-J. This post will explain to you more how to use snippets in the ISE.
I was made aware today that there is a VMUG App for iOS and Android.
According to the description it looks like it will be pretty useful if you are attending a VMUG:
Attending a VMUG User Conference. Download the event app before you go to have all of your conference details at your fingertips. The app will provide you with real-time updates on sessions, speakers, exhibitors, and networking opportunities. You’ll be able to take notes, follow Tweets, connect with other attendees, provide session feedback, and more, all from your phone. Enhance your VMUG experience by utilizing the VMUG User Conferences mobile app!
It looks like it is worthwhile downloading it prior to attending the event, since it’s around 20MB, so that you are not competing for conference bandwidth.
The agenda for this year’s UKVMUG has been published and a pretty fine line up it looks too. What’s really great is that during each section of sessions, there’s a community slot with real world info from people working with VMware technologies at the coalface. You’ll be able to pick sessions from @sammcgeown @maishsk @etherealmind @rickyelqasem and me. I’ll be talking about some of my experiences of PowerCLI automation in the field and examples of how to break your code down to make it more flexible to use in different scenarios.
You can register for the event here.
Lots of hard work is already being put into organising this year’s UKVMUG. One of the best attributes of these type of events is the community content – real world content from real people, i.e. not Vendor A, B or C telling you that their latest product will solve all of your problems. (Of course that’s there too if you want to hear about that kind of thing)
A critical aspect of community content is that you are always trying to bring new people through to bring content from different areas / backgrounds / experience. It’s quite easy for these things to turn into relying on the same people to produce community content all the time. This doesn’t necessarily need to be a Powerpoint based session if you are not keen on standing up in front of a bunch of people, since other opportunities are available such as discussion groups or other interactive content. For instance maybe you are interested in finding out what challenges other people who work in the same industry (healthcare / banking / government) as you have and lead a discussion forum for that, or perhaps a discussion group around certain technologies you use, maybe VDI, Storage, Backups etc. If you haven’t done anything like this before it can be quite daunting, but I can say from personal experience that the benefits that you will gain from doing so (increased presenting confidence / get to know the topic better / opportunities arising since people will start to consider you an expert at something etc….) will be worth it – and the audiences are always very friendly
So to help keep things fresh, I’m encouraging you to consider bringing your own content (BYOC?!) to this event. Of course this needs to be done in a structured fashion so Simon Gallagher on behalf of the event has released a call for papers. Fill out the form there with your idea and put yourself in with a chance of helping make this event great!
I’ve submitted a session, but I’d be more than happy if it was turned down in favour of lots of sessions from new contributors.
The UK PowerShell UserGroup has been running for around 6 years now, but has been a little quiet of late. My fellow PowerShell MVP Richard Siddaway is currently seeking feedback on how you might like to see the group develop in the future. So if you have attended in the past or would consider attending a future event, please give him your feedback and help shape the direction it takes.
I know I’ve benefited a lot in the past from both attending these events to learn new things and also improve my presenting skills by speaking at them where a friendly audience is guaranteed. So I’d encourage you to get involved.
The next London VMUG will take place on July 4th 2013 and it looks like a great line up as usual. I’m particularly looking forward to hearing the session about some real world experiences with vCenter SSO.
I also heard a rumour that there may be a few copies of a new vCloud book given away…….
There’s still time to register for the next London VMUG on April 25th 2013. As usual some excellent sessions are lined up – hope to see you there!
While on my working sojourn up North my good friend and fellow PowerShell MVP Jonathan Noble asked me to present a PowerCLI 101 session for the North East Bytes User Group he helps to run. So on Wednesday 20th March you can join us for this event at Newcastle University, session abstract and sign up details are below:
IT Pros are starting to come to grips with the idea of managing Microsoft products with PowerShell, but it’s not just Microsoft who are making use of the powerful automation capabilities on offer. VMware have been developing their own PowerShell-based management shell for some time – PowerCLI. In this session, Jonathan Medd, a Microsoft MVP for Windows PowerShell and VMware vEXPERT, will introduce PowerCLI and show you how to really take control of your virtual infrastructure.
How do you provision, manage and decommission your (sprawling) infrastructure? Running around fighting fires while interesting project work falls by the wayside? Spending long evenings and weekends carrying out maintenance tasks while others are tweeting pictures of what fun they’re having in their spare time? Hiding from the bosses while they hunt you down to deploy a private cloud before Friday afternoon? Or even just figuring out what the heck infrastructure you have got and what underlying issues can you report on…..
Maybe you should consider some automation within your environment. If you’re coming to this year’s UKVMUG on November 15th in Birmingham then come visit Alan Renouf, William Lam and myself at the Automation Station, part of the extensive range of additional community content available at this already great event.
From provisioning / decommissioning physical and virtual servers, users, storage, networking and applications, through maintenance tasks, workflows and software testing, to what tools such as PowerShell, PowerCLI, vSphere CLI, Orchestrator, Python etc, you should or could use for different scenarios. We’d love to hear what automation you are already carrying out in your environment and have an opportunity to discuss what other things you could do.
If you ask nicely we might even write some code for you to take away to carry out an automation task.
Look forward to seeing you there and also highly encourage you check out the other community content available on the day (times subject to change, but we’ll be around all day )
The agenda for this year’s UKVMUG has been published and looks tremendous. I know how much effort is put into organising this event and they look to have surpassed themselves this time. One great thing to highlight is the amount of community content there is amongst the published sessions, definitely putting the User back into a User Group.
Watch out too for a further announcement about even more community content to be included as part of the day. I’ll be helping to provide some of this and suffice to say if you have an interest in automation then there’s going to be plenty of brain power on hand to help you out!
Check out the current published content, you can register here and watch out for further community related announcements in the next couple of weeks…..