Determining your Office 365 Tenant Location

Determining your Office 365 Tenant Location

  •  
  •  
  •  
  •  
  •  
  •  
Determining your Office 365 Tenant Location
3.5 (70%) 2 votes

During a conversation with my peers, the discussion came up on how to determine what environment a tenant is located in (usually between Commercial and Government).  Typically, the easiest way to determine this is to look at your account SKUs.  For example, from PowerShell, the cmdlet Get-MsolAccountSku will return a list of SKUs available in your tenant.

In a commercial tenant, they’ll look something like this:

AccountSkuId ActiveUnits WarningUnits ConsumedUnits
------------ ----------- ------------ -------------
EMS340903:EMSPREMIUM 100 0 98
EMS340903:ENTERPRISEPREMIUM 25 0 24
EMS340903:ATP_ENTERPRISE 0 0 0

In a government tenant, the SKUs typically end in _GOV.

AccountSkuId ActiveUnits WarningUnits ConsumedUnits
------------ ----------- ------------ -------------
CAGOVSAMPLE:ENTERPRISEPACK_GOV 1000 0 50
CAGOVSAMPLE:STANDARDPACK_GOV 500 0 0
CAGOVSAMPLE:SHAREPOINTWAC_GOV 500 0 0

Government SKUs, when viewed through the portal, also have “for Government” in the display name.

We also have tenants for education, which (not surprisingly), have their own SKU names:

AccountSkuId ActiveUnits WarningUnits ConsumedUnits 
------------ ----------- ------------ ------------- 
MYEDU:STANDARDWOFFPACK_STUDENT 1000 0 50 
MYEDU:STANDARDWOFFPACK_IW_STUDENT 500 0 0 
MYEDU:STANDARDWOFFPACK_FACULTY 500 0 0

You also don’t have to look at the portal, as long as you know your tenant name.  Using a web browser (as long as you can auth to the tenant), try this query:

https://login.microsoftonline.com/{tenant}.onmicrosoft.com/.well-known/openid-configuration

You should get some JSON returned to you in the browser:

Manyof the GCC customers that I have seen will have the following JSON output near the bottom:

"tenant_region_scope":"NA",
"tenant_region_sub_scope":"GCC"

I’ve seen several instances where GCC customers don’t have a sub-scope listed, but I’ve seen some interesting results from this query, so I’d be interested in feedback on it.

Happy digging!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.