question

MohammedAlhajji-9542 avatar image
0 Votes"
MohammedAlhajji-9542 asked MikeDeaner-0225 published

Microsoft powershell with ubuntu

Hello team,

I'm trying to use Microsoft Graph to create an online meeting using APIs integration. After I created Microsoft Azure account and App with online meeting permissions. I'm using " 1. pwsh
2. Install-Module -Name MicrosoftTeams -Force -AllowClobber
3. Import-Module MicrosoftTeams
4. Connect-MicrosoftTeams
5. New-CsApplicationAccessPolicy -Identity Test-policy -AppIds "{<!-- -->{APPID}}" -Description "description here"

After last command, I get this error "pwsh: symbol lookup error: /opt/microsoft/powershell/7/libmi.so: undefined symbol: SSL_library_init". How can I fix this error?

PowerShell version --> 7.2.2
Ubuntu version --> 18.04.

Best Regards

microsoft-graph-security
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

the problem with the undefined symbol: SSL_library_init error is that the SSL libraries appear to be linked to the wrong version of OpenSSL

eg, PowerShell seems to be linked with OpenSSL 1.0.0 - however - the PowerShell library directory, symlinks to the OpenSSL 1.1 libraries

the fix is simple enough, first rename the old symlinks

UNIX:/opt/microsoft/powershell/7 # mv libssl.so.1.0.0 libssl.so.1.0.0.BROKE
UNIX:/opt/microsoft/powershell/7 # mv libcrypto.so.1.0.0 libcrypto.so.1.0.0.BROKE

now symlink to the OpenSSL 1.0.0 libraries

UNIX:/opt/microsoft/powershell/7 # ln -s /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
UNIX:/opt/microsoft/powershell/7 # ln -s /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0


so that you end up with something like this

UNIX:/opt/microsoft/powershell/7 # dir |fgrep .so.1
lrwxrwxrwx 1 root root 44 Feb 8 19:07 libcrypto.so.1.0.0 -> /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
lrwxrwxrwx 1 root root 42 Dec 16 15:28 libcrypto.so.1.0.0.BROKE -> /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
lrwxrwxrwx 1 root root 41 Feb 8 19:05 libssl.so.1.0.0 -> /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
lrwxrwxrwx 1 root root 39 Dec 16 15:28 libssl.so.1.0.0.BROKE -> /usr/lib/x86_64-linux-gnu/libssl.so.1.1

i've upgraded PowerShell at least three times and this issue persists ... so to avoid blowing away that fix, I also hold/lock the package so that future upgrades don't undo this fix

UNIX:~ # apt-mark hold powershell

This is affects PowerShell 7.2.1 to 7.2.4 (at least) under Ubuntu 18.04.6

0 Votes 0 ·

1 Answer

LynnNiu-5125 avatar image
1 Vote"
LynnNiu-5125 answered MohammedAlhajji-9542 commented

Microsoft Teams PowerShell module is not supported in linux. see this: https://docs.microsoft.com/en-us/MicrosoftTeams/teams-powershell-install

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for your reply. Another question please in this case, How can I add a policy to the application?

0 Votes 0 ·
LynnNiu-5125 avatar image LynnNiu-5125 MohammedAlhajji-9542 ·

Not sure, seems that Microsoft Graph can't do this either. Only found this: https://docs.microsoft.com/en-us/graph/api/user-list-oauth2permissiongrants?view=graph-rest-1.0&tabs=http

0 Votes 0 ·

Thanks a lot

0 Votes 0 ·