在Debian

时间:2017-04-28 08:38:58

标签: azure azure-powershell

是否可以在Debian上将AzureAD模块安装到Powershell-6.0.0.alpha?

我收到的错误:

PS /home/user> Set-PSRepository -name PSGallery -InstallationPolicy Trusted
PS /home/user> Install-Module AzureAD
PackageManagement\Install-Package : Unable to load DLL  
'api-ms-win-core-sysinfo-l1-1-0.dll': 
The specified module could not be found.   
(Exception from HRESULT: 0x8007007E)
At /opt/microsoft/powershell/6.0.0-alpha.18/Modules/PowerShellGet/1.1.2.0/PSModule.psm1:1809 char:21
+ ...          $null = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (Microsoft.Power....InstallPackage
   :InstallPackage) [Install-Package], Exception
    + FullyQualifiedErrorId : System.DllNotFoundException,Microsoft.PowerShell.Commands.TestModuleManifestCommand,Microsoft.PowerShell.PackageManagement
  .Cmdlets.InstallPackage

它抱怨dll丢失了,如何修复它(在Linux中没有dll,不是吗?)。

powershell已经开始使用sudo superpowers。

1 个答案:

答案 0 :(得分:4)

不,从现在开始是不可能的。