This repository was archived by the owner on Dec 12, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
976 additions
and
35 deletions.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,172 @@ | ||
| { | ||
| "cells": [ | ||
| { | ||
| "cell_type": "markdown", | ||
| "id": "8932d2c1", | ||
| "metadata": {}, | ||
| "source": [ | ||
| "# Introduction to Virtual Machines (VM) in Azure\n", | ||
| "\n", | ||
| "\n", | ||
| "```{admonition} Overview\n", | ||
| ":class: tip\n", | ||
| "\n", | ||
| "**Teaching:** 45 mins\n", | ||
| "\n", | ||
| "**Exercises:** 10 mins\n", | ||
| "\n", | ||
| "**Questions:**\n", | ||
| "\n", | ||
| "**Objectives:**\n", | ||
| "* Understand the concept of virtual servers.\n", | ||
| "\n", | ||
| "```" | ||
| ] | ||
| }, | ||
| { | ||
| "cell_type": "markdown", | ||
| "id": "05306c25", | ||
| "metadata": {}, | ||
| "source": [ | ||
| "**Create a VM**\n", | ||
| "\n", | ||
| "Hamburger in upper left -> Virtual Machines -> Create (+) in upper left -> virtual machines ->\n", | ||
| "In the middle of the page under \"Create Virtual Machine\" heading there are menu options from left to right: Basic, Disk, Networking, Management, Advanced, Tags, Review & Create\n", | ||
| " \n", | ||
| "**Basic:**\n", | ||
| " \n", | ||
| "**Part 1**\n", | ||
| "* Check subscription \n", | ||
| "* select or create Resource Group\n", | ||
| "* VM name\n", | ||
| "* Image\n", | ||
| "* Spot\n", | ||
| "* Size\n", | ||
| "\n", | ||
| "<img src=\"./images/01_CLASS_Azure_VM_basic_01.pg\" width=720 align=\"center\">\n", | ||
| "\n", | ||
| "**Part 2**\n", | ||
| "* Authentication type \n", | ||
| " * ssh public key\n", | ||
| "* Username\n", | ||
| " * Choose usename (default: azeruser)\n", | ||
| "* ssh public key source\n", | ||
| " * Generate new key pair\n", | ||
| "* Key pair name\n", | ||
| " * Choose name for key pair (default: auto generated based on VM name)\n", | ||
| "* Ports (none)\n", | ||
| " * Open inbound ports (default: none)\n", | ||
| "\n", | ||
| "<img src=\"./images/01_CLASS_Azure_VM_basic_02.png\" width=720 align=\"center\">\n" | ||
| ] | ||
| }, | ||
| { | ||
| "cell_type": "markdown", | ||
| "id": "536af466", | ||
| "metadata": {}, | ||
| "source": [ | ||
| "Now let's continue to the disk configuration by clicking Next:Disk> on the bottum or on the top heading menu choose the Disk option.\n", | ||
| "\n", | ||
| "**Disk**\n", | ||
| "* OS Disk type\n", | ||
| " * Leave as default\n", | ||
| "* Encryption type\n", | ||
| " * Leave as default\n", | ||
| "* Data disk (create or attach)\n", | ||
| " * Leave as default\n", | ||
| "\n", | ||
| "<img src=\"./images/02_CLASS_Azure_VM_disks.png\" width=720 align=\"center\">\n" | ||
| ] | ||
| }, | ||
| { | ||
| "cell_type": "markdown", | ||
| "id": "007e8359", | ||
| "metadata": {}, | ||
| "source": [ | ||
| "Now let's continue to the networking configuration by clicking Next:Networking> on the bottum or on the top heading menu choose the Networking option.\n", | ||
| "\n", | ||
| "**Networking**\n", | ||
| "* Virtual network name\n", | ||
| "* Public IP\n", | ||
| " * None\n", | ||
| "* NIC network security group \n", | ||
| " * None\n", | ||
| "* Public inbound port(s)\n", | ||
| " * Allow selected port\n", | ||
| "* Select inbound port(s)\n", | ||
| " * Use 22 for ssh access\n", | ||
| " \n", | ||
| "<img src=\"./images/03_CLASS_Azure_VM_networking.png\" width=720 align=\"center\">\n" | ||
| ] | ||
| }, | ||
| { | ||
| "cell_type": "markdown", | ||
| "id": "1e052657", | ||
| "metadata": {}, | ||
| "source": [ | ||
| "Now let's continue to provision the VM. The next three menu options accross the top are outside the scope of this tutoial so now we are ready to click Review & Create.\n", | ||
| "\n", | ||
| "**Management**\n", | ||
| "* Outside of scope\n", | ||
| "\n", | ||
| "**Advanced**\n", | ||
| "\n", | ||
| " * Outside of scope\n", | ||
| " \n", | ||
| "**Tags**\n", | ||
| "\n", | ||
| " * Outside of scope\n", | ||
| " \n", | ||
| "**Review & Create**\n", | ||
| "\n", | ||
| " * Click Review & Create \n", | ||
| " * After review you should have a green check indicating a successful validation\n", | ||
| " * Check parameters for correctness\n", | ||
| " * Click create\n", | ||
| "\n", | ||
| "When the VM is provisioned we can verify that the VM was created.\n", | ||
| "\n", | ||
| "**Verify deployment**\n", | ||
| "* Click the hamburger in the upper left\n", | ||
| "* Choose Virtual Machines\n", | ||
| "* You should see your VM name\n", | ||
| "* Click on VM name to get more information about your VM\n", | ||
| "\n", | ||
| "<img src=\"./images/04_CLASS_Azure_VM_verify.png\" width=720 align=\"center\">" | ||
| ] | ||
| }, | ||
| { | ||
| "cell_type": "markdown", | ||
| "id": "48a51891", | ||
| "metadata": {}, | ||
| "source": [ | ||
| "```{admonition} Exercise\n", | ||
| ":class: attention\n", | ||
| "\n", | ||
| "* How do Spot Instances help you optimize costs?\n", | ||
| "````" | ||
| ] | ||
| } | ||
| ], | ||
| "metadata": { | ||
| "kernelspec": { | ||
| "display_name": "Python 3 (ipykernel)", | ||
| "language": "python", | ||
| "name": "python3" | ||
| }, | ||
| "language_info": { | ||
| "codemirror_mode": { | ||
| "name": "ipython", | ||
| "version": 3 | ||
| }, | ||
| "file_extension": ".py", | ||
| "mimetype": "text/x-python", | ||
| "name": "python", | ||
| "nbconvert_exporter": "python", | ||
| "pygments_lexer": "ipython3", | ||
| "version": "3.9.7" | ||
| } | ||
| }, | ||
| "nbformat": 4, | ||
| "nbformat_minor": 5 | ||
| } |
Oops, something went wrong.