web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

ADO build fails ramdomly with 10.0.8 build VM: "Error preparing build environment: IISReset . Access denied"

(0) ShareShare
ReportReport
Posted on by 101,172 Moderator

We recently deployed a 10.0.8 / PU32 build VM in Azure. For some reason about half of our nightly builds fail in step "Prepare for build". The error message is:

 

"Error preparing build environment: IISReset . Access denied, you must be an administrator of the remote computer to use this command. Either have your account added to the administrator local group of the remote computer or to the domain administrator global group."

 

Has anyone else faced this, and any ideas how to fix it? It's a freshly deployed system, and we didn't make any changes in it. And it also works about 50% of the time without issues.

pastedimage1582791938329v1.png

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    306,230 Super User 2026 Season 1 on at

    Hi Nikolaos,

    I noticed you also had created a Yammer post on the Dynamics feedback. Did you also create an incident for Microsoft Support?

  • Verified answer
    Sergei Minozhenko Profile Picture
    23,097 on at

    Hi Nikolaos,

    Did you check how the IIS stop is done in the script? Could it be that error is incorrect and it can't be stopped because of timeout or certain activity? Is it 24 hours running VM?

  • Verified answer
    Joris dG Profile Picture
    17,782 on at

    I agree with Sergei, it's likely that the service is in a weird state and windows doesn't allow you to change the state.

  • nmaenpaa Profile Picture
    101,172 Moderator on at

    Thanks Sergei & Joris, it indeed seems to have been related to wrong/unexpected status of IIS. Our VM is started before the build, and we have had 15 min lead time between the VM start and build start, and never had any issues. But seems that with 10.0.8 VM it was not enough. Now we increased the time to 20 min and it seems that the problem is gone.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 463 Super User 2026 Season 1

#2
Subra Profile Picture

Subra 409

#3
Martin Dráb Profile Picture

Martin Dráb 280 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans