News

PowerShell on Linux? It's About Time

Microsoft is open sourcing its popular scripting language and porting it to the Linux and Mac OSX platforms. PowerShell capabilities will also reach into the cloud via extensions for Microsoft Operations Management Suite.

Microsoft has open sourced PowerShell, the .NET Framework-based command-line shell and scripting language commonly used for task automation and configuration management. It's also being ported for use on Linux and Mac OSX platforms.

"As we port PowerShell to Linux, we are making sure that we are a first class citizen on that platform. We fit in well with the architecture, idioms and existing tools," wrote Jeffrey Snover, Technical Fellow with Microsoft's Enterprise Cloud Group, in a blog post. He said that the current project is in the alpha stage, with support initially for Ubuntu, CentOS, and Red Hat variants of Linux, as well as Mac OSX.

Snover indicated that porting PowerShell to Linux "pretty easy as most of the original PowerShell team had deep Unix backgrounds and that shows in our design." To help spur further development, his group created a PowerShell Editor Service, to extend project authoring with the usual IntelliSense, debugging, and programming aids that developers are familiar with. It also supports Visual Studio Code and Sublime Text editors, with support for other editors to come. To open up connection options for the PowerShell Remoting Protocol, he said the group will be extending it "to use OpenSSH as a native transport."

Snover notes that PowerShell is also being integrated into Microsoft Operations Management Suite, which will allow developers to extend PowerShell's capabilities to applications and workloads into Azure and other clouds using a number of modules and scripts in the PowerShell Gallery. (On a side note, Snover notes the availability of an OMS addition that can provide real-time monitoring of Linux workloads.)

"You can graphically author and manage all PowerShell resources including runbooks, DSC configurations and DSC node configurations from one place," he said.

Microsoft will be showcasing PowerShell for Linux at next week's LinuxCon event in Toronto, Canada.

PowerShell can be obtained from the GitHub site here; it's currently at version 5.1 as of the Windows 10 Anniversary Update release.

About the Author

Michael Domingo is a long-time software publishing veteran, having started up and managed several developer publications for the Clipper compiler, Microsoft Access, and Visual Basic. He's also managed IT pubs for 1105 Media, including Microsoft Certified Professional Magazine and Virtualization Review before landing his current gig as Visual Studio Magazine Editor in Chief. Besides his publishing life, he's a professional photographer, whose work can be found by Googling domingophoto.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube