Sharath Chandra
Sharath Chandra

Reputation: 704

Unable to execute IIS Administration commands on remote machine from Visual Studio Team Services (was Visual Studio Online) Build

I have a set of power-shell scripts for managing the entire deployment. We migrated our entire codebase to Visual Studio Team Services (previously VS Online) and I am trying to get the entire deployment automation.

The steps I am following on high level are :

Build Steps

The issue I am facing is - none of the IIS Administration commands are executing on the remote machine. e.g. Remove-WebSite/Remove-WebAppPool are not working.

I do not see any error also being thrown by these commands.

Is there anything specific which needs to be enabled to run these commands.

NOTE : I am able to get the same scripts working fine when I run from the server directly. The issue is only when I am using the run 'powershell on target machine' on build steps of Team Services.

Upvotes: 0

Views: 135

Answers (1)

starian chen-MSFT
starian chen-MSFT

Reputation: 33708

Based on your comment, the solution is run quickconfig on winrm and restart the machine.

Upvotes: 1

Related Questions