Azure中的PowerShell别名
问题描述:
我看到很多回答有关Azure的问题当是,你必须执行这样的一系列命令:从Service Fabric Application vmImageSkuAzure中的PowerShell别名
azure vm image list-publishers westus
azure vm image list-offers westus MicrosoftWindowsServer
azure vm image list-skus westus MicrosoftWindowsServer WindowsServer
这只是一个随便举个例子出来的许多。
你怎么翻译一样,成作品命令语句?
我觉得我很想念我的我的环境中配置的一些步骤。 我刚刚开始了一个普通的powershell控制台,并正在那里工作。 我没有导入任何特定于控制台的azure,但在盒子上安装了Visual Studio 2017和最新的azure sdk。
答
这些命令不 Azure的PowerShell命令。正如Martin所说,要运行这些命令,您应该安装CLI 1.0。 我们可以使用Azure的PowerShell命令来获得这些信息:
蔚蓝的VM映像列表出版商westus
Get-AzureRmVMImagePublisher -Location westus
蔚蓝的VM映像列表报价westus MicrosoftWindowsServer
Get-AzureRmVMImageOffer -Location westus -PublisherName MicrosoftWindowsServer
蔚蓝的VM映像列表的SKU westus MicrosoftWindowsServer的WindowsServer
Get-AzureRmVMImageSku -Location westus -PublisherName MicrosoftWindowsServer -Offer WindowsServer
你的意思是,你不能在PowerShell中运行这些命令? –