jeffhollan / LogicAppTemplateCreator

Script to convert Logic Apps into templates for deployment
MIT License
144 stars 74 forks source link

Command not recognized in Powershell Core #78

Open gthibaud opened 4 years ago

gthibaud commented 4 years ago

Hello,

I'm trying to use Get-LogicAppTemplate and Get-ParameterTemplate with PowerShell Core, but I get every time this error: Get-LogicAppTemplate: The term 'Get-LogicAppTemplate' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Configuration:

However, commands are properly working on my dual boot Windows environment.

Is LogicAppTemplate module not working on PowerShell Core?

Regards,

Grégoire

rleal124 commented 4 years ago

Try:

Import-Module LogicAppTemplate

dy-lan commented 4 years ago

Import-Module isn't necessary in PowerShell >= 3.0 unless you've changed the preference variable $PSModuleAutoloadingPreference from its default, which implicitly imports all modules on first-use.

Unfortunately, it appears that this module is built on .NET Framework, not .NET Core, so it can only run on Windows.

After running Install-Module -Name LogicAppTemplate, you can view info about the installed module with Get-Module -ListAvailable -Name LogicAppTemplate. If you notice the Desk under the column PSEdition, this means that the module is only supported on Windows PowerShell. See -PSEdition here for more info.

MLogdberg commented 4 years ago

Yea we have another issue targeting this, will try to port this to Powershell Core