Cannot login and get error when trying to connect to MSCommerce PowerShell

SteveH-8889 0 Reputation points
2024-04-05T07:43:10.7966667+00:00

I have a feeling I'm not the first person with this error, yet I cannot seem to find an answer and Microsoft Support have just fobbed me off.

I am trying to check our Self-Service Options for M365 and when trying to login to the MSCommerce powershell module, it prompts for id, password & mfa (as normal), but then gives error:

Use AllowSelfServicePurchase for the MSCommerce PowerShell module

PS> Connect-MSCommerce 

Sorry, but we’re having trouble with signing you in.

**AADSTS50011: The redirect URI 'http://localhost:61075' specified in the request does not match the redirect URIs configured for the application '3d5cffa9-04da-4657-8cab-c7f074657cad'. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal. Navigate to https://aka.ms/redirectUriMismatchError to learn more about how to fix this.
**
Three separate GA's have tried this and we all get the same error. I cannot find an application with that ID in our tenant. What are we missing please?

Thanks in advance.

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
3,885 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,103 questions
Windows Licensing
Windows Licensing
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.Licensing: Rules, regulations, and restrictions that define how software can be used and distributed.
38 questions
{count} votes