microsoft / powerbi-powershell

PowerShell community for Microsoft PowerBI. Here you will find resources and source for PowerShell modules targeting PowerBI.
MIT License
349 stars 121 forks source link

Not able to Install Module - MicrosoftPowerBIMgmt #408

Closed SnehilMittal-gep closed 4 months ago

SnehilMittal-gep commented 4 months ago

Installation Command:

Install-Module -Name MicrosoftPowerBIMgmt -Force -AllowClobber Import-Module -Name MicrosoftPowerBIMgmt -Force

Error: WARNING: Could not get response from query 'https://www.powershellgallery.com/ap i/v2/FindPackagesById()?id='MicrosoftPowerBIMgmt.Profile'&$skip=0&$top=40'. PackageManagement\Install-Package : Unable to find dependent module(s) (MicrosoftPowerBIMgmt.Profile) At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21

ondruska commented 4 months ago

I have opened a support ticket to address this, have the same issue. image

SnehilMittal-gep commented 4 months ago

Hi All,

The issue got fixed after removing -AllowClobber.

Updated Command:

Install-Module -Name MicrosoftPowerBIMgmt -Force Import-Module -Name MicrosoftPowerBIMgmt

Note: I ran uninstall command before this for safe side to remove any present modules already for it. Command: Uninstall-Module MicrosoftPowerBIMgmt -Force

ondruska commented 4 months ago

@snehil

Hi All,

The issue got fixed after removing -AllowClobber.

Updated Command: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Install-Module -Name MicrosoftPowerBIMgmt -Force Import-Module -Name MicrosoftPowerBIMgmt

Note: I ran uninstall command before this for safe side to remove any present modules already for it. Command: Uninstall-Module MicrosoftPowerBIMgmt -Force

Your command is unrelated to the issue which was an inaccessible package. They have fixed it meanwhile so installation will succeed.

SnehilMittal-gep commented 4 months ago

@snehil

Hi All, The issue got fixed after removing -AllowClobber. Updated Command: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Install-Module -Name MicrosoftPowerBIMgmt -Force Import-Module -Name MicrosoftPowerBIMgmt Note: I ran uninstall command before this for safe side to remove any present modules already for it. Command: Uninstall-Module MicrosoftPowerBIMgmt -Force

Your command is unrelated to the issue which was an inaccessible package. They have fixed it meanwhile so installation will succeed.

Hi @ondruska, Thanks for the confirmation. Yes it is working fine with -AllowClobber as well now.