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 ?

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
13,544 questions
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.
3,125 questions
{count} votes