PS> Install-Module AzureAD
Installation of AzureAD module
PS> Install-Module AzureAD
Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its
InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install
the modules from 'PSGallery'?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): y
PackageManagement\Install-Package : Unable to load DLL 'api-ms-win-core-sysinfo-l1-1-0.dll': The specified module or one of its dependencies could not be found. (Exception from HRESULT: 0x8007007E) At /opt/microsoft/powershell/6.0.0-beta.9/Modules/PowerShellGet/1.5.0.0/PSModule.psm1:1877 char:21 + ... $null = PackageManagement\Install-Package <strong i="12">@PSBoundParameters</strong>
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Microsoft.Power....InstallPackage:InstallPackage) [Inst
all-Package], Exception
+ FullyQualifiedErrorId : System.DllNotFoundException,Microsoft.PowerShell.Commands.TestModuleMa
nifestCommand,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
# pwsh
PowerShell v6.0.0-beta.9
Copyright (C) Microsoft Corporation. All rights reserved.
> $PSVersionTable
Name Value
---- -----
PSVersion 6.0.0-beta.9
PSEdition Core
GitCommitId v6.0.0-beta.9
OS Linux 4.10.0-37-generic #41~16.04.1-Ubuntu SMP Fri Oct 6 22:42:59 UTC 2017
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Modul AzureAD tidak kompatibel dengan platform non-windows. Saya percaya ini masih menggunakan ADAL yang memiliki dependensi WinForms
. Menurut halaman proyek (https://docs.microsoft.com/en-us/powershell/module/Azuread/?view=azureadps-2.0) ini adalah OS yang didukung:
Windows 10 Windows 8.1 Pro Windows 8.1 Enterprise Windows 7 SP1 Windows Server 2016 TP5 Windows Server 2012 R2 Windows Server 2008 R2 SP1
Anda mungkin ingin meminta kompatibilitas Linux di Azure AD Uservoice: https://feedback.azure.com/forums/169401-azure-active-directory
Modul AzureAD lintas platform sedang dalam proses. Anda dapat menggunakan versi pratinjau (AzureAD.Standard.Preview) di Azure Cloud Shell.
Apakah kami memiliki versi pratinjau standar AzureAD untuk diuji pada PowerShell Core 6.1?
Bisakah PowerShell Core menjalankan modul standar AzureAD ini, jika PowerShell Core di-host di lingkungan Windows?
Hai, sepertinya ini masih tidak bisa di pwsh?
PS /home/> Install-module AzureADPreview
Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from 'PSGallery'?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): A
PackageManagement\Install-Package : Unable to load shared library 'api-ms-win-core-sysinfo-l1-1-0.dll' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libapi-ms-win-core-sysinfo-l1-1-0.dll: cannot open shared object file: No such file or directory At /opt/microsoft/powershell/6/Modules/PowerShellGet/PSModule.psm1:9491 char:21 + ... $null = PackageManagement\Install-Package <strong i="6">@PSBoundParameters</strong> + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
+ FullyQualifiedErrorId : System.DllNotFoundException,Microsoft.PowerShell.Commands.TestModuleManifestCommand,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Bukankah seharusnya masalah ini masih terbuka karena belum diperbaiki???
Modul ini tidak dimiliki atau dikelola oleh siapa pun dalam repo ini, dan pengembangannya tidak terkait dengan repo ini. Seperti yang disebutkan, versi pratinjau modul dapat digunakan sementara jika Anda menginginkannya, tetapi selain itu kami hanya dapat menunggu tim Azure merilis versi modul yang lebih lengkap. :slightly_smiling_face:
Saya juga memiliki kesalahan ini:
PS /home/khine> $PSVersionTable
Name Value
---- -----
PSVersion 6.2.3
PSEdition Core
GitCommitId 6.2.3
OS Linux 5.0.0-29-generic #31-Ubuntu SMP Thu Sep 12 13:05:32 UTC 2019
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
PS /home/khine> Install-module AzureADPreview
Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to
install the modules from 'PSGallery'?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): y
PackageManagement\Install-Package : Unable to load shared library 'api-ms-win-core-sysinfo-l1-1-0.dll' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libapi-ms-win-core-sysinfo-l1-1-0.dll: cannot open shared object file: No such file or directory At /snap/powershell/39/opt/powershell/Modules/PowerShellGet/PSModule.psm1:9508 char:21 + ... $null = PackageManagement\Install-Package <strong i="6">@PSBoundParameters</strong> + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Microsoft.PowerShel\u2026lets.InstallPackage:InstallPackage) [Install-Package], Exception
+ FullyQualifiedErrorId : System.DllNotFoundException,Microsoft.PowerShell.Commands.TestModuleManifestCommand,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
ada berita tentang ini?
Ini adalah tindak lanjut yang sangat buruk oleh Microsoft.
Ya ini juga rusak di macOS ... kesalahan yang sama seperti yang ditunjukkan di atas di Linux.
Masalah yang sama di sini
PS /Pengguna/stuartlupton> $PSVersionTable
Nilai Nama
---- -----
PSVersi 6.2.3
Inti Edisi PS
GitCommitId 6.2.3
OS Darwin 19.0.0 Kernel Darwin Versi 19.0.0: Sel 17 Sep 01:59:51 PDT 2019; root:xnu-6153.11.24 ~17/RELEASE_X86_64
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerialisasiVersi 1.1.0.1
WSManStackVersion 3.0
PS /Users/stuartlupton> Instal-Modul -Nama AzureAD
Repositori tidak tepercaya
Anda menginstal modul dari repositori yang tidak tepercaya. Jika Anda mempercayai repositori ini, ubah nilai InstallationPolicy-nya dengan menjalankan perintah
Set-PSRepositori cmdlet. Apakah Anda yakin ingin menginstal modul dari 'PSGallery'?
[Y] Ya [A] Ya untuk Semua [N] Tidak [L] Tidak untuk Semua [S] Tangguhkan [?] Bantuan (standarnya adalah "N"): A
PackageManagement\Install-Package : Tidak dapat memuat pustaka bersama 'api-ms-win-core-sysinfo-l1-1-0.dll' atau salah satu dependensinya. Untuk membantu mendiagnosis masalah pemuatan, pertimbangkan untuk menyetel variabel lingkungan DYLD_PRINT_LIBRARY: dlopen(libapi-ms-win-core-sysinfo-l1-1-0.dll, 1): image not found At /usr/local/microsoft/powershell /6/Modules/PowerShellGet/PSModule.psm1:9508 char:21 + ... $null = PackageManagement\Install-Package @PSBoundParameters
@dbsysteluk-stuartlupton Saya mencatat masalah ini #10326 beberapa hari yang lalu di repositori Azure PowerShell
Apakah ada perbaikan untuk ini? Saya juga punya masalah ini:
Instal-Modul -Nama AzureADPreview
Repositori tidak tepercaya
Anda menginstal modul dari repositori yang tidak tepercaya. Jika Anda mempercayai ini
repositori, ubah nilai InstallationPolicy-nya dengan menjalankan Set-PSRepository
cmdlet. Apakah Anda yakin ingin menginstal modul dari 'PSGallery'?
[Y] Ya [A] Ya untuk Semua [N] Tidak [L] Tidak Semua [S] Tangguhkan [?] Bantuan
(default adalah "N"):A
PackageManagement\Install-Package : Tidak dapat memuat pustaka bersama 'api-ms-win-core-sysinfo-l1-1-0.dll' atau salah satu dependensinya. Untuk membantu mendiagnosis masalah pemuatan, pertimbangkan untuk menyetel variabel lingkungan LD_DEBUG: libapi-ms-win-core-sysinfo-l1-1-0.dll: tidak dapat membuka file objek bersama: Tidak ada file atau direktori seperti itu
Di /snap/powershell/39/opt/powershell/Modules/PowerShellGet/PSModule.psm1:9508 char:21
Ada berita di sini? Saya menjalankannya di Mac saya dan masih mendapatkan kesalahan di bawah ini.
Tidak dapat memuat DLL 'api-ms-win-core-sysinfo-l1-1-0.dll': Modul yang ditentukan atau salah satu dependensinya tidak dapat ditemukan.
Saya tahu repo memiliki masalah 2.1k yang terbuka saat ini, tetapi saya juga mengalami masalah tersebut dan akan berterima kasih atas penyelesaiannya.
Ubuntu 19.10
PowerShell 7.0.0-preview.5
Instal-Modul AzureAd Repositori tidak tepercaya Anda menginstal modul dari repositori yang tidak tepercaya. Jika Anda mempercayai repositori ini, ubah nilai InstallationPolicy-nya dengan menjalankan cmdlet Set-PSRepository. Apakah kamu yakin kamu? ingin menginstal modul dari 'PSGallery'? [Y] Ya [A] Ya untuk Semua [N] Tidak [L] Tidak untuk Semua [S] Tangguhkan [?] Bantuan (standarnya adalah "N"): a Instal-Paket: /snap/powershell-preview/51/opt/powershell/Modules/PowerShellGet/PSModule.psm1 Baris |Line 9683 $installedPackages = PackageManagement\Install-Package <strong i="22">@PSBoundParameters</strong> Unable to load shared library 'api-ms-win-core-sysinfo-l1-1-0.dll' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libapi-ms-win-core-sysinfo-l1-1-0.dll: cannot open shared object file: No such file or directory
Saya mengalami masalah yang sama.
Bagi siapa pun yang mengalami masalah dengan modul Pratinjau, Anda dapat mengambilnya dari galeri paling mutakhir:
Register-PackageSource -Trusted -ProviderName 'PowerShellGet' -Name 'Posh Test Gallery' -Location https://www.poshtestgallery.com/api/v2/
Install-Module -Name AzureAD.Standard.Preview
Saya juga menghadapi masalah yang sama. Tolong selesaikan.
masalah yang sama (#11229)
masalah yang sama
Masalah yang sama.
Pada Kamis, 16 Januari 2020 pukul 19:22 su-panda [email protected] menulis:
masalah yang sama
—
Anda menerima ini karena Anda berkomentar.
Balas email ini secara langsung, lihat di GitHub
https://github.com/PowerShell/PowerShell/issues/5274?email_source=notifications&email_token=AA5XYJCIMPJE7NSMA7PDXTDQ6A7QRA5CNFSM4EBLTLZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTOR
atau berhenti berlangganan
https://github.com/notifications/unsubscribe-auth/AA5XYJFC4Y6DBX5LP7RTELLQ6A7QRANCNFSM4EBLTLZQ
.
Masalah yang sama, tetapi di Cloud Shell. Apakah ada cara untuk menginstal Modul Pratinjau AzureAD di Cloud Shell?
Modul Pratinjau AzureAD sudah diinstal di Cloud Shell.
Modul Pratinjau AzureAD sudah diinstal di Cloud Shell.
Saya tidak dapat menggunakan perintah seperti Get-AzureADPolicy di Cloud Shell. Itu tidak dapat menemukan cmdlet
Satu-satunya cmdlet terkait kebijakan di modul AzureAD.Standard.Preview adalah:
PS Azure:\> Get-Command -Name *policy* -Module AzureAD.Standard.Preview
CommandType Name Version Source
----------- ---- ------- ------
Cmdlet Add-AzureADMSLifecyclePolicyGroup 0.0.0.10 AzureAD.Standard.Preview
Cmdlet Get-AzureADMSGroupLifecyclePolicy 0.0.0.10 AzureAD.Standard.Preview
Cmdlet Get-AzureADMSLifecyclePolicyGroup 0.0.0.10 AzureAD.Standard.Preview
Cmdlet New-AzureADMSGroupLifecyclePolicy 0.0.0.10 AzureAD.Standard.Preview
Cmdlet Remove-AzureADMSGroupLifecyclePolicy 0.0.0.10 AzureAD.Standard.Preview
Cmdlet Remove-AzureADMSLifecyclePolicyGroup 0.0.0.10 AzureAD.Standard.Preview
Cmdlet Set-AzureADMSGroupLifecyclePolicy 0.0.0.10 AzureAD.Standard.Preview
Berikut adalah modul khusus yang ingin saya gunakan di Cloud Shell
Cmdlet Get-AzureADPolicy mendapatkan kebijakan di Azure Active Directory (AD).
Di linux (centos7) menginstal inti powershell dan modul AzureAD.Standard.Preview (dengan bantuan dari https://blogs.endjin.com/2019/05/how-to-use-the-azuread-module-in-powershell -inti/).
Register-PackageSource -Name PoshTestGallery -Location https://www.poshtestgallery.com/api/v2/ -ProviderName PowerShellGet
Install-Module -Name AzureAD.Standard.Preview -RequiredVersion 0.0.0.10
Import-Module -Name /root/.local/share/powershell/Modules/AzureAD.Standard.Preview/0.0.0.10/AzureAD.Standard.Preview.psm1
Ini berfungsi namun seperti yang disebutkan oleh orang lain, beberapa cmdlet hilang.
PS /home/*****> Get-AzureADMS*
Get-AzureADMSDeletedDirectoryObject
Get-AzureADMSGroup
Get-AzureADMSIdentityProvider
Get-AzureADMSDeletedGroup
Get-AzureADMSGroupLifecyclePolicy
Get-AzureADMSLifecyclePolicyGroup
Kami membutuhkan Get-AzureADMSTrustFrameworkPolicy
yang tidak ada
Komentar yang paling membantu
Saya mengalami masalah yang sama.