Skip to content

Commit

Permalink
Merge pull request #3453 from NikCharlebois/Fixes-#3449
Browse files Browse the repository at this point in the history
Fixes #3449
  • Loading branch information
NikCharlebois authored Jul 10, 2023
2 parents 8faa923 + 3d55b5f commit f5de9bc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change log for Microsoft365DSC

# UNRELEASED

* MISC
* Fixes cmdlet to use Get-MgBetaOrganization in the Get-M365DSCTenantDomain function.
FIXES [#3449](https://github.com/microsoft/Microsoft365DSC/issues/3449)

# 1.23.705.1

* EXOAddressList
Expand Down
2 changes: 1 addition & 1 deletion Modules/Microsoft365DSC/Modules/M365DSCUtil.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -1512,7 +1512,7 @@ function Get-M365DSCTenantDomain

try
{
$tenantDetails = Get-MgOrganization -ErrorAction 'Stop'
$tenantDetails = Get-MgBetaOrganization -ErrorAction 'Stop'
$defaultDomain = $tenantDetails.VerifiedDomains | Where-Object -FilterScript { $_.IsInitial }

return $defaultDomain.Name
Expand Down

0 comments on commit f5de9bc

Please sign in to comment.