Updated! PowerShell Core [Beta] 6.04, AzureRM.NetCore Module, and Az CLI 2.0 Install Scripts for Ubuntu and OS X

Note: This post is now old. Please use my latest installer from this blog post

Quick update today – I previously wrote new install scripts for PowerShell Core Versions 6.11 and 6.14 with the AzureRM.NetCore.Preview module and optional install of Azure CLI (1.0).

Today, I have updated them! The below scripts have been modified to install the current, as of today (8/2/2017), version of PowerShell Core (Beta 6.04), an optional install of updated AzureRM.NetCore, and Azure CLI 2.0. You can access the scripts using the below links. As always, please read the script prior to running it on your system – you should NEVER run a script without reading it first, no matter who authored it.

Linux Ubuntu 14.04
Linux Ubuntu 16.04
Mac OS X 10.11 and 10.12

Please comment if you have any questions, comments, tips, or just want to say hi!

Reminder: All of my posts are provided "AS IS", imply no warranties, and confer no rights or special privileges. Use of included postings, code samples and other works are subject to the terms specified at Microsoft. For more information, click here.

Comments 5

  • Greetings, ma’am.

    Out of curiosity, would this work on a machine with FileVault enabled? I’m running 10.11.6 (El Capitan), and my machine died with the first uncommented line for the brew install in a very thorough way short of physically catching fire. (Won’t boot, in any mode… or recognize bootable thumb drives… or start recovery tool. Resetting the PRAM, SMC, etc. did nothing.)

    I’m hoping you or someone else encountered something similar and could point out to my moronic behind what went wrong, or better yet how to proceed. I’m hoping I’m in more of a tunnel than a pit.

    Also, a huge thank you for putting the non-Sierra install together. I was a bit overzealous to try it.

  • You’re so welcome! My system is encrypted (APFS) so I don’t see why this wouldn’t work. I’m running High Sierra, but that’s after it’s been upgraded a few times. I did use this same setup on El Capitan awhile back. Can you break down where your machine died? If it won’t boot, it sounds like it could be more of a hardware issue than software. I’m trying to think of what brew command would elicit that kind of behavior.

    Also, please note, this post is a few months old now and PowerShell Core has been updated. I have been traveling recently, but as soon as I get more time, I plan to make an update to this post with updated scripts.


    • Thanks again for your rapid response, and I apologize for the delay in mine. You’re correct on the HW issue. My discrete GPU died, for the third time, with fairly bad timing. I’ve disabled both it and FileVault, and managed to complete the core install after overcoming a new peculiar issue.

      Regarding the updated PowerShell Core, I believe the newer one is intended for HIgh Sierra only, correct? I was originally trying to run the 10.12 installer from git and that failed, hence my discovery of your blog… although I just realized it also refers to 10.12.

      Regarding the peculiar error, it occurs while executing line 20 of betaps6.04_osx_install.sh. The portion of the response that immediately precedes the error is:
      Length: 53224189 (51M) [application/octet-stream]
      edaff7be-67e2-11e7-89fd-c4110372c056?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20171117%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20171117T132517Z&X-Amz-Expires=300&X-Amz-Signature=14213a9fe7438dc0b8cd980f4e2fd5f0315369ef760b349202c935a2de31467e&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment; filename=powershell-6.0.0-beta.4-osx.10.12-x64.pkg&response-content-type=application%2Foctet-stream: File name too long

      Adding the -O option for the wget fixed it. I cannot see why the filename is too long, but just in case someone else encounters the issue that workaround resolved it for me.

      I’m looking forward to the eventual update to your awesome post. Happy travels! 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.