microsoft / Analysis-Services

Git repo for Analysis Services samples and community projects
MIT License
605 stars 416 forks source link

Resolving PowerShell Module Import Error for FabricPS-PBIP #305

Open MVankudoth opened 1 month ago

MVankudoth commented 1 month ago

I am trying to use the modules FabricPS-PBIP.psd1 and FabricPS-PBIP.psm1 to deploy .pbip files. I have installed PowerShell 7.2 and downloaded the module, placing it in C:\Program Files\PowerShell\7-preview\Modules\FabricPS-PBIP.

However, when I attempt to import the module, I receive the following error:

PS C:\Users\MVankudoth> Import-Module -Name "C:\Program Files\PowerShell\7-preview\Modules\FabricPS-PBIP" -Verbose VERBOSE: Loading module from path 'C:\Program Files\PowerShell\7-preview\Modules\FabricPS-PBIP\FabricPS-PBIP.psd1'. VERBOSE: Loading module from path 'C:\Program Files\PowerShell\7-preview\Modules\FabricPS-PBIP\FabricPS-PBIP.psm1'. Import-Module: File C:\Program Files\PowerShell\7-preview\Modules\FabricPS-PBIP\FabricPS-PBIP.psm1 cannot be loaded. The file C:\Program Files\PowerShell\7-preview\Modules\FabricPS-PBIP\FabricPS-PBIP.psm1 is not digitally signed. You cannot run this script on the current system. For more information about running scripts and setting execution policy, see about_Execution_Policies at https://go.microsoft.com/fwlink/?LinkID=135170.

Can you please assist me in resolving this issue?