Answered by:
Azure artifact to promote server to DC false positive

Question
-
Hi,
I'm automating VM builds with Azure Artifacts. Although all scripts run and succeed, the artifact to promote the server to a DC says it fails.
Using Windows 2012R2 from the image gallery and the pre-built artifact to create a new domain. This works but the server doesn't get promoted to a DC.
I created a custom artifact that runs the powershell command to promote the server to a DC. When the artifact is applied, the server is promoted to a DC then Azure powers the VM off. This is all good except the artifact is actually reporting that it failed and any additional artifacts are skipped. When I log into the VM, it is in fact a DC.
The custom artifact simply runs a PS script with the following command
Install-ADDSForest -domainname testdom.local -SafeModeAdministratorPassword (convertto-securestring "Password11!" -asplaintext -Force) -ForceMy guess is that the artifact is reporting it failed because warnings are issued while the server is being promoted. They are standard warnings that can be ignored and I don't see a way to suppress.
Is there a better way to promote the server to a DC or a way to get the artifact to report success?
Thanks!
- Moved by KrishnaG - MSFTMicrosoft employee, Moderator Monday, August 26, 2019 4:44 AM Better suited for Azure DevOps related forum
Answers
-
Hi David,
Thanks for using Azure.
You can please check out the warningaction as "SilentlyContinue" and see the artifacts are able to getting installed or not.
You can always use the option of "-NoRebootOnCompletion" for troubleshooting purpose and understand what kind of errors/warning are showing up as part of artifact installation
Additional documentation reference for troubleshooting Domain Controller Deployment.
Hope the above information helps. Please revert back if you have any further queries.
- Proposed as answer by BharathN-MSFTMicrosoft employee, Owner Wednesday, August 28, 2019 4:08 PM
- Marked as answer by David Maximoff Tuesday, September 17, 2019 9:25 PM
All replies
-
Hi David,
Thanks for using Azure.
You can please check out the warningaction as "SilentlyContinue" and see the artifacts are able to getting installed or not.
You can always use the option of "-NoRebootOnCompletion" for troubleshooting purpose and understand what kind of errors/warning are showing up as part of artifact installation
Additional documentation reference for troubleshooting Domain Controller Deployment.
Hope the above information helps. Please revert back if you have any further queries.
- Proposed as answer by BharathN-MSFTMicrosoft employee, Owner Wednesday, August 28, 2019 4:08 PM
- Marked as answer by David Maximoff Tuesday, September 17, 2019 9:25 PM
-
-