msstore-cli reconfigure Credentials

Mathis, Richard 0 Reputation points
2024-03-01T13:37:55.67+00:00

Hi,

I try to upload our app via msstore-cli. For that i wanted to use the msstore tool. Could you help us?

msstore reconfigure --tenantId  *** --clientId *** --clientSecret *** --sellerId *** -v

02:45:39 info: MSStore.API.StoreAPI[0] Getting authorization token 02:45:41 fail: MSStore.API.StoreAPI[0] => GetClientCredentialAccessToken Failed to get access token. Response: Service is unavailable to process the request 02:45:41 info: MSStore.CLI.Services.CLIConfigurator[0] Error while creating StoreAPI. MSStore.API.MSStoreException: Could not retrieve access token ---> MSAL.NetCore.4.59.0.0.MsalServiceException: ErrorCode: service_not_available
Microsoft.Identity.Client.MsalServiceException: Service is unavailable to process the request at Microsoft.Identity.Client.Http.HttpManagerWithRetry.SendRequestAsync(Uri endpoint, IDictionary2 headers, HttpContent body, HttpMethod method, ILoggerAdapter logger, Boolean doNotThrow, Boolean retry, CancellationToken cancellationToken) at Microsoft.Identity.Client.Http.HttpManagerWithRetry.SendRequestAsync(Uri endpoint, IDictionary2 headers, HttpContent body, HttpMethod method, ILoggerAdapter logger, Boolean doNotThrow, Boolean retry, CancellationToken cancellationToken) at Microsoft.Identity.Client.Http.HttpManagerWithRetry.SendPostAsync(Uri endpoint, IDictionary2 headers, HttpContent body, ILoggerAdapter logger, CancellationToken cancellationToken) at Microsoft.Identity.Client.Http.HttpManager.SendPostAsync(Uri endpoint, IDictionary2 headers, IDictionary2 bodyParameters, ILoggerAdapter logger, CancellationToken cancellationToken) at Microsoft.Identity.Client.OAuth2.OAuth2Client.ExecuteRequestAsync[T](Uri endPoint, HttpMethod method, RequestContext requestContext, Boolean expectErrorsOn200OK, Boolean addCommonHeaders, Func2 onBeforePostRequestData) at Microsoft.Identity.Client.OAuth2.OAuth2Client.GetTokenAsync(Uri endPoint, RequestContext requestContext, Boolean addCommonHeaders, Func2 onBeforePostRequestHandler) at Microsoft.Identity.Client.OAuth2.TokenClient.SendHttpAndClearTelemetryAsync(String tokenEndpoint, ILoggerAdapter logger) at Microsoft.Identity.Client.OAuth2.TokenClient.SendHttpAndClearTelemetryAsync(String tokenEndpoint, ILoggerAdapter logger) at Microsoft.Identity.Client.OAuth2.TokenClient.SendTokenRequestAsync(IDictionary2 additionalBodyParameters, String scopeOverride, String tokenEndpointOverride, CancellationToken cancellationToken) at Microsoft.Identity.Client.Internal.Requests.RequestBase.SendTokenRequestAsync(IDictionary`2 additionalBodyParameters, CancellationToken cancellationToken) at Microsoft.Identity.Client.Internal.Requests.ClientCredentialRequest.GetAccessTokenAsync(CancellationToken cancellationToken, ILoggerAdapter logger) at Microsoft.Identity.Client.Internal.Requests.ClientCredentialRequest.ExecuteAsync(CancellationToken cancellationToken) at Microsoft.Identity.Client.Internal.Requests.RequestBase.RunAsync(CancellationToken cancellationToken) at Microsoft.Identity.Client.ApiConfig.Executors.ConfidentialClientExecutor.ExecuteAsync(AcquireTokenCommonParameters commonParameters, AcquireTokenForClientParameters clientParameters, CancellationToken cancellationToken) at MSStore.API.SubmissionClient.GetClientCredentialAccessTokenAsync(String tenantId, String clientId, String clientSecret, String scope, ILogger logger, CancellationToken ct) in /_/MSStore.API/SubmissionClient.cs:line 144

    StatusCode: 500
>         ResponseBody: {"error":"server_error","error_description":"AADSTS50000: There was an error issuing a token or an issue with our sign-in service. Trace ID: 81556cb6-4c91-476b-a63c-be9b6a6ee000 Correlation ID: abf6752b-e09e-4c9c-a6b5-e5b294837107 Timestamp: 2024-03-01
> 13:45:41Z","error_codes":[50000],"timestamp":"2024-03-01 13:45:41Z","trace_id":"81556cb6-4c91-476b-a63c-be9b6a6ee000","correlation_id":"abf6752b-e09e-4c9c-a6b5-e5b294837107","error_uri":"https://login.microsoftonline.com/error?code=50000"}
>         Headers: Cache-Control: no-store, no-cache Pragma: no-cache Strict-Transport-Security: max-age=31536000; includeSubDomains X-Content-Type-Options: nosniff P3P: CP="DSP CUR OTPi IND OTRi ONL FIN" client-request-id: abf6752b-e09e-4c9c-a6b5-e5b294837107 x-ms-request-id:
> 81556cb6-4c91-476b-a63c-be9b6a6ee000 x-ms-ests-server: 2.1.17396.8 - FRC ProdSlices x-ms-clitelem: 1,50000,0,, X-XSS-Protection: 0 Set-Cookie: fpc=Au6q4fuzrz9Pt0a1v10yzK4kvPYLAgAAAAPTc90OAAAA; expires=Sun, 31-Mar-2024 13:45:41 GMT; path=/; secure; HttpOnly; SameSite=None,
> x-ms-gateway-slice=estsfd; path=/; secure; httponly Date: Fri, 01 Mar 2024 13:45:41 GMT     --- End of inner exception stack trace ---    at MSStore.API.SubmissionClient.GetClientCredentialAccessTokenAsync(String tenantId, String clientId, String clientSecret, String scope, ILogger       
> logger, CancellationToken ct) in /_/MSStore.API/SubmissionClient.cs:line 151    at MSStore.API.StoreAPI.InitAsync(HttpClient httpClient, CancellationToken ct) in /_/MSStore.API/StoreAPI.cs:line 101    at MSStore.CLI.Services.StoreAPIFactory.CreateAsync(Configurations config,
> CancellationToken ct) in /_/MSStore.CLI/Services/StoreAPIFactory.cs:line 49    at MSStore.CLI.Services.CLIConfigurator.<>c__DisplayClass10_0.<<ConfigureAsync>b__2>d.MoveNext() in /_/MSStore.CLI/Services/CLIConfigurator.cs:line 312
> Failed to auth... Might just need to wait a little bit. Retrying again in 10 seconds(1/3)...
> Could you help us?
Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,497 questions
Microsoft Partner Center
Microsoft Partner Center
A Microsoft website for partners that provides access to product support, a partner community, and other partner services.
1,005 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Mathis, Richard 0 Reputation points
    2024-03-04T07:33:41.86+00:00

    Thank you. I will do it. Can be closed.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.