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

Commit

Permalink
Merge pull request #13 from CLASS/azure-dev
Browse files Browse the repository at this point in the history
new azure modules
Merged with tools and cleaned up repo and content a bit to remove warnings.
  • Loading branch information
tmiddelkoop authored Dec 2, 2021
2 parents fb9d68f + f2eabe6 commit 57ed6c7
Show file tree
Hide file tree
Showing 33 changed files with 635 additions and 661 deletions.
48 changes: 23 additions & 25 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,36 +28,40 @@
},
{
"cell_type": "markdown",
"id": "ed22965b",
"id": "61be7c43-99c1-4033-8252-6955b942bee4",
"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",
"```{admonition} Be Aware\n",
":class: danger\n",
"If you are doing self-paced learning, your login information may be different!\n",
"```\n",
"\n",
"### Logging in to the console\n",
"```"
]
},
{
"cell_type": "markdown",
"id": "f57d9cdf-8ed5-4cab-87f7-4219cb33bf2b",
"metadata": {},
"source": [
"## Logging in to the console\n",
"Paste your console login link into your web browser. You will see the Azure site requesting your username and password. Fill in your username and password that was assigned to you in the csv file. \n",
"\n",
"You are now logged on. Welcome to the first step of your cloud journey! \n",
"\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",
"The below 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",
"<div align=\"center\">Figure 1: Logging in to the Azure console</div><br/>"
"![cloud-shell](images/azure_intro_console.jpg)"
]
},
{
"cell_type": "markdown",
"id": "15ee81a4",
"id": "27fc9127",
"metadata": {},
"source": [
" **1. Hamburger**\n",
"**1. Hamburger**\n",
": If you click on the hamburger (three horizontal lines) you will get a dropdown menu and see a list of services that are offered by Azure. Currently, Azure has over N services ranging from compute to machine learning to networking to data storage. The list grows frequently!\n",
"\n",
"**2. Search bar**\n",
Expand Down Expand Up @@ -87,21 +91,15 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
"display_name": "Bash",
"language": "bash",
"name": "bash"
},
"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"
"codemirror_mode": "shell",
"file_extension": ".sh",
"mimetype": "text/x-sh",
"name": "bash"
}
},
"nbformat": 4,
Expand Down
164 changes: 164 additions & 0 deletions content/Azure/02_intro_to_compute.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
{
"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",
"**Part 1**\n",
"* Check subscription \n",
"* select or create Resource Group\n",
"* VM name\n",
"* Image\n",
"* Spot\n",
"* Size\n",
"\n",
"![vm-create](images/01_CLASS_Azure_VM_basic_01.png)\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",
"![vm-create](images/01_CLASS_Azure_VM_basic_02.png)"
]
},
{
"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",
"![vm-disks](images/02_CLASS_Azure_VM_disks.png)\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",
"![vm-networking](images/03_CLASS_Azure_VM_networking.png)"
]
},
{
"cell_type": "markdown",
"id": "1e052657",
"metadata": {},
"source": [
"Now let's continue to provision the VM. The next three menu options across the top are outside the scope of this tutorial 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",
"![vm-networking](images/04_CLASS_Azure_VM_verify.png)"
]
},
{
"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": "Bash",
"language": "bash",
"name": "bash"
},
"language_info": {
"codemirror_mode": "shell",
"file_extension": ".sh",
"mimetype": "text/x-sh",
"name": "bash"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Loading

0 comments on commit 57ed6c7

Please sign in to comment.