getting error when executing set MsolCompanyAllowedDataLocation command

Guy
1
Reputation point
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 ?
@Guy
Thank you for your post! Based off your error message, it looks like you don't have enough permissions to run this command.
Error Message:
set-MsolCompanyAllowedDataLocation : Access Denied. You do not have permissions to call this cmdlet.
If you have any other questions, please let me know.
Thank you for your time and patience throughout this issue.