Azure Cloud Shell integration? #1554
-
Hi, I'm the engineering manager for Azure Cloud Shell (https://shell.azure.com) We've had a couple of queries about including office365-cli in the Cloud Shell image, which would make it available to Cloud Shell users by default. We're looking to deepen our Office 365 coverage in Cloud Shell so I've opened this discussion to see if there is interest. We have node.js in Cloud Shell and 'npm i @pnp/office365-cli' succeeds. (An end user can't install globally because they are not root.) I've run the CLI as far as 'login' so far. Roughly speaking, we'd be looking for someone familiar with office365 CLI to try things out in Cloud Shell first just by installing it locally, because you're more familiar with the tool than we are. If that looks promising we can look at including in the image. It would also be great to support the managed identity support in Cloud Shell. We can use that to avoid the user having to login again if they want to use Office365 using the same identity they used to connect to the Azure portal. This is how az cli avoid prompting in Cloud Shell. See https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/how-to-use-vm-token Let me know what you think! |
Beta Was this translation helpful? Give feedback.
Replies: 12 comments 40 replies
-
What a great news! We appreciate you reaching out and are thrilled about the idea of having the Office 365 CLI integrated in Azure Cloud Shell. We're all regular users of Azure Cloud Shell and can definitely help out verifying that everything is working as intended. We have two PRs open that aim to align the Office 365 CLI with the Azure CLI: support for managed identity (#1528) and simplifying storing credentials across the different operating systems (#1529) which we also need to support Azure Functions. How should we proceed? Do you have a list of scenarios that you'd like us to verify? |
Beta Was this translation helpful? Give feedback.
-
@edyoung |
Beta Was this translation helpful? Give feedback.
-
@edyoung, do you know if there is documentation, article or any piece of information on how to assign user-managed identity to the Azure Cloud Shell so I can test with both system managed identity and user-managed identity? Is it possible at all? :) |
Beta Was this translation helpful? Give feedback.
-
We have just released a preview version of the Office 365 CLI with support for managed identity and all the changes we've discussed here. You can test it by installing from |
Beta Was this translation helpful? Give feedback.
-
Great! I'd prefer to reference a stable rather than preview release when adding things to Cloud Shell image. Roughly when do you expect to ship a managed-identity-supporting stable build? |
Beta Was this translation helpful? Give feedback.
-
Hey guys, Good news! I did some testing from the shell and here are my results: User login - Tests while logged in using user name and password✔️ Login to the CLI - OK Device login - Tests while logged in using the device login flow✔️ Login to the CLI - OK User managed identity - Tests while logged in using managed identity✔️ Login to the CLI - OK Custom AAD application + Certificate - Tests while logged in using custom AAD application with certificate✔️ Login to the CLI - OK @edyoung, @waldekmastykarz the only issues I experienced are related to the MSI service itself and I do not know if you can influence there. When I am logged with identity and attempt to call SharePoint or Yammer APIs , I get Even with that, it looks quite positive. Please let me know if you have any questions. |
Beta Was this translation helpful? Give feedback.
-
Hey @edyoung, we have just released a new version of Office 365 CLI (v2.10) that's ready to be included in Azure Cloud Shell. Please let us know if there is anything that we can help with. |
Beta Was this translation helpful? Give feedback.
-
Hi, @waldekmastykarz @VelinGeorgiev I am Shaolong from cloud shell, working on the integrated the cloud shell with office 365 yammer. We are adding audience yammer into our code base. There's a question need to be explained: Is the yammer should be included in the Fairfax type or the ‘other’ type or both of them included? It looks to me that yammer could be in the ‘other’ type, since all of the Fairfax are usgov related. Or if the yammer has another usgov version? |
Beta Was this translation helpful? Give feedback.
-
We are proud to announce that Office 365 CLI is now part of the Azure Cloud Shell 🎉 Thank you to all who have contributed to the CLI to date and helped us to achieve this major milestone. |
Beta Was this translation helpful? Give feedback.
-
Hey @edyoung 👋🏻 We recently released v3 of the CLI under a new name, Are you able to arrange for the Cloud Shell image to be updated to include the new package going forwards? As always, we really appreciate your help 👍🏻 Announcement: Next version of Office 365 CLI will be v3 #1770 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
We are proud to announce that Office 365 CLI is now part of the Azure Cloud Shell 🎉
Thank you to all who have contributed to the CLI to date and helped us to achieve this major milestone.