Skip to content

Commit

Permalink
fix: remove organization splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
oed-metzb committed Nov 7, 2022
1 parent 3103466 commit e661e96
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Modules/Microsoft365DSC/Modules/M365DSCReverse.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,6 @@ function Start-M365DSCConfigurationExtract
}

$AzureAutomation = $false
if ($organization.IndexOf('.') -gt 0)
{
$organization = $organization.Split('.')[0]
}

[array] $version = Get-Module 'Microsoft365DSC'
$version = $version[0].Version
Expand Down Expand Up @@ -330,7 +326,6 @@ function Start-M365DSCConfigurationExtract
{ $_ -in 'CertificateThumbprint', 'CertificatePath', 'ApplicationWithSecret' }
{
$postParamContent.Append(" `$OrganizationName = `$ConfigurationData.NonNodeData.OrganizationName`r`n") | Out-Null
$postParamContent.Append(" `$TenantId = `$ConfigurationData.NonNodeData.TenantId`r`n") | Out-Null

Add-ConfigurationDataEntry -Node 'NonNodeData' `
-Key 'OrganizationName' `
Expand Down

0 comments on commit e661e96

Please sign in to comment.