Skip to content

Commit 1756b24

Browse files
Merge pull request #6409 from FabienTschanz/fix/fabric-tenant-settings-export
Fix export of Fabric Admin Tenant Settings
2 parents 261b9a7 + f80be76 commit 1756b24

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
* Added support for Mail attribute.
1717
* EXOOrganizationConfig
1818
* Added support for the RejectDirectSend property.
19+
* FabricAdminTenantSettings
20+
* Fixed the export of the resource.
21+
FIXES [#6345](https://github.com/microsoft/Microsoft365DSC/issues/6345)
1922
* IntuneMobileAppsLobAppiOS
2023
* Initial release.
2124
* IntuneMobileAppsLobAppAndroid

Modules/Microsoft365DSC/DSCResources/MSFT_FabricAdminTenantSettings/MSFT_FabricAdminTenantSettings.psm1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2014,6 +2014,7 @@ function Export-TargetResource
20142014
$Results = Get-TargetResource @Params
20152015

20162016
$newResults = ([Hashtable]$Results).Clone()
2017+
$noEscape = @()
20172018
foreach ($key in @($Results.Keys))
20182019
{
20192020
if ($null -ne $Results.$key -and $key -notin $params.Keys)
@@ -2046,7 +2047,8 @@ function Export-TargetResource
20462047
-ComplexTypeMapping $complexTypeMapping
20472048
if (-not [String]::IsNullOrEmpty($complexTypeStringResult))
20482049
{
2049-
$Results.$key = $complexTypeStringResult
2050+
$newResults.$key = $complexTypeStringResult
2051+
$noEscape += $key
20502052
}
20512053
}
20522054
}
@@ -2055,7 +2057,8 @@ function Export-TargetResource
20552057
-ConnectionMode $ConnectionMode `
20562058
-ModulePath $PSScriptRoot `
20572059
-Results $newResults `
2058-
-Credential $Credential
2060+
-Credential $Credential `
2061+
-NoEscape $noEscape
20592062

20602063
$dscContent += $currentDSCBlock
20612064
Save-M365DSCPartialExport -Content $currentDSCBlock `

0 commit comments

Comments
 (0)