{"id":4921,"date":"2019-08-02T16:18:37","date_gmt":"2019-08-02T23:18:37","guid":{"rendered":"http:\/\/devblogs.microsoft.com\/commandline\/?p=4921"},"modified":"2019-08-02T16:18:37","modified_gmt":"2019-08-02T23:18:37","slug":"the-azure-cloud-shell-connector-in-windows-terminal","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/commandline\/the-azure-cloud-shell-connector-in-windows-terminal\/","title":{"rendered":"The Azure Cloud Shell Connector in Windows Terminal"},"content":{"rendered":"<p>The Windows Terminal can now connect you to the <a href=\"https:\/\/azure.microsoft.com\/en-us\/features\/cloud-shell\/\">Azure Cloud Shell<\/a>!<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2019\/07\/azureCloudShell.png\" alt=\"\" width=\"867\" height=\"489\" class=\"aligncenter size-full wp-image-4922\" srcset=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2019\/07\/azureCloudShell.png 867w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2019\/07\/azureCloudShell-300x169.png 300w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2019\/07\/azureCloudShell-768x433.png 768w\" sizes=\"(max-width: 867px) 100vw, 867px\" \/><\/p>\n<p>We have a new default profile &#8211; the Azure Cloud Shell, which will allow you to access your Azure directories\/tenants through the Windows Terminal app itself.<\/p>\n<h2>If you already have Windows Terminal installed<\/h2>\n<p>Your settings will not automatically update with the new default profile (since the file does not regenerate every time you open up Windows Terminal), so here&#8217;s how you can manually add it in.<\/p>\n<ol>\n<li>Start Windows Terminal<\/li>\n<li>Open up settings (using the dropdown)<\/li>\n<li>\n<p>Add this profile to your list of profiles:<\/p>\n<pre><code>    {\"acrylicOpacity\" : 0.6,\n    \"closeOnExit\" : false,\n    \"colorScheme\" : \"Vintage\",\n    \"commandline\" : \"Azure\",\n    \"connectionType\" : \"{d9fcfdfa-a479-412c-83b7-c5640e61cd62}\",\n    \"cursorColor\" : \"#FFFFFF\",\n    \"cursorShape\" : \"bar\",\n    \"fontFace\" : \"Consolas\",\n    \"fontSize\" : 10,\n    \"guid\" : \"{b453ae62-4e3d-5e58-b989-0a998ec441b8}\",\n    \"historySize\" : 9001,\n    \"icon\" : \"ms-appx:\/\/\/ProfileIcons\/{b453ae62-4e3d-5e58-b989-0a998ec441b8}.png\",\n    \"name\" : \"Azure Cloud Shell\",\n    \"padding\" : \"0, 0, 0, 0\",\n    \"snapOnInput\" : true,\n    \"startingDirectory\" : \"%USERPROFILE%\",\n    \"useAcrylic\" : true}\n<\/code><\/pre>\n<\/li>\n<\/ol>\n<p>Once you&#8217;ve done this, you will see a new tab option for the Azure Cloud Shell.<\/p>\n<h2>How to use the connector<\/h2>\n<ol>\n<li>Open up the &#8220;Azure Cloud Shell&#8221; tab.<\/li>\n<li>You will be prompted to go to &#8220;microsoft.com\/devicelogin&#8221; and enter the code displayed.<\/li>\n<li>Once you enter the code in your browser, you will need to login with your account &#8211; make sure you log in with an account that has an active Azure directory\/tenant.<\/li>\n<li>Switch back to Terminal and within a few seconds you will see an &#8220;Authenticated&#8221; message.<\/li>\n<li><em>Some cases only<\/em>: if you have multiple tenants in your account, you will be prompted to choose one of them. Simply enter the tenant number of the one you wish to connect to.<\/li>\n<li>You will then be asked if you want to save these connection settings. Saving your connection settings will allow you to login without going through steps 1-5 in the future.<\/li>\n<li>The app will then start to establish a connection with the cloud shell (this could take a while, just be patient!)<\/li>\n<li>You are now connected to you Azure Cloud Shell!<\/li>\n<\/ol>\n<p>Here&#8217;s what the full login output looks like: (I hit &#8216;0&#8217; for the tenant number and &#8216;y&#8217; for the choice on saving connection settings).<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2019\/07\/azureDemo.png\" alt=\"\" width=\"1155\" height=\"711\" class=\"aligncenter size-full wp-image-4925\" srcset=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2019\/07\/azureDemo.png 1155w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2019\/07\/azureDemo-300x185.png 300w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2019\/07\/azureDemo-768x473.png 768w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2019\/07\/azureDemo-1024x630.png 1024w\" sizes=\"(max-width: 1155px) 100vw, 1155px\" \/><\/p>\n<p>Now that I have saved my connection settings, here&#8217;s what the login process looks like the next time (I hit &#8216;0&#8217; to access my saved connection settings).<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2019\/07\/savedDemo.png\" alt=\"\" width=\"868\" height=\"491\" class=\"aligncenter size-full wp-image-4926\" srcset=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2019\/07\/savedDemo.png 868w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2019\/07\/savedDemo-300x170.png 300w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2019\/07\/savedDemo-768x434.png 768w\" sizes=\"(max-width: 868px) 100vw, 868px\" \/><\/p>\n<p>It&#8217;s also possible to sign in with a different account\/tenant by hitting &#8216;n&#8217; or removing the saved connections by hitting &#8216;r&#8217;. These settings will persist across sessions, so even if you start up the Terminal a few days later you will still be able to log in with your saved connection settings without needing to open up a browser.<\/p>\n<p>And past that, its all you! Hope you enjoy being able to access your Azure assets through the Windows Terminal. As always, please report any bugs\/issues to our <a href=\"https:\/\/github.com\/microsoft\/terminal\">Github repository<\/a>.<\/p>\n<p><a href=\"http:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2019\/07\/signatures.png\"><img decoding=\"async\" src=\"http:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2019\/07\/signatures.png\" alt=\"\" width=\"1952\" height=\"259\" class=\"alignnone size-full wp-image-4938\" srcset=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2019\/07\/signatures.png 1952w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2019\/07\/signatures-300x40.png 300w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2019\/07\/signatures-768x102.png 768w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2019\/07\/signatures-1024x136.png 1024w\" sizes=\"(max-width: 1952px) 100vw, 1952px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Windows Terminal can now connect you to the Azure Cloud Shell! We have a new default profile &#8211; the Azure Cloud Shell, which will allow you to access your Azure directories\/tenants through the Windows Terminal app itself. If you already have Windows Terminal installed Your settings will not automatically update with the new default [&hellip;]<\/p>\n","protected":false},"author":6340,"featured_media":4949,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[10,1,2,3,4,5,6,8,9,782],"tags":[27,29,31,1002,59,69,70,72],"class_list":["post-4921","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cmd","category-commandline","category-command-line","category-linux-tools","category-ms-dos","category-windows-10","category-windows-console","category-windows-store","category-bash-on-ubuntu-on-windows","category-windows-terminal","tag-cmd","tag-command-line","tag-console","tag-release","tag-terminal","tag-windows","tag-windows-10","tag-wsl"],"acf":[],"blog_post_summary":"<p>The Windows Terminal can now connect you to the Azure Cloud Shell! We have a new default profile &#8211; the Azure Cloud Shell, which will allow you to access your Azure directories\/tenants through the Windows Terminal app itself. If you already have Windows Terminal installed Your settings will not automatically update with the new default [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/posts\/4921","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/users\/6340"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/comments?post=4921"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/posts\/4921\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/media\/4949"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/media?parent=4921"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/categories?post=4921"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/tags?post=4921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}