【发布时间】:2017-11-15 01:45:06
【问题描述】:
我刚刚更新到最新的 Azure powershell,但之后我无法再导入我的模块(很长一段时间都可以正常工作)。这是我得到的错误:
导入模块:来自程序集的“Microsoft.Azure.Commands.Automation.Cmdlet.GetAzureAutomationCertificate”类型中的方法“get_DataCollectionWarning” 'Microsoft.Azure.Commands.Automation, Version=4.3.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' 没有实现。 在行:1 字符:1 + 我 .\MyResources.psd1 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Import-Module], TypeLoadException + FullyQualifiedErrorId : System.TypeLoadException,Microsoft.PowerShell.Commands.ImportModuleCommand
有人可以建议这里可能出了什么问题。请注意,没有实现的方法似乎来自 Azure PS 包。
【问题讨论】:
-
您要导入的模块是什么?它是标准 Azure PowerShell 模块还是您自己的 PowerShell 模块?
标签: powershell azure azure-powershell