我正在运行以下Azure PowerShell cmdlet:
PS C:\> (Get-Module -Name Azure).Version Major Minor Build Revision ----- ----- ----- -------- 1 0 1 -1 PS C:\> $psversiontable Name Value ---- ----- PSVersion 3.0 WSManStackVersion 3.0 SerializationVersion 1.1.0.1 CLRVersion 4.0.30319.34209 BuildVersion 6.2.9200.16481 PSCompatibleVersions {1.0, 2.0, 3.0} PSRemotingProtocolVersion 2.2
我似乎无法得到任何详细的帮助的命令,只有裸露的骨骼参数。 例如:
PS C:\> Get-Help Get-AzureVNetConfig -detailed NAME Get-AzureVNetConfig SYNTAX Get-AzureVNetConfig [-ExportToFile <string>] [-Profile <AzureSMProfile>] [<CommonParameters>] PARAMETERS -ExportToFile <string> -Profile <AzureSMProfile> <CommonParameters> This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216). ALIASES None REMARKS None
是否正常,没有例子的详细的帮助,因为它是其他的PowerShell模块常见的? 它发生在我不止一台机器上。
在联机文档中 ,“获取帮助”部分没有提到任何限制。
我试过Update-Help但没有运气。
谢谢。
更新:我已升级到最新版本( 1.0.2),但仍然是相同的行为。 奇怪的是,通过查看这个页面上的一个帮助示例,我的机器上的相同的命令“New-AzureVMConfig”不那么详细,并且与在那里报告的描述不同。 例如,在该页面中详细描述的参数
-InstanceSize <String>,在“我的”版本中报告他仅有以下信息:-InstanceSize <string> Represents the size of the machine. Required? true Position? 1 Accept pipeline input? true (ByPropertyName) Parameter set name (All) Aliases None Dynamic? false我明白,这可能是由于不同的azure色模块版本,但我似乎从来没有得到所有的细节。
其他人是否也得到了同样的命令的例子3中的[singhkay]所报道的细节水平?
不幸的是,Azure cmdlet在文档上确实很轻。 也就是说,写这个的最新版本是1.0.2,所以你应该更新到最新的帮助。 Azure不支持更新帮助,您可以通过检查HelpInfoUri值(空)来validation这一点:
get-module azure | Select HelpInfoUri
当我从我的笔记本电脑运行完全相同的命令时,我没有这个问题,所以我认为您需要安装最新的azure powershell cmdlet(编写本文时为2.8),地址为https://azure.microsoft.com/zh-cn/ -us / downloads / (查找PowerShell选项)。 所有的cmdlet帮助都在MSDN上