Skip to content
This repository was archived by the owner on Dec 12, 2025. It is now read-only.

Commit

Permalink
new azure modules
Browse files Browse the repository at this point in the history
  • Loading branch information
jhicks committed Nov 19, 2021
1 parent 5a94755 commit 6f7a722
Show file tree
Hide file tree
Showing 33 changed files with 976 additions and 35 deletions.
10 changes: 5 additions & 5 deletions content/Azure/01_intro_to_cloud_console.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "dba7ad08",
"id": "976355b6",
"metadata": {},
"source": [
"# Introduction to the Azure Console\n",
Expand All @@ -28,10 +28,10 @@
},
{
"cell_type": "markdown",
"id": "ed22965b",
"id": "41948653",
"metadata": {},
"source": [
"### Setup\n",
"## Setup\n",
"\n",
"The console is the point of entry where you will start your Azure journey. If you are participating in the CLASS Essentials Workshop, you will have received a csv file via email. This csv file contains your **username**, **temporary password** and **console login link**. \n",
"\n",
Expand All @@ -47,14 +47,14 @@
"\n",
"Figure 1 is what your screen should look like when you log in to the Azure console. Next, let's take a closer look at some key concepts and components of the Azure console. \n",
"\n",
"<img src=\"./img/azure_intro_console.jpg\" width=720 align=\"center\">\n",
"<img src=\"./images/azure_intro_console.jpg\" width=720 align=\"center\">\n",
"\n",
"<div align=\"center\">Figure 1: Logging in to the Azure console</div><br/>"
]
},
{
"cell_type": "markdown",
"id": "15ee81a4",
"id": "27fc9127",
"metadata": {},
"source": [
" **1. Hamburger**\n",
Expand Down
172 changes: 172 additions & 0 deletions content/Azure/02_intro_to_compute.ipynb
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
}
Loading

0 comments on commit 6f7a722

Please sign in to comment.