Power BI Embedding using ServicePrincipal

%3CLINGO-SUB%20id%3D%22lingo-sub-3213474%22%20slang%3D%22en-US%22%3EPower%20BI%20Embedding%20using%20ServicePrincipal%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3213474%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EI%20am%20trying%20to%20embed%20a%20Power%20BI%20report%20using%20%3CSTRONG%3EServicePrincipal%26nbsp%3B%26nbsp%3B%3C%2FSTRONG%3Efor%20Customers.%20I%20have%26nbsp%3B%3C%2FSPAN%3Efollowed%20all%20the%20steps%26nbsp%3B%20that%20are%20given%20in%20Microsoft%20Documentation%26nbsp%3B%26nbsp%3B%3CA%20title%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpower-bi%2Fdeveloper%2Fembedded%2Fembed-sample-for-customers%3Ftabs%3Dnet-core%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpower-bi%2Fdeveloper%2Fembedded%2Fembed-sample-for-customers%3Ftabs%3Dnet-core%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpower-bi%2Fdeveloper%2Fembedded%2Fembed-sample-for-customers%3Ftabs%3Dnet-core%3C%2FA%3E%26nbsp%3B%20and%20provided%20credential%20as%20per%20ServicePrincipal%20requirement%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20am%20using%26nbsp%3BMVC%20Application%20for%26nbsp%3B%20Power%20BI%26nbsp%3BReport%20Embedding.%20When%20i%20try%20to%20get%20the%20all%20list%20of%20report%20from%20Power%20BI%20Workspace%26nbsp%3B%20by%20using%20WorkspaceID%26nbsp%3B%20with%20the%20method%20GetReportsInGroup()%20I%20am%20getting%20this%20error%20message%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3EMicrosoft.Rest.HttpRequestMessageWrapper%20%3A%20Operation%20returned%20an%20invalid%20status%20code%20'Unauthorized'%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20someone%20help%20why%20this%20error%20occurring%3F%20All%20required%20access%20has%20given%20into%20Power%20BI.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3213474%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

I am trying to embed a Power BI report using ServicePrincipal  for Customers. I have followed all the steps  that are given in Microsoft Documentation  https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-sample-for-customers?tabs=net-cor...  and provided credential as per ServicePrincipal requirement

 

I am using MVC Application for  Power BI Report Embedding. When i try to get the all list of report from Power BI Workspace  by using WorkspaceID  with the method GetReportsInGroup() I am getting this error message 

 

 

 

 

Microsoft.Rest.HttpRequestMessageWrapper : Operation returned an invalid status code 'Unauthorized'

 

 

 

 

 

Can someone help why this error occurring? All required access has given into Power BI.

0 Replies