We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
spo site archive
m365 spo site archive [options]
Archives a site collection
-u, --url <url>
-f, --force
Archive a specific SharePoint site collection
m365 spo site archive --url "https://contoso.sharepoint.com/sites/Marketing"
Archive a specific SharePoint site collection without confirmation prompt
m365 spo site archive --url "https://contoso.sharepoint.com/sites/Marketing" --force
No response
Since the REST API request is an internal request, we prefer to use the CSOM request.
POST https://contoso-admin.sharepoint.com/_vti_bin/client.svc/ProcessQuery <Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="<CLI app name>" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"> <Actions> <ObjectPath Id="2" ObjectPathId="1" /> <ObjectPath Id="4" ObjectPathId="3" /> <Query Id="5" ObjectPathId="3"> <Query SelectAllProperties="true"> <Properties /> </Query> </Query> </Actions> <ObjectPaths> <Constructor Id="1" TypeId="{268004ae-ef6b-4e9b-8425-127220d84719}" /> <Method Id="3" ParentId="1" Name="ArchiveSiteByUrl"> <Parameters> <Parameter Type="String">https://contoso.sharepoint.com/sites/Marketing</Parameter> </Parameters> </Method> </ObjectPaths> </Request>
Note
Info admonition: To use this command you must be a Global or SharePoint administrator.
The text was updated successfully, but these errors were encountered:
LGTM 👍 Only idea I had (similar like in the unarchive) was maybe to allow to specify site by name.
Sorry, something went wrong.
Can I work on this one?
Definitely! Thanks.
New command: spo site archive. Closes pnp#6018
b1cf2d4
Saurabh7019
Successfully merging a pull request may close this issue.
Usage
m365 spo site archive [options]
Description
Archives a site collection
Options
-u, --url <url>
-f, --force
Examples
Archive a specific SharePoint site collection
m365 spo site archive --url "https://contoso.sharepoint.com/sites/Marketing"
Archive a specific SharePoint site collection without confirmation prompt
m365 spo site archive --url "https://contoso.sharepoint.com/sites/Marketing" --force
Default properties
No response
Additional Info
API request
Since the REST API request is an internal request, we prefer to use the CSOM request.
Remarks
Note
Info admonition: To use this command you must be a Global or SharePoint administrator.
Additional info
The text was updated successfully, but these errors were encountered: