Skip to content

Check for incorrect virtual directory path#1946

Merged
dpaulson45 merged 2 commits into
mainfrom
dpaul-HcVdirPath
Jan 18, 2024
Merged

Check for incorrect virtual directory path#1946
dpaulson45 merged 2 commits into
mainfrom
dpaul-HcVdirPath

Conversation

@dpaulson45
Copy link
Copy Markdown
Member

Issue:
Because you can re-create the virtual directories, we need to verify the paths to make sure they are pointed to the correct default locations. Otherwise, they will not work as intended.

Reason:
Had a customer face this issue, easy enough to call out and avoid the cases.

Fix:
Check the last part of the path to make sure it is pointing to the correct location. Otherwise, then display an error.

image

Unable to use the Get cmdlets for the virtual directories because we are using -ADPropertiesOnly which will not include the path. Therefore, we are basing this off the IISWebApplication information that we have collected.

Resolved #1131

Validation:
Lab tested

@dpaulson45 dpaulson45 added Enhancement New feature or request Health Checker New Feature/Check A new feature or check that is being added to a script labels Jan 18, 2024
@dpaulson45 dpaulson45 requested a review from a team as a code owner January 18, 2024 16:33
Comment thread Diagnostics/HealthChecker/Analyzer/Invoke-AnalyzerIISInformation.ps1 Outdated
Co-authored-by: Lukas Sassl <lusassl@microsoft.com>
@dpaulson45 dpaulson45 merged commit f46b59d into main Jan 18, 2024
@dpaulson45 dpaulson45 deleted the dpaul-HcVdirPath branch January 18, 2024 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New feature or request Health Checker New Feature/Check A new feature or check that is being added to a script

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Health Checker - Validate the Virtual Directory path

2 participants