Priority
(Urgent) I can't use the CLI
Description
When I use the m365 setup with default User.Read permissions, and allowing the CLI to create an app registration with minimal scopes, the request to create an app registration returns with 404
After some investigation, I've found that line 270 in entraApp.cs adds unknown options to the payload using the optionsUtiIs.addUnknownOptionsToPayload function. It seems this is causing some issues as these unknown options can't be found by graph.
When I remove the line, it seems to work just fine.
Steps to reproduce
- Run command
m365 setup
- Enter the following dialogue options:
✔ CLI for Microsoft 365 requires a Microsoft Entra app. Do you want to create a new app registration or use an existing one? Create a new app registration
✔ What scopes should the new app registration have? User.Read (you will need to add the necessary permissions yourself)
✔ How do you plan to use the CLI? Interactively
✔ How experienced are you in using the CLI? Beginner
✔ Based on your preferences, we'll configure the following settings:
- Entra app: Create a new app registration with minimal scopes
- autoOpenLinksInBrowser: true
- copyDeviceCodeToClipboard: true
- output: text
- printErrorsAsPlainText: true
- prompt: true
- showHelpOnFailure: true
- helpMode: full
- authType: browser
You can change any of these settings later using the `m365 cli config set` command or reset them to default using `m365 cli config reset`.
Do you want to apply these settings now? Yes
Configuring settings...
✔ CLI for Microsoft 365 will now sign in to your Microsoft 365 tenant as Microsoft Azure CLI to create a new app registration. Continue? Yes
To sign in, use the web browser that just has been opened. Please sign-in there.
Error: AxiosError: Request failed with status code 404
Expected results
I expect the app registration to be created.
Actual results
Error: AxiosError: Request failed with status code 404
Diagnostics
No response
CLI for Microsoft 365 version
10.7.0
nodejs version
v18.16.0
Operating system (environment)
Windows
Shell
PowerShell
cli doctor
No response
Additional Info
No response
Priority
(Urgent) I can't use the CLI
Description
When I use the
m365 setupwith default User.Read permissions, and allowing the CLI to create an app registration with minimal scopes, the request to create an app registration returns with404After some investigation, I've found that line 270 in
entraApp.csadds unknown options to the payload using theoptionsUtiIs.addUnknownOptionsToPayloadfunction. It seems this is causing some issues as these unknown options can't be found by graph.When I remove the line, it seems to work just fine.
Steps to reproduce
m365 setupExpected results
I expect the app registration to be created.
Actual results
Error: AxiosError: Request failed with status code 404Diagnostics
No response
CLI for Microsoft 365 version
10.7.0
nodejs version
v18.16.0
Operating system (environment)
Windows
Shell
PowerShell
cli doctor
No response
Additional Info
No response