Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
CLASS-Essentials/content/Azure/01_intro_to_cloud_console.ipynb
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
225 lines (225 sloc)
9.81 KB
This file contains 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
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"id": "a13f1d28", | |
"metadata": {}, | |
"source": [ | |
"# Introduction to the Azure Cloud Console\n", | |
"\n", | |
"```{admonition} Overview\n", | |
":class: tip\n", | |
"\n", | |
"**Teaching:** 15 mins\n", | |
"\n", | |
"**Exercises:** 5 mins\n", | |
"\n", | |
"**Questions:**\n", | |
"* How do I find things in the web console?\n", | |
"* How do I access the cloud through the command line?\n", | |
"\n", | |
"**Objectives:**\n", | |
"* Login to the Azure web console\n", | |
"* Find and verify important information about your cloud environment.\n", | |
"* Find and open the Cloud Shell\n", | |
"```" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"id": "7ba16e4b", | |
"metadata": {}, | |
"source": [ | |
"## The Who, What, and Where of the Cloud\n", | |
"\n", | |
"Before we get started we must first define, and find, a few key pieces of information about your environment that will be used throughout this lesson. This information is also important to ensure that this information is what you expect, otherwise you may use the wrong account or run or store things in the wrong place. It is important to be clear about these terms as they are often different in other cloud providers. \n", | |
"We provide a [glossary of Azure terms](glossary.ipynb) for your reference." | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"id": "50435734", | |
"metadata": {}, | |
"source": [ | |
"## Accounts (Authentication and Identity) & login\n", | |
"\n", | |
"The (Azure) **Account** is the identity used to access the Azure web console and is in the form of an email address and is associated with an individual (the *who* is you!). This is typically the account you use to access Azure services associated with your institution and not your personal account. We will now login to the Azure web console and verify our account.\n", | |
"\n", | |
" * Login to the web console with your (Azure) account by going to [https://portal.azure.com/](https://portal.azure.com/)\n", | |
" * Fill in your username and password (assigned to you in the email from CLASS or perhaps from your institution). \n", | |
" * Find your user/account under the \"Avatar\" in the top right corner of the console (see number 5 below).\n", | |
"\n", | |
"You are now logged in. Welcome to the first step of your cloud journey!" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"id": "4890c114", | |
"metadata": {}, | |
"source": [ | |
"```{admonition} Exercise\n", | |
"\n", | |
"Take a few moments to ask yourself the following questions:\n", | |
" * What account are you currently using in the Azure Cloud web console?\n", | |
" * Are you logged into any other accounts?\n", | |
" * How do you know which account is being used?\n", | |
" \n", | |
" If you are not currently using the correct account, switch to it.\n", | |
"```" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"id": "d8677292", | |
"metadata": {}, | |
"source": [ | |
"## Subscriptions\n", | |
" \n", | |
"Click on the *Directories & Subscriptions* button in the console (number 4 below).\n", | |
"Verify that you are in the right *Active Directory and Subscription* (For more information on Active Directories and Subscriptions, see the *glossary of Azure terms* link above)." | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"id": "9da5a232", | |
"metadata": {}, | |
"source": [ | |
"```{admonition} Exercise\n", | |
"Take a few moments to ask yourself the following questions:\n", | |
" * What is the *name* of the Subscription you are currently using in the Azure web console?\n", | |
" * Do you have multiple subscriptions?\n", | |
" * How do you know which subscription you are currently using?\n", | |
"\n", | |
"If you are currently not using the correct subscription for this lesson, switch to the correct one.\n", | |
"```" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"id": "0ba10e1f", | |
"metadata": {}, | |
"source": [ | |
"## Services\n", | |
"\n", | |
"The web console is used to control and observe the cloud from the browser. It should only be used for simple and one-time tasks, \n", | |
"exploring new services, accessing documentation, or for monitoring and debugging resources in the cloud. Programmatic control \n", | |
"through the console (cloud shell), programming languages (for example Python), and other automation tools should be used for day to \n", | |
"day activities to make the most out of the cloud and to help with the reproducibility of research and teaching.\n", | |
"\n", | |
"The Navigation Menu (number 1 below) is used to navigate to the various products, which are also called services. We can also use the \n", | |
"Search bar (number 2 below) to find services.\n", | |
"\n", | |
"Navigation Menu\n", | |
"\n", | |
"\n", | |
"\n", | |
" * Click on a product to navigate to the product page \n", | |
" * Click the hamburger again to hide the Left Sidebar.\n", | |
"\n", | |
"All the different products and services are the \"What\" of the cloud. \n" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"id": "c6f395df", | |
"metadata": {}, | |
"source": [ | |
"```{admonition} Exercise\n", | |
"\n", | |
"Take a few moments to navigate to a few key services.\n", | |
" * Navigate to the \"Virtual Machine\" service in the Left Sidebar menu.\n", | |
" * Navigate to \"Storage Accounts\" service in the Left Sidebar menu.\n", | |
"```" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"id": "5a852547", | |
"metadata": {}, | |
"source": [ | |
"## Everything Else\n", | |
"\n", | |
"If you did not already notice, every page on the Azure web console has a blue navigation bar at the top of the page. This can be used to quickly navigate to the page you need.\n", | |
"\n", | |
"\n", | |
"The top of your screen should look very similar to the following 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", | |
"\n", | |
"\n", | |
"**1. Navigation Menu (sometimes called the hamburger)**\n", | |
": If you click on the hamburger (three horizontal lines) you will get a dropdown menu and see a list of frequently used services that are offered by Azure. Currently, Azure has over 200 services ranging from compute to machine learning to networking to data storage. The list grows frequently!\n", | |
"\n", | |
"**2. Search bar**\n", | |
": You can also use the search bar to find a particular service or offering that you are \n", | |
"interested in. For example, if you wanted to provision or utilize a \"virtual machine\", \n", | |
"you can try using the search bar to search for \"Virtual Machines\". As you start typing, \n", | |
"the words starting with \"V\" it will auto fill. Choose Virtual Machines from the options displayed.\n", | |
"\n", | |
"**3. Cloud Shell**\n", | |
": The cloud shell button invokes an interactive shell environment for either bash or PowerShell. The first time you invoke cloud shell you will also create persistent storage specifically for cloud shell. The cloud shell comes with linux tools like bash, sh, & dig as well as the Azure CLI. Cloud shell also has editors like VIM and emacs, and tools like git, make, and configuration tools like ansible & terraform, already installed. Language support for python, go, java, & PowerShell are also preinstalled. Azure Cloud Shell runs on Ubuntu with persistent storage.\n", | |
"\n", | |
"**4. Directories & Subscriptions**\n", | |
": This button will show the current Subscription and Active Directory (not covered) associated with your account. For these episodes you can think of a Subscription as your your billing account (For more information on Active Directories and Subscriptions, see the *glossary of Azure terms* link above). You use this dropdown to verify that you are using the right subscription.\n", | |
"\n", | |
"**5. IAM Username and Organization**\n", | |
": The menu bar on the console also lists your username and the current organization that you are logged into. IAM is short for Identity and Access Management. Identity is a mechanism to authenticate users (e.g. password) and Access is a mechanism for authorizing what kinds of services users have access to. In the creation of an IAM user, the administrator (overlord) of the account assigns a particular permission scope (in Azure this is known as roles) to control access to a particular set of services and also assign a password to authenticate user login. IAM is a key component in managing security on the cloud.\n" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"id": "a95358d0", | |
"metadata": {}, | |
"source": [ | |
"```{admonition} Exercise\n", | |
":class: attention\n", | |
"\n", | |
"* What is your IAM username? \n", | |
"* Why is IAM important?\n", | |
"* What are two ways you can find an Azure service on the console?\n", | |
"````" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"id": "1d9aa8b9", | |
"metadata": {}, | |
"source": [ | |
"## Overview of what we will do in this lesson\n", | |
"\n", | |
"We are now ready to move on with the rest of the Azure essentials lesson. Here is an overview of what we are \n", | |
"going to do. First we will create a Resource Group. Then we will \n", | |
"create a virtual machine (VM), a Storage Account, and a blob \n", | |
"storage contianer. After that we will create a blob and upload it to\n", | |
"the blob contianer.\n", | |
"" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"id": "66dfaa3a", | |
"metadata": {}, | |
"source": [] | |
} | |
], | |
"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.10" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 5 | |
} |