dockerazure-devopsdocker-imageazure-static-web-appbuild-agent

Why does AzureStaticWebApp@0 trigger docker command


I am facing an issue with the task AzureStaticWebApp@0. AzureStaticWebApp@0 uses docker command in the background. See image below: enter image description here

We have been advised to only in-house agents and we don't have any agent which is UNIX based and can run the docker command. The problem this creates is that I need to use different agents for different tasks which is opening up another set of problems (For ex - Azure DevOps + Azure Static Web App - Read deployment token from variables)

My DevOps team has asked me to investigate why AzureStaticWebApp@0 use docker commands in the background.


Solution

  • Refer to this doc: Azure Static Web Apps

    Azure Static Web Apps' build engine runs in a Linux Docker container, so it can only be run on a Linux build agent.

    Since Azure Static Web App depends on Docker environment, it will run docker command in the background.

    And the AzureStaticWebApp task only runs on Linux agents.