Skip to content

Details

Veronika's talk will move to next month, October 2019.

In her place, I (John Zabroski) will give a DevOps talk on Re-usable PowerShell Modules written in C#.

Background:
Writing PowerShell modules in C# might sound heretical, until you consider:

  1. Microsoft writes much of its core PowerShell modules in C#
  2. By using a language you already know very well, you can side-step risky issues such as Key Man Risk (it's hard to find good PowerShell developers)
  3. If you're a manager with a C# development background, it's easier to provide guidance to a C# engineer than a PowerShell developer, especially in "crunch time".
  4. With C#, you can use best-in-class Visual Studio IDE (and debugger!) to develop your DevOps code.
  5. The output of C# code is assemblies, which you can then re-use in other parts of your system that don't involve scripting
  6. C# has 20 years of mature, best practices around testing frameworks and dependency injection
  7. Stack traces are generally much nicer in C# vs. PowerShell
  8. Async / await and other "language goodies" that are in C# but missing in PowerShell
  9. ...and other issues and reasons that could make up a Top 100 Reasons to come to this talk!

This is not just theory. We're using C#-based PowerShell for automated reboot schedules and system monitoring. We've also suffered through the pain of writing large PowerShell scripts for things like deploying SSRS reports and managing DevOps pipelines including development database nightly refreshes. Best of all, we've come up with a set of best practices and reviewed these with members of the PowerShell GitHub community.

If you have a team with HUNDRED TIMES the C# experience you have PowerShell experience, like ours, then maybe this talk is for you and your team.

Related topics

You may also like