Azure / GuestConfiguration

PowerShell module for creating, testing, and publishing custom Guest Configuration
MIT License
5 stars 2 forks source link

Module should report error when run in PowerShell 5.1 or older #141

Closed sdwheeler closed 3 years ago

sdwheeler commented 3 years ago

Related to https://github.com/MicrosoftDocs/azure-docs/issues/67490

The docs state that the module requires PowerShell 6.2 but the module manifest says the minimum required version is 5.1. See https://github.com/PowerShell/GuestConfiguration/blob/a143cdad713dbaa5dc2a1ad25fabc7dc8334503f/GuestConfiguration.psd1#L24-L25

Module should check the version of PowerShell it is being run in and throw an error if run on 5.1.

github-actions[bot] commented 3 years ago

This issue has not been updated within 14 days

gaelcolas commented 3 years ago

This will be fixed with #155

github-actions[bot] commented 3 years ago

This issue has not been updated within 14 days

gaelcolas commented 3 years ago

As of the next PS release, GuestConfiguration should require PSDSC v3 module (fix for all linux/win issues). PSDSCv3 itself requires pwsh version 7.2.preview.6+.

github-actions[bot] commented 3 years ago

This issue has not been updated within 14 days

gaelcolas commented 3 years ago

As of the next PS release, GuestConfiguration should require PSDSC v3 module (fix for all linux/win issues). PSDSCv3 itself requires pwsh version 7.2.preview.6+.

That might not be accurate. On linux, yes we need PSDSCv3 (embedded) to support PowerShell resource, which in turn require 7.2.preview.6+. In theory, I think we'd be ok to load from GC bin path, but that hasn't been tested. On windows, the minimum is pwsh 6.2