gpt4 book ai didi

powershell - Azure PowerShell 别名

转载 作者:行者123 更新时间:2023-12-03 05:53:32 26 4
gpt4 key购买 nike

我看到了很多有关 Azure 问题的答案,其中答案是您必须执行如下一系列命令:

azure vm image list-publishers westus
azure vm image list-offers westus MicrosoftWindowsServer
azure vm image list-skus westus MicrosoftWindowsServer WindowsServer

来自 Service Fabric Application vmImageSku

这只是众多示例中的一个随机示例。

如何将这样的语句翻译成有效的命令?

我觉得我的环境配置中缺少某些步骤。我刚刚启动了一个普通的 powershell 控制台并正在其中工作。我尚未将任何特定于 azure 的内容导入控制台,但在盒子上安装了 Visual Studio 2017 和最新的 azure sdk。

最佳答案

这些命令不是Azure PowerShell 命令。正如 Martin 所说,要运行这些命令,您应该安装 CLI 1.0。我们可以使用 Azure PowerShell 命令来获取这些信息:

azure vm image list-publishers westus

获取 AzureRmVMImagePublisher -位置 westus

azure vm image list-offers westus MicrosoftWindowsServer

Get-AzureRmVMImageOffer -Location westus -PublisherName MicrosoftWindowsServer

azure vm image list-skus westus MicrosoftWindowsServer WindowsServer

Get-AzureRmVMImageSku -Location westus -PublisherName MicrosoftWindowsServer -Offer WindowsServer

关于powershell - Azure PowerShell 别名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44693630/

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