Skip to content

Bug report: Unable to use system-managed identity #6527

@milanholemans

Description

@milanholemans

Priority

(Low) Something is a little off

Description

I wanted to use CLI for Microsoft 365 in an Azure Function using a system-managed identity.
When I want to log in, I'm getting an error that appId is required.

Steps to reproduce

Run the following command on a resource where system managed identity is enabled:

m365 login --authType identity

Expected results

Login successful

Actual results

{"error":"appId: appId is required. TIP: use the \"m365 setup\" command to configure the default appId"}

Diagnostics

No response

CLI for Microsoft 365 version

v10.1.0

nodejs version

v20.9.0

Operating system (environment)

Windows

Shell

PowerShell

cli doctor

No response

Additional Info

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions