Toshcha task is failing in contianer agent

tarun k 405 Reputation points
2025-06-30T06:37:49.85+00:00

I am seeing following error when using container agent and it is workign fine when using windows server

..

Azure DevOps
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Abiola Akinbade 29,490 Reputation points Volunteer Moderator
    2025-06-30T06:58:16.56+00:00

    Hello tarun k,

    Thanks for your question

    Is the task a windows task? If it is then you will need a windows agent not a linux agent.

    The Tosca task is failing in a container agent because it's trying to use Windows file paths (C:\azp\agent\_work\3\s\Main\Resources\logs) in a Linux container environment.

    Maybe you can modify your Tosca task configuration to use relative paths instead of absolute Windows-style paths. For example, change C:\azp\agent_work\3\s\Main\Resources\logs to ./Main/Resources/logs

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.