Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
po
Post Prodigy
Post Prodigy

Install-Module -Name MicrosoftPowerBIMgmt error

Hi,

 

powershell 5.1 version

 

getting an error below when try install Install-Module -Name MicrosoftPowerBIMgmt.

 

powerbi_error.png

If try 

 

> GET-PSRepository
WARNING: Unable to find module repositories.

 

How can we resolve.

 

Machine not connected to internet thus not sure if we need to do something different to get this installed and what?

 

When installs does it connect to internet to download?

 

Thanks

 

 

 

 

1 ACCEPTED SOLUTION

8 REPLIES 8
Angel
Resolver III
Resolver III

Hi @po 

 

This is the code I'm using...

 

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted
Install-Module -Name MicrosoftPowerBIMgmt

Try it and tell me if it works.. 

Hi,

 

Get message below when attempting to run second line.

 

PS > Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted
Set-PSRepository : No repository with the name 'PSGallery' was found.
At line:1 char:1
+ Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (PSGallery:String) [Set-PSRepository], InvalidOperationException
+ FullyQualifiedErrorId : RepositoryNotFound,Set-PSRepository

 

Hi @po ,

 

You need a conecction to internet in order to download the cmdlets.

 

Greetings

Hi,

 

Thanks for update.

 

Must be some connetcion to internet I guess as the gateway machine is working and have reports resfreshing through it.

 

I'm guessing soem sites may be blocked?

 

Which site do I need a connection to in order to be able to use Install-Module -Name

 

Thanks

Hi @po 

 

I think this https://www.powershellgallery.com/

 

Greetings

Hi,

 

Thanks - after raising with sever team and running below got powerbimgtmt cmdlet to install.

 

once ran [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 

 

How can we run powershell script automatically without having to run this or can we includ ethis in powershell script as first line [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 

 

?

 

Thanks

Hi,

 

Thanks for update

Hi,

 

Thanks is there an aternative e.g an executabel we could download on another machine and then copy across and also what is the site.

 

Generally this protected server as gateway server and thinking of bare minimun site if whiletlisted it that coudl connect to.?

 

Thanks

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors