Skip to content

Commit

Permalink
DSC fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danycontre committed Oct 11, 2024
1 parent 793e8bb commit 2798bc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified workload/scripts/DSCStorageScripts/1.0.1/DSCStorageScripts.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,12 @@ if ($IdentityServiceProvider -eq 'ADDS') {
Write-Log "Domain joining storage account $StorageAccountName in Resource group $StorageAccountRG"
if ( $CustomOuPath -eq 'true') {
#Join-AzStorageAccountForAuth -ResourceGroupName $StorageAccountRG -StorageAccountName $StorageAccountName -DomainAccountType 'ComputerAccount' -OrganizationalUnitDistinguishedName $OUName -OverwriteExistingADObject
Join-AzStorageAccount -ResourceGroupName $StorageAccountRG -StorageAccountName $StorageAccountName -OrganizationalUnitDistinguishedName $OUName -DomainAccountType 'ComputerAccount' -EncryptionType 'AES256' -OverwriteExistingADObject #-SamAccountName $SamAccountName
Join-AzStorageAccount -ResourceGroupName $StorageAccountRG -StorageAccountName $StorageAccountName -OrganizationalUnitDistinguishedName $OUName -DomainAccountType 'ComputerAccount' -OverwriteExistingADObject #-SamAccountName $SamAccountName
Write-Log -Message "Successfully domain joined the storage account $StorageAccountName to custom OU path $OUName"
}
else {
#Join-AzStorageAccountForAuth -ResourceGroupName $StorageAccountRG -StorageAccountName $StorageAccountName -DomainAccountType 'ComputerAccount' -OrganizationalUnitName $OUName -OverwriteExistingADObject
Join-AzStorageAccount -ResourceGroupName $StorageAccountRG -StorageAccountName $StorageAccountName -OrganizationalUnitName $OUName -DomainAccountType 'ComputerAccount' -EncryptionType 'AES256' -OverwriteExistingADObject #-SamAccountName $SamAccountName
Join-AzStorageAccount -ResourceGroupName $StorageAccountRG -StorageAccountName $StorageAccountName -OrganizationalUnitName $OUName -DomainAccountType 'ComputerAccount' -OverwriteExistingADObject #-SamAccountName $SamAccountName
Write-Log -Message "Successfully domain joined the storage account $StorageAccountName to default OU path $OUName"
}
}
Expand Down

0 comments on commit 2798bc5

Please sign in to comment.