{"id":10850,"date":"2019-09-19T21:40:15","date_gmt":"2019-09-20T04:40:15","guid":{"rendered":"https:\/\/riguy.com\/?page_id=10850"},"modified":"2019-09-20T00:14:47","modified_gmt":"2019-09-20T07:14:47","slug":"using-azure-cloud-shell","status":"publish","type":"page","link":"https:\/\/riguy.com\/?page_id=10850","title":{"rendered":"Setting Up Azure Cloud Shell"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Azure Cloud Shell is a command line or shell for executing commands. This can be useful when the standard web-based Azure Portal graphical user interface is not quite enough. The cool thing about Azure Cloud Shell is that all that is really needed in order to get started is an Azure account itself. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Simply click or type this into a web browser: <a rel=\"noreferrer noopener\" aria-label=\"https:\/\/shell.azure.com (opens in a new tab)\" href=\"https:\/\/shell.azure.com\" target=\"_blank\">https:\/\/shell.azure.com<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If it is not set up yet, you will see a welcome screen. You can choose either Linux Bash shell or the Windows PowerShell. I went with the latter.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell1.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1043\" height=\"555\" src=\"https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell1.png\" alt=\"Welcome to Azure Cloud Shell\" class=\"wp-image-10858\" srcset=\"https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell1.png 1043w, https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell1-300x160.png 300w, https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell1-768x409.png 768w, https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell1-1024x545.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is a testing environment, and there is no storage mounted at this time. I am trying to keep costs down, so I recently deleted a bunch of resource groups and a storage account. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell2.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"961\" height=\"530\" src=\"https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell2.png\" alt=\"Azure Cloud Shell Storage Warning\" class=\"wp-image-10857\" srcset=\"https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell2.png 961w, https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell2-300x165.png 300w, https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell2-768x424.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><figcaption><br><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><em> So, a new one needs to be created for testing, as instructed, below, picking the proper subscription and region for starters: <\/em><br><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell3.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"867\" height=\"522\" src=\"https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell3.png\" alt=\"Azure Cloud Shell Mounted Storage Needed\" class=\"wp-image-10856\" srcset=\"https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell3.png 867w, https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell3-300x181.png 300w, https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell3-768x462.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I am able to use an existing network Resource Group [RG], then for the new storage, I needed to enter a unique, new name for the storage account itself.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell4.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"821\" height=\"260\" src=\"https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell4.png\" alt=\"Azure Cloud Shell Storage Account\" class=\"wp-image-10855\" srcset=\"https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell4.png 821w, https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell4-300x95.png 300w, https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell4-768x243.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Of course I need to actually sign in so that Microsoft can do its billing and set up the of the environment in relation to this subscription:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell5.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"778\" height=\"375\" src=\"https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell5.png\" alt=\"Welcome to Azure Cloud Shell\" class=\"wp-image-10854\" srcset=\"https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell5.png 778w, https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell5-300x145.png 300w, https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell5-768x370.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/figure>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Initializing of the Azure Cloud Shell has begun. I spot fixed some of the image or garbled out some subscription characters to hide my account info[by design]. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell6.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"636\" height=\"438\" src=\"https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell6.png\" alt=\"Initializing Azure Cloud Shell \" class=\"wp-image-10866\" srcset=\"https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell6.png 636w, https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell6-300x207.png 300w\" sizes=\"auto, (max-width: 636px) 100vw, 636px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">At the new Cloud-based PS [PowerShell] command line, I typed &#8216;az&#8217; to get started.  Now here is the first &#8220;Welcome to Azure CLI&#8221; [command line interface], including the semi modern lingo greeting, &#8220;Welcome to the new cool Azure CLI&#8221;! <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Really, Microsoft should replace &#8220;cool&#8221; with &#8220;lit&#8221; in order to bring in a whole NEW generation, but I digress.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell7.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"695\" height=\"639\" src=\"https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell7.png\" alt=\"Welcome to Azure CLI\" class=\"wp-image-10852\" srcset=\"https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell7.png 695w, https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell7-300x276.png 300w\" sizes=\"auto, (max-width: 695px) 100vw, 695px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Some of the commands can be seen: <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell8.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"858\" height=\"862\" src=\"https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell8.png\" alt=\"Azure Cloud Shell Commands\" class=\"wp-image-10860\" srcset=\"https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell8.png 858w, https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell8-150x150.png 150w, https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell8-300x300.png 300w, https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell8-768x772.png 768w, https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell8-100x100.png 100w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"> Some more of the many Azure CLI commands can be seen:  <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell9.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"858\" height=\"862\" src=\"https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell9.png\" alt=\"Azure Cloud Shell CLI\" class=\"wp-image-10859\" srcset=\"https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell9.png 858w, https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell9-150x150.png 150w, https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell9-300x300.png 300w, https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell9-768x772.png 768w, https:\/\/riguy.com\/wp-content\/uploads\/2019\/09\/AZ-Shell9-100x100.png 100w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The Azure Cloud CLI is very powerful. Most of the work that can be done in the Azure Portal can be done at the command line. However, in 2019 most Windows Systems Administrators and others will mostly use the Portal for convenience and ease of use &#8211; the portal is more efficient too, in my opinion, given its highly organized menu structure and customization options. However, there are definitely times when the CLI is best. One example is when multiple resources or virtual machines need to be created. Rather than create them one at a time, a PowerShell or Bash script can be run to get multiple virtual machines up and running with one or two clicks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Azure Cloud Shell is a command line or shell for executing commands. This can be useful when the standard web-based Azure Portal graphical user interface is not quite enough. The cool thing about Azure Cloud Shell is that all that is really needed in order to get started is an Azure account itself. Simply click &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/riguy.com\/?page_id=10850\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Setting Up Azure Cloud Shell&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":5011,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_crdt_document":"","footnotes":""},"class_list":["post-10850","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/riguy.com\/index.php?rest_route=\/wp\/v2\/pages\/10850","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/riguy.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/riguy.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/riguy.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/riguy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10850"}],"version-history":[{"count":20,"href":"https:\/\/riguy.com\/index.php?rest_route=\/wp\/v2\/pages\/10850\/revisions"}],"predecessor-version":[{"id":10883,"href":"https:\/\/riguy.com\/index.php?rest_route=\/wp\/v2\/pages\/10850\/revisions\/10883"}],"up":[{"embeddable":true,"href":"https:\/\/riguy.com\/index.php?rest_route=\/wp\/v2\/pages\/5011"}],"wp:attachment":[{"href":"https:\/\/riguy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10850"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}