Partner Center Java SDK Azure

0 votes

0

I need your help, I am using Azure partner center SDK (java) to create a link with azure cloud. I am using the following code to do the authentication part and it was mentioned in Microsoft Documentation.

IAggregatePartner partnerOperations = PartnerCredentials.getInstance().generateByApplicationCredentials(
    "ApplicationId"
    "ApplicationSecret",
    "AccountId");

but when I run the code this error appears:

**Exception in thread "main" PartnerException: ErrorCategory: NOT_SPECIFIED, ServiceErrorPayload: null, Context: null, Base Description: com.microsoft.store.partnercenter.exception.PartnerException: Failed to do the application AAD login
    at com.microsoft.store.partnercenter.extensions.ApplicationPartnerCredentials.authenticate(ApplicationPartnerCredentials.java:172)
    at com.microsoft.store.partnercenter.extensions.PartnerCredentials.generateByApplicationCredentials(PartnerCredentials.java:69)
    at com.microsoft.store.partnercenter.extensions.PartnerCredentials.generateByApplicationCredentials(PartnerCredentials.java:50)
    at com.contoso.PartnerApp.App.main(App.java:19)
Caused by: java.lang.IllegalArgumentException: authority Uri should have at least one segment in the path (i.e. https://<host>/<path>/...)
    at com.microsoft.aad.msal4j.Authority.detectAuthorityType(Authority.java:72)
    at com.microsoft.aad.msal4j.ClientApplicationBase$Builder.authority(ClientApplicationBase.java:257)
    at com.microsoft.store.partnercenter.extensions.ApplicationPartnerCredentials.authenticate(ApplicationPartnerCredentials.java:155)**
    ... 3 more
Mar 26 in Azure by Edureka
• 10,880 points
65 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Azure

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to retrieve View definition on Synapse (Azure SQL DW)?

To authenticate with Azure SQL Database or ...READ MORE

answered Mar 4 in Azure by Edureka
• 12,390 points
244 views
0 votes
1 answer

enable azure search synonyms

The '@' in the synonymmap definition designates ...READ MORE

answered Mar 1 in Azure by Edureka
• 10,880 points
74 views
+3 votes
3 answers
0 votes
1 answer

Is it possible to vibrate from broadcast receiver during incoming call?

Hello Android Native Development I have found some ...READ MORE

answered May 9, 2020 in Others by Anadya
713 views
0 votes
0 answers

Update test results @ test step level in Azure DevOps during test execution through automation scripts

My automation framework is writtin in Java, ...READ MORE

Aug 21, 2020 in DevOps on Cloud by Anand
• 120 points

recategorized Aug 21, 2020 by MD 550 views
+5 votes
4 answers

How to execute a python file with few arguments in java?

You can use Java Runtime.exec() to run python script, ...READ MORE

answered Mar 27, 2018 in Java by DragonLord999
• 8,450 points

edited Nov 7, 2018 by Omkar 67,204 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP