MSCloudLoginAssistant
MSCloudLoginAssistant copied to clipboard
PnP: Fail to connect to a SharePoint AdminUrl (`Connect-PnPOnline`) that has a redirector where the default AdminUrl used to be
Note: this issue will be resolved in a PR coming shortly.
Problem
Sharepoint Online-customers may have created a tenant with a specific name once in time, only to realize at a later stage that they had to rename their sharepoint domain, because the tenant name was not really what they wanted in their Sharepoint Online domain name, ref https://learn.microsoft.com/en-us/sharepoint/change-your-sharepoint-domain-name
MSCloudLoginAssisant is unable to detect when the Url it connects to is a redirector. When it does, operations (in Microsoft365Dsc) fail whenever Get-PnPTenant
is ran. That function is ran for every resource that uses Connect-PnPOnline
.
Suggestion
It should be able to
- detect when Url it connects to is a redirector,
- resolve the new Url/AdminUrl, and
- reconnect to that Url instead.