Azure-Samples / Azure-Samples/azure-files-samples

Update Error Message for AD Deserialized Objects

Open
#88 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
261
Forks
202
Avg merge
1d 5h
Merged PRs (30d)
4

Description

Line 762 imports the Active Directory module. Later use of cmdlets require serialized AD objects which were not available on my Windows Server 2016, PowerShell 7.1.4, with ActiveDirectory module 1.0 machine.

Specifically, the "OverwriteExistingADObject" switch triggers the use of serialized AD objects on line 2555 and 2582. `Set-ADComputer **-Instance** $computerSpnMatch -ErrorAction Stop`

A more clear error message warning of this condition would be helpful. Our workaround was to just delete object manually and restart.

Edit: To clarify, this is for azure-files-samples/AzFilesHybrid/AzFilesHybrid.psm1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.