Microsoft365DSC icon indicating copy to clipboard operation
Microsoft365DSC copied to clipboard

Verbose logging small enhancements

Open bartvermeersch opened this issue 1 year ago • 0 comments

Description of the issue

When creating a new AADUser the password is visible and logged in the verbose logging. I would prefer this to be obfuscated.

A second issue with the verbose logging is the extra empty line in linux:

Current situation

2024-01-31T13:59:20.4370992Z VERBOSE: [tenant-M365DSC]: [[AADUser]AADUser_TestUser::[EntraID]EntraID_Configuration] 2024-01-31T13:59:20.4371297Z Creating new user with values: AccountEnabled=True 2024-01-31T13:59:20.4372095Z 2024-01-31T13:59:20.4377944Z City=Ghent 2024-01-31T13:59:20.4378417Z 2024-01-31T13:59:20.4382286Z Country=Belgium 2024-01-31T13:59:20.4382656Z 2024-01-31T13:59:20.4385255Z DisplayName=TestUser 2024-01-31T13:59:20.4387417Z 2024-01-31T13:59:20.4387659Z GivenName=Test 2024-01-31T13:59:20.4402068Z 2024-01-31T13:59:20.4406917Z MailNickName=testuser 2024-01-31T13:59:20.4409890Z 2024-01-31T13:59:20.4412810Z PasswordPolicies=None 2024-01-31T13:59:20.4413215Z 2024-01-31T13:59:20.4417387Z PasswordProfile={Password=MO6abcdZZH7;uFZe{^)01Un?T@m0N$} 2024-01-31T13:59:20.4420524Z 2024-01-31T13:59:20.4426522Z Surname=User 2024-01-31T13:59:20.4429465Z 2024-01-31T13:59:20.4435608Z UsageLocation=BE 2024-01-31T13:59:20.4438610Z 2024-01-31T13:59:20.4444759Z [email protected]

New situation

2024-01-31T13:59:20.4370992Z VERBOSE: [tenant-M365DSC]: [[AADUser]AADUser_TestUser::[EntraID]EntraID_Configuration] 2024-01-31T13:59:20.4371297Z Creating new user with values: AccountEnabled=True 2024-01-31T13:59:20.4377944Z City=Ghent 2024-01-31T13:59:20.4382286Z Country=Belgium 2024-01-31T13:59:20.4385255Z DisplayName=TestUser 2024-01-31T13:59:20.4387659Z GivenName=Test 2024-01-31T13:59:20.4406917Z MailNickName=testuser 2024-01-31T13:59:20.4412810Z PasswordPolicies=None 2024-01-31T13:59:20.4417387Z PasswordProfile={Password=***} 2024-01-31T13:59:20.4426522Z Surname=User 2024-01-31T13:59:20.4435608Z UsageLocation=BE 2024-01-31T13:59:20.4444759Z [email protected]

Microsoft 365 DSC Version

Release 1.24.228.1

Which workloads are affected

other

The DSC configuration

No response

Verbose logs showing the problem

No response

Environment Information + PowerShell Version

No response

bartvermeersch avatar Feb 29 '24 19:02 bartvermeersch