Closed ashleygagregory closed 4 years ago
Changed default auth mode to just use the SharePoint PnP Cmdlets to work around this while investigating. SharePoint Online Management Shell will not be required for now.
Revised this slightly. SharePoint Online Management Shell is required, but we aren't explicitly calling it anymore, PnP calls it implicitly when we try to use it's Auth and that seems to work around this.
This Issue posted for PnP is relevant here and why this broke originally: https://github.com/pnp/PnP-PowerShell/issues/2538
Script appears to hit a 401 when creating the Site Collection (v3 SPO), is already logged on in SharePoint Online Management Shell and tested logging in to the Admin Site through PnP.