Open gamingrobot opened 3 years ago
It should be noted that removing said empty environment variables as above did allow appcmd to successfully execute.
Under Windows, setting an environment variable to empty string, in either PowerShell or CMD will remove said environment variable (a DOS carryover?). Creating an empty environment variable is incredibly difficult to do in Windows, and many tools downright prevent it (e.g. Docker). This may be a Azure DevOps bug, but it's incredibly difficult to get bugs fixed there, soo...
Azure DevOps sets a few empty environment variables. ServiceMonitor then converts these to an APPCMD command and then APPCMD fails with a configuration error.
ServiceMonitor Output:
Example environment variables:
Example Azure DevOps yaml:
Currently we are running this as a workaround before starting ServiceMonitor