Skip to content

Bug report: spo site ensure fails with non-existent site #2861

@waldekmastykarz

Description

@waldekmastykarz

Description

When you specify a URL of a non-existent site in the spo site ensure command, it fails with the '404 FILE NOT FOUND' error.

Steps to reproduce

m365 spo site ensure --url https://contoso.sharepoint.com/sites/team1 --alias team1 --title "Team 1"

Expected results

If the site doesn't exist, it should be created, if it exists, it should be updated.

Actual results

Error: 404 FILE NOT FOUND

Diagnostics

n/a

CLI for Microsoft 365 version

Latest from main

nodejs version

v16.13.0

Operating system (environment)

macOS

Shell

zsh

cli doctor

No response

Additional Info

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions