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

Commit

Permalink
restructed azure based on feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jhicks committed Mar 4, 2022
1 parent 7cef973 commit d42e7bb
Show file tree
Hide file tree
Showing 7 changed files with 114 additions and 177 deletions.
26 changes: 20 additions & 6 deletions content/Azure/01_intro_to_cloud_console.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
},
{
"cell_type": "markdown",
"id": "43cd9544",
"id": "842ad945",
"metadata": {},
"source": [
"## Everything Else\n",
Expand Down Expand Up @@ -162,7 +162,7 @@
},
{
"cell_type": "markdown",
"id": "a06f390f",
"id": "ebc30bae",
"metadata": {},
"source": [
"## Open a Cloud Shell\n",
Expand All @@ -172,7 +172,7 @@
"To use the Cloud Shell:\n",
" * Open up a Cloud Shell by clicking on the **Cloud Shell** icon in the right side of the top blue bar (number 3 above).\n",
" * The first time you open cloud shell you will be prompted for the following:\n",
"![welsome-to-cloud-shell-bashl](images/welsome-to-cloud-shell-bash.png)\n",
"![welsome-to-cloud-shell-bashl](images/welcome-to-cloud-shell-bash.png)\n",
" * Choose *bash* to continue.\n",
" * Then it will ask you to create a storage account for persistant storage for your cloud shell experience.\n",
"![welcome-to-cloud-shell-storage](images/welcome-to-cloud-shell-storage.png)\n",
Expand Down Expand Up @@ -210,7 +210,7 @@
},
{
"cell_type": "markdown",
"id": "c58c867b",
"id": "1d7f2ca7",
"metadata": {},
"source": [
"This prompt is asking you to create a .ssh directory in your home directory and generate ssh public/private keys named id_rsa.pub/id_rsa (default) respectively.\n",
Expand All @@ -227,8 +227,8 @@
"\n",
"After successfully retyping the passphrase the key generation process will continue showing a similar message as follows (the fingerprint and art will look different):\n",
"```\n",
"Your identification has been saved in /home/learner/.ssh/id_rsa.\n",
"Your public key has been saved in /home/learner/.ssh/id_rsa.pub.\n",
"Your identification has been saved in /home/<username>/.ssh/id_rsa.\n",
"Your public key has been saved in /home/<username>/.ssh/id_rsa.pub.\n",
"The key fingerprint is:\n",
"SHA256:D9yj1nZEUigahirvjkIFoCP7RfjDu67Ku88M7nHQftI learner@cs-748001990186-default-boost-r9phq\n",
"The key's randomart image is:\n",
Expand All @@ -249,6 +249,20 @@
"create proces you will be asked to Cut & Paste the public key into a form. "
]
},
{
"cell_type": "markdown",
"id": "8bb7ae75",
"metadata": {},
"source": [
"## Overview of what we will create\n",
"\n",
"We are now ready to move on with the rest of the Azure essentials lessons. Here is an overview of what we are \n",
"going to do. First we will create a Virtual Machine (VM) and in doing so create a Resource Group. Then we will \n",
"create a Storage Account and in that a blob storage container. After that we will create a blob and upload it to\n",
"the blob contaioner.\n",
"![Azure-essentails-outline](images/azure-essentails-outline.png)"
]
},
{
"cell_type": "markdown",
"id": "779c8715",
Expand Down
29 changes: 10 additions & 19 deletions content/Azure/02_intro_to_compute.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -47,26 +47,17 @@
},
{
"cell_type": "markdown",
"id": "0ef69f07",
"id": "a4dd13ae",
"metadata": {},
"source": [
"Before we begin this lesson/episode and create a Virtual Machine (VM), we need to create a ssh \n",
"key so that we can securely login to the VM we are about to create. We need use a ssh public \n",
"key when we create the VM.\n",
"\n",
"**Note:** Step 1. below is not required if you have already created a ssh key in the \n",
"[Intro to Cloud Console](02_intro_to_compute.ipynb) lesson. If you have already \n",
"created a key go directly to step 2.\n",
"Before we begin this lesson, we need to create a *ssh key pair* so that we can securely login to the Virtual Machone \n",
"(VM) we are about to create. We will need a ssh public key when we create the VM.\n",
"\n",
"**Step 1.**\n",
"\n",
"If you have not used the cloud shell to connect to a *VM Instance* before, you will need to \n",
"create a new *ssh key*. The VM will use this key to allow you to access the *VM instance* \n",
"in a secure manner. \n",
"\n",
"Open up a Cloud Shell by clicking on the Cloud Shell icon in the right side of the top \n",
"blue bar (the icon looks like box with a greater than sign followed by an underscore) as \n",
"described in the [Intro to Cloud Console](01_intro_to_cloud_console.ipynb) lesson.\n",
"The Cloud Shell should already be open from the previous lesson [Intro to Cloud Console](01_intro_to_cloud_console.ipynb).\n",
"If not, Open a Cloud Shell by clicking on the Cloud Shell icon in the right side of the top \n",
"blue bar (the icon looks like box with a greater than sign followed by an underscore).\n",
"\n",
"At the $ prompt in the Cloud Shell, enter ssh-keygen and follow the prompts.\n"
]
Expand All @@ -85,7 +76,7 @@
},
{
"cell_type": "markdown",
"id": "164cdb8c",
"id": "0950e691",
"metadata": {},
"source": [
"This prompt is asking you to create a .ssh directory in your home directory and generate ssh \n",
Expand All @@ -103,8 +94,8 @@
"After successfully retyping the passphrase the key generation process will continue showing a \n",
"similar message as follows (the fingerprint and art will look different):\n",
"````\n",
"Your identification has been saved in /home/learner/.ssh/id_rsa.\n",
"Your public key has been saved in /home/learner/.ssh/id_rsa.pub.\n",
"Your identification has been saved in /home/<username>/.ssh/id_rsa.\n",
"Your public key has been saved in /home/<username>/.ssh/id_rsa.pub.\n",
"The key fingerprint is:\n",
"SHA256:D9yj1nZEUigahirvjkIFoCP7RfjDu67Ku88M7nHQftI learner@cs-748001990186-default-boost-r9phq\n",
"The key's randomart image is:\n",
Expand Down Expand Up @@ -142,7 +133,7 @@
"metadata": {},
"outputs": [],
"source": [
"cat /home/learner/.ssh/id_rsa.pub"
"cat /home/<user-account>/.ssh/id_rsa.pub"
]
},
{
Expand Down
15 changes: 9 additions & 6 deletions content/Azure/03_intro_to_cloud_storage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
},
{
"cell_type": "markdown",
"id": "af639990",
"id": "06c38751",
"metadata": {},
"source": [
"## Create Resource Group (Note sure if this is needed)\n",
Expand All @@ -76,6 +76,7 @@
"* Navigate to Resource Groups\n",
"* Click \"+ create\" in the upper left \n",
"* Select a name for your Resource Group\n",
" * Use the Resource Group we create earlier during the VM creation process\n",
"* Leave the rest as default\n",
"* Click Review & Create\n",
"* After passing validation, click create\n"
Expand Down Expand Up @@ -110,19 +111,21 @@
},
{
"cell_type": "markdown",
"id": "4860da70",
"id": "4ac4e95a",
"metadata": {
"tags": []
},
"source": [
"### Allocate Azure Cloud Storage\n",
"## Allocate Azure Cloud blob Storage\n",
"\n",
"To create a blob storage container in the Azure portal, follow these steps:\n",
"\n",
"* Navigate to your new storage account in the Azure portal.\n",
"* In the left menu for the storage account, scroll to the Data storage section, then select containers.\n",
"* Select the + Container button.\n",
"* Type a name for your new container.\n",
"* In the left menu of the storage account, scroll to the Data storage section, then select containers.\n",
"* Select the + Container button to create a new blob storage container.\n",
"* Over on the right side\n",
" * Type a name for your new container.\n",
" * Under the *Public access level* pulldown menu select *Blob (annonymous read access for blobs only)*\n",
"* Select OK to create the container.\n",
"\n",
"![vm-create-container](images/04_azure_storage_create_container.png)\n"
Expand Down
32 changes: 21 additions & 11 deletions content/Azure/04_intro_to_cli.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -166,17 +166,21 @@
]
},
{
"cell_type": "markdown",
"id": "a90996d2",
"cell_type": "code",
"execution_count": null,
"id": "12c48d46",
"metadata": {},
"outputs": [],
"source": [
"# date"
]
},
{
"cell_type": "markdown",
"id": "20a5bdaa",
"cell_type": "code",
"execution_count": null,
"id": "9bbeed89",
"metadata": {},
"outputs": [],
"source": [
"# echo \"Date: $(date)\""
]
Expand Down Expand Up @@ -290,15 +294,21 @@
],
"metadata": {
"kernelspec": {
"display_name": "Bash",
"language": "bash",
"name": "bash"
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": "shell",
"file_extension": ".sh",
"mimetype": "text/x-sh",
"name": "bash"
"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,
Expand Down
38 changes: 14 additions & 24 deletions content/Azure/05_intro_to_cloud_storage_cli.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@
"source": [
"RG=\"demo_rg\"\n",
"LOCATION=\"eastus\"\n",
"BLOB_CON=\"demo_blob_cont\"\n",
"STGE_ACCT=\"demo_stor_ac\"\n",
"CTR=\"demo_stge_ctr\""
"STGE_ACCT=\"demostorac<username>\"\n",
"BLOB_CONT=\"demo-blob-cont\""
]
},
{
Expand Down Expand Up @@ -83,18 +82,9 @@
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"ename": "SyntaxError",
"evalue": "invalid syntax (838669738.py, line 1)",
"output_type": "error",
"traceback": [
"\u001b[0;36m File \u001b[0;32m\"/var/folders/ty/h84mzh251vdbfwf3zsph_xrh0000gq/T/ipykernel_80687/838669738.py\"\u001b[0;36m, line \u001b[0;32m1\u001b[0m\n\u001b[0;31m az storage account create --name $STGE_ACCT --resource-group $RG --location $LOCATION --sku Standard_ZRS --encryption-services blob\u001b[0m\n\u001b[0m ^\u001b[0m\n\u001b[0;31mSyntaxError\u001b[0m\u001b[0;31m:\u001b[0m invalid syntax\n"
]
}
],
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"az storage account create --name $STGE_ACCT --resource-group $RG --location $LOCATION --sku Standard_ZRS --encryption-services blob"
]
Expand Down Expand Up @@ -133,7 +123,7 @@
"metadata": {},
"outputs": [],
"source": [
"az storage container create --account-name $STGE_ACCT --name $CTR --auth-mode login"
"az storage container create --account-name $STGE_ACCT --name $BLOB_CONT --auth-mode login"
]
},
{
Expand All @@ -156,7 +146,7 @@
"metadata": {},
"outputs": [],
"source": [
"echo \"Demo text\" > demo_file"
"echo \"Demo text\" > demo_file.txt"
]
},
{
Expand All @@ -172,7 +162,7 @@
"metadata": {},
"outputs": [],
"source": [
"az storage blob upload --account-name $STGE_ACCT --container-name $CTR --name demo_file --file demo_file --auth-mode login"
"az storage blob upload --account-name $STGE_ACCT --container-name $BLOB_CONT --name demo_file_upload.txt --file demo_file.txt --auth-mode login"
]
},
{
Expand All @@ -188,7 +178,7 @@
"metadata": {},
"outputs": [],
"source": [
"az storage blob list --account-name $STGE_ACCT --container-name $CTR --output table --auth-mode login"
"az storage blob list --account-name $STGE_ACCT --container-name $BLOB_CONT --output table --auth-mode login"
]
},
{
Expand All @@ -204,7 +194,7 @@
"metadata": {},
"outputs": [],
"source": [
"az storage blob download --account-name $STGE_ACCT --container-name $CTR --name demo_file --file demo_file_download file --auth-mode login"
"az storage blob download --account-name $STGE_ACCT --container-name $BLOB_CONT --name demo_file_download.txt --file demo_file_upload.txt --auth-mode login"
]
},
{
Expand All @@ -220,7 +210,7 @@
"metadata": {},
"outputs": [],
"source": [
"ls demo_file_download"
"ls demo_file_download.txt"
]
},
{
Expand All @@ -236,7 +226,7 @@
"metadata": {},
"outputs": [],
"source": [
"diff demo_file demo_file_download"
"diff demo_file.txt demo_file_download.txt"
]
},
{
Expand All @@ -262,7 +252,7 @@
"metadata": {},
"outputs": [],
"source": [
"az storage blob delete --account-name $STGE_ACCT --container-name $CTR --name demo_file --auth-mode login"
"az storage blob delete --account-name $STGE_ACCT --container-name $BLOB_CONT --name demo_file --auth-mode login"
]
},
{
Expand All @@ -278,7 +268,7 @@
"metadata": {},
"outputs": [],
"source": [
"az storage blob list --account-name $STGE_ACCT --container-name $CTR --output table --auth-mode login"
"az storage blob list --account-name $STGE_ACCT --container-name $BLOB_CONT --output table --auth-mode login"
]
},
{
Expand Down
Loading

0 comments on commit d42e7bb

Please sign in to comment.