-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
m365 spo homesite remove fails #6491
Comments
As discussed previously, it is important to note that the new option @reshmee011, are willing to work on this one, or should we open it up? |
@milanholemans : I have added a note for url to be optional. |
Even if the command doesn't work without it? If the underlying API has changed and it now requires the URL, then I suggest that we consider it a bug fix rather than a breaking change and make it required. |
It's not really a bug I think. These commands were built when you could only register one home site. The APIs of the commands also only work if one home site is configured. |
Priority
(Low) Something is a little off
Description
m365 spo homesite remove
fails withError: Operation is not valid due to the current state of the object.
The code will need to be refactored to use
_api/SPO.Tenant/RemoveTargetedSite
with additional parameter to accept siteUrl.Steps to reproduce
m365 spo homesite remove
Expected results
Removes the Home Site
Actual results
Error: Operation is not valid due to the current state of the object.
Diagnostics
No response
CLI for Microsoft 365 version
v10.1.0
nodejs version
v20.8.1
Operating system (environment)
Windows
Shell
PowerShell
cli doctor
No response
Additional Info
No response
The text was updated successfully, but these errors were encountered: