Sharepoint Online - Powershell report on MultiGeo tenant

%3CLINGO-SUB%20id%3D%22lingo-sub-1505136%22%20slang%3D%22en-US%22%3ESharepoint%20Online%20-%20Powershell%20report%20on%20MultiGeo%20tenant%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1505136%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20Everyone%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20trying%20to%20gather%20some%20simple%20information%20about%20SPO%20sites%20using%20Powershell%20in%20a%20MultiGeo%20tenant%20as%20specified%20in%20the%20title.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20main%20issue%20is%20%3A%26nbsp%3B%3C%2FP%3E%3CP%3E-%20to%20start%20the%20sessions%20I'm%20connecting%20using%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3E%24SPOSession%20%3D%20Connect-SPOService%20-Credential%20%24user%20-Url%20%24SharePointAdminURL%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E-%20%24SharePointAdminURL%20is%20%3CA%20href%3D%22https%3A%2F%2Ftenant-admin.sharepoint.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Ftenant-admin.sharepoint.com%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20it's%20a%20loop%20and%20if%20I%20want%20to%20manage%20some%20SPOSite%20that%20is%20located%20in%20France%20or%20Australia%20I%20need%20to%20connect%20to%20%3CA%20href%3D%22https%3A%2F%2Ftenantfra-admin.sharepoint.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Ftenantfra-admin.sharepoint.com%3C%2FA%3E%26nbsp%3Bor%20%3CA%20href%3D%22http%3A%2F%2Ftenantaus-sharepoint.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttp%3A%2F%2Ftenantaus-sharepoint.com%26nbsp%3B%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20you%20know%20how%20I%20can%20resolve%20this%20%3F%26nbsp%3B%3C%2FP%3E%3CP%3EMany%20thanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1505136%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESites%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Senior Member

Hello Everyone, 

 

I'm trying to gather some simple information about SPO sites using Powershell in a MultiGeo tenant as specified in the title. 

 

My main issue is : 

- to start the sessions I'm connecting using 

 

$SPOSession = Connect-SPOService -Credential $user -Url $SharePointAdminURL

 

- $SharePointAdminURL is https://tenant-admin.sharepoint.com

 

But it's a loop and if I want to manage some SPOSite that is located in France or Australia I need to connect to https://tenantfra-admin.sharepoint.com or http://tenantaus-sharepoint.com 

 

Do you know how I can resolve this ? 

Many thanks.

0 Replies