getting error when executing set MsolCompanyAllowedDataLocation command

Guy 1 Reputation point
2020-12-02T10:01:11.52+00:00

Hello,
I am trying to activate Multi Geo environment for Exchange Online. Everything is setup and works for SharePoint Online.

We are in hybrid environment.

We set PDL property and assigned Multi Geo Licenses.
I tried to add Remote Data Centers for Exchange using the following command with global admin permissions, but got an error.

set-MsolCompanyAllowedDataLocation -Location "CAN" -ServiceType "Exchange"

set-MsolCompanyAllowedDataLocation : Access Denied. You do not have permissions to call this cmdlet.
At line:1 char:1

  • set-MsolCompanyAllowedDataLocation -Location "JPN" -ServiceType "Exc ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : OperationStopped: (:) [Set-MsolCompanyAllowedDataLocation], MicrosoftOnlineException
  • FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.AccessDeniedException,Microsoft.Online.Admini
    stration.Automation.SetCompanyAllowedDataLocation

Any clues ?

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,162 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,380 questions
{count} votes