gpt4 book ai didi

linux - Azure Powershell Linux

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:41:09 25 4
gpt4 key购买 nike

  • 除了 these 之外,是否还有更多适用于 Linux Azure Powershell 的 cmdlet ?
  • 是否有适用于 Linux 的 Azure Powershell 官方存储库?
  • 有没有办法让终端在启动时启动 powershell,而不是 bash?

今天我的 google-fu 很弱:(

最佳答案

你的问题已经很老了,但我还是会回答。希望您能通过电子邮件收到我的回复,其他将来寻求帮助的人会看到这一点,并在这个该死的网站上建立声誉,这样我就可以真正开始有效地使用它。

  • Are there any more cmdlets for Linux Azure Powershell apart from these?

我假设您因为您的头衔而专门寻找 Azure。 AzureRM.Netcore 已于大约 1 个月前发布。这支持部署到 Azure 所需的 90% 的功能。

https://www.powershellgallery.com/packages/AzureRM.Netcore/0.9.1

不幸的是,我发现一些较旧的 cmdlet 尚不受支持,因为它们位于名为 Azure 的较旧模块中,该模块尚未实现 .NET Core。有关详细信息,请参阅 my recent post

  • Is there an official repository for Azure Powershell for Linux?

您可以在官方 Powershell 存储库上找到所有讨论。它是跨平台的。此外,微软打算在昨天发布的.NET Core 2.0 之上构建 Powershell 6。所以 future 的开发很可能会大力支持Linux。这将是您最好的资源:https://github.com/Azure/azure-powershell

  • Is there a way for terminal to launch powershell on startup, not bash?

有。但我不建议这样做。这听起来不对。但我是一个自命不凡的 Linux 用户,对微软有偏见,所以请对我的观点持保留态度。您可以使用两种方法来完成此任务。

1) 大多数 Linux 发行版都为此提供了一个名为 chsh 的命令。尝试 chsh -s/usr/bin/powershell ,前提是这是您安装的 Powershell 二进制文件的位置。如果您不确定它在哪里,可以使用 which 来确定安装位置。 哪个 powershell。不要使用 sudo 执行此命令,因为这将尝试更改 root 用户而不是当前用户的 shell。

2) 或者,您可以在 Linux 上手动编辑文件 /etc/passwd。找到包含您的用户帐户的行,转到它的最后,然后将 /bin/bash 或您使用的任何 shell 替换为 /usr/bin/powershell,或 Powershell 二进制文件的正确位置。

关于linux - Azure Powershell Linux,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42666129/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com