-
Notifications
You must be signed in to change notification settings - Fork 201
Output Error Fixes for ADDS #255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Output Error Fixes for ADDS #255
Conversation
If the error is not expected, change the print from "Failed" to "Unexpected"
added updated messages for pass and for fail
SummaryOfChecks does the same thing at the following code block replaced
| + "`n`tTo debug connectivity problems, please refer to the following," ` | ||
| + "`n`t'AzFileDiagnostics.ps1'($($PSStyle.Foreground.BrightCyan)https://github.com/Azure-Samples/azure-files-samples/tree/master/AzFileDiagnostics/Windows$($PSStyle.Reset))'." ` | ||
| + "`n`tFor possible solutions please refer to '$($PSStyle.Foreground.BrightCyan)https://aka.ms/azfiles/entra-port445$($PSStyle.Reset)'" | ||
| Write-TestingFailed -Message $errMsg -ErrorAction Stop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| $checks["CheckDomainLineOfSight"].Issue = $_ | ||
| Write-Error "CheckDomainLineOfSight - FAILED" | ||
| Write-Error $_ | ||
| Write-TestingFailed -Message $_ -IsUnexpected $true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we may need to make some edits to Debug-DomainLineOfSight to also print in the expected way. Maybe we can make it return a bool saying whether we have line-of-sight or not, and then print what we need to here?
| $checks["CheckADObjectPasswordIsCorrect"].Issue = $_ | ||
| Write-Error "CheckADObjectPasswordIsCorrect - FAILED" | ||
| Write-Error $_ | ||
| Write-TestingFailed -Mesage $_ -IsUnexpected $true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same thing here, I think it's not necessarily unexpected. This is because Test-AzStorageAccountADObjectPasswordIsKerbKey throws an error when it falis. But I don't love that pattern, doesn't let us distinguish test failures from actual exceptional cases that warrant exceptions.
Co-authored-by: Maxime Kjaer <[email protected]>
updated aka.ms link to https://learn.microsoft.com/en-us/troubleshoot/azure/azure-storage/files/connectivity/files-troubleshoot?tabs=powershell#check-tcp-connectivity Co-authored-by: Maxime Kjaer <[email protected]>
Co-authored-by: Maxime Kjaer <[email protected]>
Co-authored-by: Maxime Kjaer <[email protected]>
removed verbose messages that were replaced by new output. Messages which were not replaced were not removed.
replaced with new output
replaced with new output

Updated output error messages for Debug-AzStorageAccountADDSAuth