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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
erpeff
Frequent Visitor

KeyBlocker error while Pushing Data to Power BI using PowerShell

When I am trying to push SQL query data into Power BI using Rest API with PowerShell, getting error says, 

 

erpeff_3-1657534555366.png

 

 

//Code Snippet

erpeff_2-1657534524788.png

Please help me to get out of this...

1 ACCEPTED SOLUTION
v-luwang-msft
Community Support
Community Support

Hi @erpeff ,

Try turning off the firewall and make sure to run it with TLS 1.2 in the script:

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

 

Best Regards
Lucien

View solution in original post

3 REPLIES 3
v-luwang-msft
Community Support
Community Support

Hi @erpeff ,

Has your problem been solved, if so, please consider Accept a correct reply as the solution or share your own solution to help others find it.

Best Regards
Lucien

v-luwang-msft
Community Support
Community Support

Hi @erpeff ,

Try turning off the firewall and make sure to run it with TLS 1.2 in the script:

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

 

Best Regards
Lucien

Hello,

 

Where in the code should this be placed?

 

Thank you,

Brittany 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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