{"id":4930,"date":"2020-06-30T00:46:29","date_gmt":"2020-06-30T07:46:29","guid":{"rendered":"https:\/\/officedevblogs.wpengine.com\/?p=4930"},"modified":"2020-06-30T00:46:29","modified_gmt":"2020-06-30T07:46:29","slug":"office-365-cli-azure-cloud-shell","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/office-365-cli-azure-cloud-shell\/","title":{"rendered":"Office 365 CLI available in Azure Cloud Shell"},"content":{"rendered":"<p>We&#8217;re proud to announce, that as of today, Office 365 CLI is available by default in Azure Cloud Shell.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-4932 size-full\" src=\"https:\/\/officedevblogs.wpengine.com\/wp-content\/uploads\/2020\/06\/office-365-cli-azure-cloud-shell.png\" alt=\"Office 365 CLI in Azure Cloud Shell\" width=\"771\" height=\"486\" srcset=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2020\/06\/office-365-cli-azure-cloud-shell.png 771w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2020\/06\/office-365-cli-azure-cloud-shell-300x189.png 300w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2020\/06\/office-365-cli-azure-cloud-shell-768x484.png 768w\" sizes=\"(max-width: 771px) 100vw, 771px\" \/><\/p>\n<h2>Manage Microsoft 365 and SharePoint Framework projects on any platform<\/h2>\n<p><a href=\"https:\/\/aka.ms\/o365cli\">Office 365 CLI<\/a> is a cross-platform CLI that allows you to manage various configuration settings of Microsoft 365 and SharePoint Framework projects no matter which operating system or shell you use.<\/p>\n<p>While building solutions for Microsoft 365 expands beyond the Windows operating system, managing many of the platform settings is possible only through PowerShell on Windows. As more and more users work on non-Windows machines, it\u2019s inconvenient for them to have to use a Windows virtual machine to configure their tenants. With the Office 365 CLI, you can configure your tenant no matter which operating system you use. Additionally, using Office 365 CLI, you can manage your SharePoint Framework projects.<\/p>\n<h2>Azure Cloud Shell<\/h2>\n<p><a href=\"https:\/\/docs.microsoft.com\/azure\/cloud-shell\/overview\">Azure Cloud Shell<\/a> is an interactive, authenticated, browser-accessible shell for managing Azure resources. It provides the flexibility of choosing the shell experience that best suits the way you work, either Bash or PowerShell.<\/p>\n<h2>Office 365 CLI in Azure Cloud Shell<\/h2>\n<p>Recently, Office 365 CLI was added to the set of <a href=\"https:\/\/docs.microsoft.com\/azure\/cloud-shell\/features\">tools<\/a> available in Azure Cloud Shell. If you have access to the Azure Portal you can now start Office 365 CLI directly from the browser without having to install it or its dependencies yourself.<\/p>\n<p>To start using Office 365 CLI in Azure Cloud Shell, sign in to Microsoft 365, either using your managed identity, by executing:<\/p>\n<pre><code class=\"language-command\">o365 login --authType identity\n<\/code><\/pre>\n<p>or using the standard Office 365 CLI Azure AD app, by executing:<\/p>\n<pre><code class=\"language-command\">o365 login\n<\/code><\/pre>\n<p>Confirm that you&#8217;re signed in, by executing:<\/p>\n<pre><code class=\"language-command\">o365 status\n<\/code><\/pre>\n<p>After you signed in, you can start managing your tenant. For more information about supported commands and sample scripts, see the Office 365 CLI documentation at <a href=\"https:\/\/aka.ms\/o365cli\">aka.ms\/o365cli<\/a>.<\/p>\n<p>We hope that you find having Office 365 CLI available at your fingertips in Azure Cloud Shell helpful and we&#8217;d love to <a href=\"https:\/\/github.com\/pnp\/office365-cli\/discussions\">hear from you<\/a> if you have any feedback or ideas for improvement.<\/p>\n<p>We&#8217;d like to thank the Azure Cloud Shell team for great collaboration and making this possible.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;re proud to announce, that as of today, Office 365 CLI is available by default in Azure Cloud Shell.<\/p>\n","protected":false},"author":69079,"featured_media":25159,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[128,11],"tags":[53,140,19],"class_list":["post-4930","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-teams","category-office-add-ins","tag-office-365","tag-office-365-cli","tag-sharepoint-framework"],"acf":[],"blog_post_summary":"<p>We&#8217;re proud to announce, that as of today, Office 365 CLI is available by default in Azure Cloud Shell.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/4930","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/users\/69079"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/comments?post=4930"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/4930\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media\/25159"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media?parent=4930"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/categories?post=4930"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/tags?post=4930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}