Closed raandree closed 1 week ago
Can someone please have a look at this? Currently we are using this ugly workaround: https://github.com/raandree/Microsoft365DscWorkshop/blob/2002015163fb5a3d28783eeda655e47dbb4327c7/.build/CleanupAfterBuild.ps1#L7.
Was implementing another fix in this module and thought to fix this issue at the same time. When checking the code, I noticed that the mentioned function Get-MSCloudLoginOrganizationName
is actually returning the FQDN.
However the function Get-MSCloudLoginTenantDomain
is returning just the tenant name, without the '.onmicrosoft.com' suffix. Naming looks a bit backwards, but that is what it is now.
Reviewed the code where the OrganizationName is used. This is only used in the Connect-ExchangeOnline cmdlet, but it is populated via the above two methods. That is not consistent. Updated the code to always use the Get-MSCloudLoginOrganizationName function, so always the FQDN is used.
I want to control EXO settings with Microsoft365DSC. Reading data from EXO works but writing does not.
When passing the organization's short name to
Connect-ExchangeOnline
, not even creating a DL is possible, when using the FQDN things work. Unfortunately, the functionGet-MSCloudLoginOrganizationName
returns the short name. Why are we not returning the FQDN instead?The first attempt returns an error, the second works as expected:
Am I doing anything wrong?