Skip to content

Latest commit

 

History

History
185 lines (142 loc) · 6.73 KB

readme.md

File metadata and controls

185 lines (142 loc) · 6.73 KB

Overview

Development Environment Configuration

The following configuration options should work for this hack

GitHub Account

If you plan to implement CI/CD as part of the integration solutions built during the hack (optional), you should have a GitHub account. Create a free account here

Azure Subscription

If you don't have an Azure subscription, create a free account before you begin. The following subscription types should work:

  • Azure Visual Studio Subscription
  • Azure Enterprise Dev/Test Subscription
  • Azure Enterprise Subscription
  • Ability to create the following resources:
    • Logic Apps
    • Azure Functions
    • Log Analytics Workspace
    • Application Insights
    • API Management
    • Service Bus
    • Event Grid

Windows 10 with Ubuntu WSL

  • Visual Studio (C#)
    • Azure Development Workload
    • .NET cross platform development
    • Azure LogicApps Tools for VS2019 Download
  • Visual Studio Code Download
    • Azure Account extension
    • Azure logic app (standard) extension
    • Azure logic app (consumption) extension
    • Azure Functions extension
    • Windows Subsystem for Linux (WSL) extension
  • Azure Functions Core Tools 3 for Windows Download
  • Azure CLI Download
  • .NET 3.1 for Windows Download
  • .NET 5.0 for Windows Download
  • Ubuntu for WSL (From the Microsoft Store)
    • NOTE: Installation Script Below
    • Azure CLI for Linux
    • Azure Functions Core Tools 3 for Linux
    • .NET Core SDK 3 & 5 for Linux
    • Nodejs 14.18.1

WIndows REST Clients/Tools (optional)

macOS

  • Azure CLI
  • Azure Functions Core Tools 3
  • .NET Core SDK
  • VS Code (JavaScript, Python)
    • Azure Account extension
    • Azure logic app (standard) extension
    • Azure Functions extension
    • WSL extension

Ubuntu 20.04 Install Reference

Ubuntu Updates

sudo apt-get update -y && sudo apt-get upgrade -y

Azure CLI

Install Azure CLI on Linux

sudo apt-get install ca-certificates curl apt-transport-https lsb-release gnupg
curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/microsoft.gpg > /dev/null
AZ_REPO=$(lsb_release -cs)
echo $AZ_REPO
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | sudo tee /etc/apt/sources.list.d/azure-cli.list
cat /etc/apt/sources.list.d/azure-cli.list
sudo apt-get update -y
sudo apt-get install azure-cli -y

Azure Functions Core Tools 3

Work with Azure Functions Core Tools on Ubuntu

curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-$(lsb_release -cs)-prod $(lsb_release -cs) main" > /etc/apt/sources.list.d/dotnetdev.list'
cat /etc/apt/sources.list.d/dotnetdev.list
sudo apt-get update -y
sudo apt-get install azure-functions-core-tools-3 -y
echo 'export FUNCTIONS_CORE_TOOLS_TELEMETRY_OPTOUT=1' >> ~/.bashrc
cat ~/.bashrc

Dotnet Core SDK 5

Install the .NET SDK or the .NET Runtime on Ubuntu

wget https://packages.microsoft.com/config/ubuntu/21.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
sudo apt-get install apt-transport-https -y
sudo apt-get install -y dotnet-sdk-5.0 -y
echo 'export DOTNET_CLI_TELEMETRY_OPTOUT=1' >> ~/.bashrc
cat ~/.bashrc

Nodejs v14.18.1

How to install Node.js via binary archive on Linux

wget https://nodejs.org/dist/v14.18.1/node-v14.18.1-linux-x64.tar.xz
VERSION=v14.18.1
DISTRO=linux-x64
sudo mkdir -p /usr/local/lib/nodejs
ll /usr/local/lib/nodejs
echo $VERSION
echo $DISTRO
sudo tar -xJvf node-$VERSION-$DISTRO.tar.xz -C /usr/local/lib/nodejs
echo 'VERSION=v14.18.1' >> ~/.bashrc
echo 'DISTRO=linux-x64' >> ~/.bashrc
echo 'export PATH=/usr/local/lib/nodejs/node-$VERSION-$DISTRO/bin:$PATH' >> ~/.bashrc
cat ~/.bashrc
. ~/.profile
node -v
npm version
npx -v

macOS Install Reference

Homebrew

Homebrew macOS Requirements

  • A 64-bit Intel CPU or Apple Silicon CPU
  • macOS Mojave (10.14) (or higher)
  • Command Line Tools (CLT) for Xcode: xcode-select --install, developer.apple.com/downloads or Xcode 3
    • NOTE: Some homebrew formulae require full the Xcode installation which may require an Apple Developer account. You can get an Apple Developer account here
  • A Bourne-compatible shell for installation (e.g. bash or zsh)

Install homebrew package manager

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Azure CLI

Install Azure CLI on macOS

For the macOS platform, you can install the Azure CLI with the homebrew package manager

brew update && brew install azure-cli

Azure Functions Core Tools 3

Work with Azure Functions Core Tools on macOS

brew tap azure/functions
brew install azure-functions-core-tools@3

# if upgrading on a machine that has 2.x installed
brew link --overwrite azure-functions-core-tools@3

Dotnet Core SDK 5

Install .NET on macOS Overview

Standalone installer for .NET on macOS

Nodejs 14.17.5

Node.js macOS Installer (.pkg)