Skip to content

Bug report: 'm365 spo site ensure' not working as expected #5155

@Saurabh7019

Description

@Saurabh7019

Priority

(Low) Something is a little off

Description

None of the examples mentioned in the documentation for this command are yielding the expected results.

Steps to reproduce

  • Log in to Microsoft 365
  • Execute examples as suggested in spo site ensure docs

Expected results

  • m365 spo site ensure --url https://contoso.sharepoint.com/sites/team1 --alias team1 --title "Team 1" should not throw error on existing site.
  • m365 spo site ensure --url https://7566ava.sharepoint.com/sites/commsite --title commsite --type ClassicSite should not update the title, and it should throw error.
  • m365 spo site ensure --url https://contoso.sharepoint.com/sites/team1 --alias team1 --title "Team 1" --isPublic --shareByEmailEnabled should accept --shareByEmailEnabled option

Actual results

  • m365 spo site ensure --url https://contoso.sharepoint.com/teams/team1 --alias team1 --title "Team 1" should update the title if site exists.
  • m365 spo site ensure --url https://7566ava.sharepoint.com/sites/commsite --title commsite --type ClassicSite running this command on an existing communication site should throw error.
  • m365 spo site ensure --url https://contoso.sharepoint.com/sites/team1 --alias team1 --title "Team 1" --isPublic --shareByEmailEnabled does not accept --shareByEmailEnabled as suggested in example

Diagnostics

No response

CLI for Microsoft 365 version

v6.9.0

nodejs version

v18.16.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