Is your feature request related to a problem? Please describe.
M365 file-level archival has been in public preview for a couple of weeks. While we wait for admin-level policies, it would be useful to archive files at scale using PnP PowerShell.
Describe the solution you'd like
A command similar to site archival (Set-PnPSiteArchiveState), e.g. Set-PnPFileArchiveState, that takes the site URL and file (server- or site-relative URL) as parameters to archive the file.
Describe alternatives you've considered
Right now the only option is manual handling, which doesn't scale.
Additional context
Possible with Graph as well as SharePoint REST API
Is your feature request related to a problem? Please describe.
M365 file-level archival has been in public preview for a couple of weeks. While we wait for admin-level policies, it would be useful to archive files at scale using PnP PowerShell.
Describe the solution you'd like
A command similar to site archival (
Set-PnPSiteArchiveState), e.g.Set-PnPFileArchiveState, that takes the site URL and file (server- or site-relative URL) as parameters to archive the file.Describe alternatives you've considered
Right now the only option is manual handling, which doesn't scale.
Additional context
Possible with Graph as well as SharePoint REST API