Skip to content

Enhancement: Add LCID validation to spo site add command #1749

@garrytrinder

Description

@garrytrinder

Raised from #1728

It is currently possible to pass a non-valid LCID into the spo site add command when creating a modern team site, which creates only the Microsoft 365 Group, and fails to provision the associated SharePoint Online site collection. It also returns a stack trace error to the console which suggests a bug in the CLI, however the API is acting as designed, therefore we should validate the LCID passed in against the list of supported languages for modern team sites which are documented in the support article below, to prevent such occurrences.

https://support.microsoft.com/en-us/office/languages-supported-by-sharepoint-dfbf3652-2902-4809-be21-9080b6512fff

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions