You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The SharePoint Connect command is failing due to error in the URL string.
Error:
Connect-SPOService : Could not connect to SharePoint Online.
Connect-SPOService -Url "https://$org_name-admin.sharepoint
This appears to be caused by some lack of clarity in our README, which we will update to clarify the language used.
We are also exploring the potential for a way to pull this information without the need to require direct user input to make it easier for users and reduce the amount of information needed to begin the assessment.
From our README:
To break down the parameters further:
OrgName is the name of the core organization or "company" of your O365 instance, which will be inspected.
If you do not know your organization name, you can navigate to the list of all Exchange domains in O365. The topmost domain should be named domain_name.onmicrosoft.com. In that example, domain_name is your organization name and should be used when executing 365Inspect.
For example, if your domain listed is mycompany.onmicrosoft.com, then your $org_name variable would be mycompany.
Describe the bug
The SharePoint Connect command is failing due to error in the URL string.
Error:
Connect-SPOService : Could not connect to SharePoint Online.
Connect-SPOService -Url "https://$org_name-admin.sharepoint
$org_name is also incorrect as it contains .onmicrosoft.com.
SharePoint URL should be like: https://contoso-admin.sharepoint.com
My nasty fix using sub string
$length = $org_name.length
$pos=$length - 16
$org_name_short = $org_name.substring(0, $pos)
$spURL = "https://" + $org_name_short + "-admin.sharepoint.com"
Connect-SPOService -Url $spURL
The text was updated successfully, but these errors were encountered: