Describe the bug
When using Get-MgAllSite with -Property siteCollection, the returned MicrosoftGraphSiteCollection object has DataLocationCode always null/empty, even though the property exists on the model, the tenant is multi geo and the site is in another region.
Actual output:
ArchivalDetails : Microsoft.Graph.PowerShell.Models.MicrosoftGraphSiteArchivalDetails
DataLocationCode :
Hostname : contoso.sharepoint.com
Root : Microsoft.Graph.PowerShell.Models.MicrosoftGraphRoot
AdditionalProperties : {}
Expected behavior
DataLocationCode should contain the geo location code (e.g. NAM, EUR).
How to reproduce
Replace contoso.onmicrosoft.com with multi geo tenant and ensure you have sites in multiple regions.
# Module version: 2.35.1
Connect-MgGraph -TenantId "contoso.onmicrosoft.com" -ClientSecretCredential $cred -NoWelcome
$sites = Get-MgAllSite -Top 1 -Property siteCollection
$sites[0].SiteCollection | Format-List *
Reproduce via: Get-AllSites_graph.ps1.txt
SDK Version
No response
Latest version known to work for scenario above?
2.35.1
Known Workarounds
No response
Debug output
Click to expand log
```
</details>
### Configuration
- OS: Windows 11 x64
### Other information
It looks like this could be related to https://github.com/OneDrive/onedrive-api-docs/issues/1091
Describe the bug
When using
Get-MgAllSitewith-Property siteCollection, the returnedMicrosoftGraphSiteCollectionobject hasDataLocationCodealways null/empty, even though the property exists on the model, the tenant is multi geo and the site is in another region.Expected behavior
DataLocationCodeshould contain the geo location code (e.g. NAM, EUR).How to reproduce
Replace
contoso.onmicrosoft.comwith multi geo tenant and ensure you have sites in multiple regions.Reproduce via: Get-AllSites_graph.ps1.txt
SDK Version
No response
Latest version known to work for scenario above?
2.35.1
Known Workarounds
No response
Debug output
Click to expand log
```