Skip to content

Bug report: 'spe container remove' fails with unrecognized key error when using aliases #7064

@Saurabh7019

Description

@Saurabh7019

Priority

(Low) Something is a little off

Description

When running spe container remove using option aliases (e.g., -i for --id or -n for --name), the command fails with an Unrecognized key(s) in object error.

Image

Steps to reproduce

Run the following command:

m365 spe container remove -i "b!65eyGuYbM0ifVaGedZ5HVabO4oygHI5Iox3n0fzeXVxj9R6EDG9WSqjYEkjt23aP" --recycle --force

Expected results

The command should work using aliases as well.

Actual results

Error: Unrecognized key(s) in object: 'i'
Use one of the following options: id or name.

Diagnostics

No response

CLI for Microsoft 365 version

v11.3.0

nodejs version

22.12.0

Operating system (environment)

Windows

Shell

PowerShell

cli doctor

No response

Additional Info

this seems wrong..

Image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions