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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Gangadhar09
Regular Visitor

Assistance Required for Connecting Power BI to Snowflake Using Keypair Authentication

Dear Team,

I hope this message finds you well.

I am currently working on connecting Power BI to Snowflake, and I would like to use keypair authentication instead of the standard username and password method. However, I am encountering difficulties in establishing the connection using keypair authentication.

Could you please assist me in setting up the connection with the necessary steps or troubleshooting tips? Any guidance or insights would be greatly appreciated.

Thank you for your time and support.

Best regards,
Gangadhar

3 REPLIES 3
Anonymous
Not applicable

Hi @Gangadhar09 ,

 

You can choose to generate an encrypted version or an unencrypted version when generating a private key, they have different commands, please make sure you are generating an encrypted version:

vhuijieymsft_0-1740707690917.png

 

Detailed steps for connecting to Snowflake using key pair authentication in the ODBC driver can be found in the documentation below:

ODBC configuration and connection parameters | Snowflake Documentation

vhuijieymsft_1-1740707690929.png

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

Gangadhar09
Regular Visitor

Hi Yang,

Thanks for your reply, while configuring odbc driver, we need to enter the username and password mandatory, but with keypair authentication we do not have any password, we do have only username

Anonymous
Not applicable

Hi @Gangadhar09 ,

 

Connecting Power BI to Snowflake using keypair authentication involves the following steps.

 

  • First, you generate a private key using OpenSSL, at which point you can choose to generate an encrypted or unencrypted private key.
  • Then, on the command line, generate the public key by referencing the private key.
  • Execute the ALTER USER command to assign the public key to the Snowflake user.
  • Then use the Snowflake ODBC driver to set up an ODBC data source for Snowflake. In the ODBC Data Source Manager, configure the DSN with the necessary connection details.
  • Open Power BI Desktop.
  • Select Get Data and then select ODBC.
  • Select the DSN you configured for Snowflake.
  • In Connection Settings, select Key Pair Authentication and enter the relevant information.

 

More detailed step-by-step information is available:

Key-pair authentication and key-pair rotation | Snowflake Documentation

 

For related troubleshooting check out this documentation:

https://docs.snowflake.com/en/user-guide/key-pair-auth-troubleshooting

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors