azure 70-533_实验-AZ SHELL在命令行中使用Azure Cloud Shell

azure 70-533_实验-AZ SHELL在命令行中使用Azure Cloud Shell

azure 70-533

I've blogged before about the Azure Cloud Shell. It's super cool and you can get your own easily in any browse by hitting https://shell.azure.com. You can have either bash or powershell, and you get a shared "cloud drive" that is persisted between sessions.

我之前已经写过关于Azure Cloud Shell的博客。 它非常酷,您可以通过点击https://shell.azure.com在任何浏览中轻松获得自己的内容。 您可以使用bash或powershell,并获得一个在会话之间持久存在的共享“云驱动器”。

If you have Visual Studio Code you can get an Azure Cloud Shell integrated within VSCode by just installing Visual Studio Code and adding the Azure Account Extension.

如果您具有Visual Studio Code,则只需安装Visual Studio Code并添加Azure帐户扩展,就可以在VSCode中集成一个Azure Cloud Shell

I recently got a build of the new open source Windows Terminal on my machine and I set up some profiles with tabs for DOS, PowerShell, VS2019, Ubuntu but something was missing. Why can't I get my Azure Cloud Shell?

我最近在我的计算机上构建了新的开源Windows终端,并使用DOS,PowerShell,VS2019,Ubuntu的选项卡设置了一些配置文件,但缺少一些配置文件。 为什么我无法获得Azure Cloud Shell?

Sure, I can fire up a VM and ssh into it. But Azure Cloud Shell spins up a free container with a persistent cloud drive AND has a bunch of developer tools like python, node, dotnet, and go already installed. I'd love to use it! But it's not a VM and the container isn't exposed with SSH. Instead, we'll want to spin the Azure Cloud Shell up the same way the https://shell.azure.com site does, with web calls and web sockets. So...why not do it?

当然,我可以启动VM并SSH到其中。 但是,Azure Cloud Shell启动了具有永久性云驱动器的免费容器,并拥有许多开发人员工具,例如python,node,dotnet,并且已经安装了go。 我很想使用它! 但这不是VM,并且容器未通过SSH公开。 相反,我们将希望通过Web调用和Web套接字以与https://shell.azure.com网站相同的方式启动Azure Cloud Shell。 那么...为什么不呢?

azure 70-533_实验-AZ SHELL在命令行中使用Azure Cloud Shell

I thought I was pretty clever when I had this idea so I started a C# implementation myself. Then I talked to Anders Liu from work about how to do it right, and over the weekend he beat me to it with his own VERY nice and clean implementation in Go that he put on his github at https://github.com/yangl900/azshell. We shared this on an internal alias and found out that Noel Bundick had the same great idea and put it in his Az CLI extensions pack (which has a ton of other cool stuff you should see). Anders' is standalone and Noel's is an Az CLI extension.

当我有了这个主意时,我以为自己很聪明,所以我自己开始了C#实现。 然后,我与工作中的刘德华(Anders Liu)讨论了如何正确地做,并且在周末,他在Go中用自己非常非常干净的实现击败了我,并将其放在https://github.com/yangl900的github上/ azshell 。 我们在一个内部别名上共享了它,发现Noel Bundick有着相同的好主意,并将其放在他的Az CLI扩展包中(其中还有很多其他不错的东西)。 Anders是独立的,而Noel是Az CLI的扩展。

Either way, we all together think this idea has merit and maybe it should be an official thing! What do you think? Regardless maybe it doesn't need to be since you can try it today with these open source options.

无论哪种方式,我们大家都认为这个想法很有价值,也许应该是官方的事情! 你怎么看? 不管它是不是必需的,因为您今天可以使用这些开源选项进行尝试。

Just put "azshell.exe" in your PATH and make sure you have the latest Azure CLI installed and you're logged in.

只需在您的PATH中放入“ azshell.exe ”,并确保您已安装最新的Azure CLI并已登录。

By the way, you can also get a Cloud Shell inside the Portal. In fact there's a button for it at the top that looks like >_ Personally I think with the addition of "az shell" (or in this case, azshell.exe) from the command line) it completes the circle in a really cool way.

顺便说一句,您还可以在门户网站内获得一个Cloud Shell。 实际上,在顶部有一个按钮,它看起来像> _,我个人认为,通过在命令行中添加“ az shell”(或本例中的azshell.exe),可以非常酷地完成圆圈。

azure 70-533_实验-AZ SHELL在命令行中使用Azure Cloud Shell

Let me know what you think in the comments!

让我知道您在评论中的想法!



Sponsor: Manage GitHub Pull Requests right from the IDE with the latest JetBrains Rider. An integrated performance profiler on Windows comes to the rescue as well.

赞助商:使用最新的JetBrains Rider从IDE直接管理GitHub Pull Requests。 Windows上的集成性能分析器也可以解决。

关于斯科特 (About Scott)

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

斯科特·汉塞尔曼(Scott Hanselman)是前教授,前金融首席架构师,现在是演讲者,顾问,父亲,糖尿病患者和Microsoft员工。 他是一位失败的单口相声漫画家,一个玉米种植者和一本书的作者。

azure 70-533_实验-AZ SHELL在命令行中使用Azure Cloud Shell
azure 70-533_实验-AZ SHELL在命令行中使用Azure Cloud Shell
azure 70-533_实验-AZ SHELL在命令行中使用Azure Cloud Shell
About   关于 Newsletter 时事通讯
Hosting By 主持人
azure 70-533_实验-AZ SHELL在命令行中使用Azure Cloud Shell

翻译自: https://www.hanselman.com/blog/an-experiment-the-azure-cloud-shell-at-the-command-line-with-az-shell

azure 70-533