Commit c0406bc5 authored by Jonah Meijers's avatar Jonah Meijers

merge of linux container branch

parent 03dad67c
this is test content
#.NET Core Install
brew update
brew install openssl
mkdir -p /usr/local/lib
ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/
ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/
brew install wget
sudo installer -pkg dotnet-dev-osx-x64.1.0.0-preview2-1-003177.pkg -target /
#PowerShell Core 6.14
sudo installer -pkg powershell-6.0.0-alpha.14.pkg -target /
#Azure RM NetCore Preview Module Install
powershell Install-Module AzureRM.NetCore.Preview
powershell Import-Module AzureRM.NetCore.Preview
if [[ $? -eq 0 ]]
echo "Successfully installed PowerShell Core with AzureRM NetCore Preview Module."
echo "PowerShell Core with AzureRM NetCore Preview Module did not install successfully." >&2
#Install Azure CLI
read -p "Do you want to install Azure CLI? y/n" -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
brew install npm
brew install node.js
sudo npm install -g azure-cli
# sudo ln -s /usr/bin/nodejs /usr/bin/node
if [[ $? -eq 0 ]]
echo "Successfully installed Azure CLI"
echo "Azure CLI not installed successfully." >&2
echo "You chose not to install Azure CLI. Exiting now."
#non brew install
# wget
# sudo hdiutil attach azure-cli.0.10.5.dmg
# sudo installer -pkg /Volumes/azure-cli.0.10.5/azure-cli.0.10.5.dmg -target /
## Install powershell
# Download the powershell '.tar.gz' archive
curl -L -o /tmp/powershell.tar.gz
# Create the target folder where powershell will be placed
sudo mkdir -p /usr/local/microsoft/powershell/6.0.0-rc
# Expand powershell to the target folder
sudo tar zxf /tmp/powershell.tar.gz -C /usr/local/microsoft/powershell/6.0.0-rc
# Set execute permissions
sudo chmod +x /usr/local/microsoft/powershell/6.0.0-rc/pwsh
# Create the symbolic link that points to pwsh
sudo ln -s /usr/local/microsoft/powershell/6.0.0-rc/pwsh /usr/local/bin/pwsh
# Show version of PowerShellGet
pwsh -c 'Get-Module PowerShellGet -list | Select-Object Name,Version,Path'
# Install azure module for powershell
sudo pwsh -c 'Install-Module AzureRM -AllowClobber'
# Verify that the module has been installed correctly
pwsh -c 'Get-Module AzureRM -list | Select-Object Name,Version,Path'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment