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! Learn more

Reply
Anonymous
Not applicable

The remote server returned an error: (401) Unauthorized.

Hi, everyone:

I have a powerbi question about Azure devops CI CD, I hope you can help solve it.
Now when I am making a CD, an error is reported when I push the file to powerbi, the error displays: The remote server returned an error: (401) Unauthorized .

The debug information displays: "# # [error] Exception calling" AcquireToken "with" 3 "argument (s):" AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'. "
How should we deal with this situation?

It has been stagnant for a long time. Thank you

owenc_0-1666663383130.png

owenc_1-1666663410404.png

 

2 REPLIES 2
Anonymous
Not applicable

Hi  @Anonymous ,

You can try the following:

1. If the clientId is from a "Server-side Web app", then specify an extra option -clientsercet. Otherwise register a "Native app" and use the clientid alone.

See Register with the Power BI App Registration Tool

 

2. You need to enable the addition setting called Default Client Type to Yes .

c# - How do I resolve the error AADSTS7000218: The request body must contain the following parameter: 'client_secret' or 'client_assertion' - Stack Overflow

 

This is the related document, you can view this content:

The request body must contain the following parameter: 'client_assertion' or 'client_secret' with Office 365 - Help / Activities - UiPath Community Forum

AdalServiceException: AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'. | Softchief Learn

Fixed – AADSTS7000218: The request body must contain the following parameter: ‘client_assertion’ or ‘client_secret – Nishant Rana's Weblog

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi yangliu,

As shown in the figure below, we can't access the AAD permission management page and configure the relevant permissions. Is it because we can't solve the problem mentioned above? 

Are there any other solutions?

Without relevant authority, can't we solve this problem?
Whether admin permission is required.

owenc_1-1666779553324.png

 

owenc_0-1666779519228.png

 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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 Kudoed Authors