Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 40 additions & 1 deletion Week 1/LAB1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,43 @@ Quickstart: Create a Linux VM
* https://docs.microsoft.com/en-us/azure/virtual-machines/linux/quick-create-cli

Quickstart for Bash in Azure Cloud Shell
* https://docs.microsoft.com/en-us/azure/cloud-shell/quickstart
* https://docs.microsoft.com/en-us/azure/cloud-shell/quickstart


### Create Resource Group
az group create --name FirstResourceGroup --location eastus

### Create VM
az vm create \
> --resource-group FirstResourceGroup \
> --name muyiwaVM \
> --image UbuntuLTS \
> --admin-username muyiwa \
> --generate-ssh-keys

### Output
{
"fqdns": "",
"id": "/subscriptions/bc6996bb-6218-4ff9-8b22-caf9b8903a23/resourceGroups/FirstResourceGroup/providers/Microsoft.Compute/virtualMachines/VM1",
"location": "eastus",
"macAddress": "00-22-48-21-46-45",
"powerState": "VM running",
"privateIpAddress": "10.0.0.4",
"publicIpAddress": "20.106.133.238",
"resourceGroup": "FirstResourceGroup",
"zones": ""
}

### Open port 80 for web traffic

az vm open-port --port 80 --resource-group FirstResourceGroup --name muyiwaVM

### Connect SSH to VM

ssh [email protected]


### Install Web Server

sudo apt-get -y update
sudo apt-get -y install nginx