Microsoft365DSC icon indicating copy to clipboard operation
Microsoft365DSC copied to clipboard

Powershell V7

Open DeanGross opened this issue 5 years ago • 6 comments

Is this supposed to work with Powershell V7?

DeanGross avatar Apr 27 '21 21:04 DeanGross

No, version 7 is not supported yet. The powershell modules used in the background still have requirements that version 7 cannot meet.

RuudGijsbers avatar Apr 28 '21 23:04 RuudGijsbers

Ok, thanks for the confirmation. I was getting some weird error messages and was wondering if this could have been the cause. Is it possible to run these commands on a computer that has V7, if so, how?

DeanGross avatar Apr 29 '21 14:04 DeanGross

On Win10 this shouldnt be a problem, just open "Windows PowerShell." that should still give you V5. https://docs.microsoft.com/en-us/powershell/scripting/whats-new/what-s-new-in-powershell-70?view=powershell-7.1 states: "PowerShell 7 installs to a directory seperately from Windows PowerShell. This enables you to run PowerShell 7 side-by-side with Windows PowerShell 5.1. For PowerShell Core 6.x, PowerShell 7 is an in-place upgrade that removes PowerShell Core 6.x."

fsch avatar May 06 '21 13:05 fsch

Is this still the case?

Do we know which modules won't work on PS Core 7?

P.S.: Looking to Containerise this.

Thanks,

haneef95 avatar Nov 15 '21 15:11 haneef95

@haneef95 at least Microsoft.PowerApps.Administration.PowerShell requires Powershell 5.1 (https://docs.microsoft.com/en-us/power-platform/admin/powerapps-powershell) image

scamaramsft avatar Nov 24 '21 09:11 scamaramsft

Would be good to have a table of official Microsoft modules with their versions and the required/tested PS Version.

haneef95 avatar Nov 24 '21 09:11 haneef95