We use powerscript with EXO on many tenants where we have created an App in the Azure portal. This app has Office 365 Exchange Online application permissions:
- full_access_as_app
- Exchange.ManageAsApp
Also we assigned the App the Exchange Administrator role. On allmost all tenants the following works:
We can with Connect-ExchangeOnline -UserPrincipalName "[email protected]" -AccessToken "SomeToken"
Then we use New-DkimSigningConfig
and Set-DkimSigningConfig
so make adjustments around the DKIM signing config.
Yet with just a handful of tenants the cmdlet is not available, it gives the following error:
New-DkimSigningConfig : The term 'New-DkimSigningConfig' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Set-DkimSigningConfig : The term 'Set-DkimSigningConfig' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
The weird thing is that Get-DkimSigningConfig
works, this cmdlet is available.
We are using the following installed module: ExchangeOnlineManagement 3.2.0
I tried to delete the App in the Azure portal, recreate it, assign the new one to the Exchange Administrator role... yet nothing changed.
So I guess something is different with those tenants or this is a bug... Am I missing something?