Skip to content

m365 spo web set fails with "Error: _ is not a valid web property" #1947

@phillipharding

Description

@phillipharding

Description

Calling spo web set fails with the error Error: _ is not a valid web property for any command-line parameter passed to it.

e.g. Simple case

m365 spo web set --webUrl "https://tenant.sharepoint.com/sites/siteurl" --title "HR Portal"

Other variations I've tried and result in the same error;

m365 spo web set --webUrl "https://tenant.sharepoint.com/sites/siteurl" --title "HR Portal"
m365 spo web set -u "https://tenant.sharepoint.com/sites/siteurl" -t "HR Portal"
m365 spo web set -u https://tenant.sharepoint.com/sites/siteurl -t HRPortal

Attempting to set some of the other properties supported by the command, such as --headerEmphasis or --headerLayout, yields the same result

I get the same error whether I use PowerShell on Mac OS or bash, I haven't tried on Windows.

Steps to reproduce

As above

Expected result

To be able to set web properties as per documentation

Environment

  • OS: Mac OS Catalina 10.15.7
  • PowerShell: 7.1.0
  • Bash: 3.2.57(1)-release
  • CLI: 3.2.0

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions