When you use Microsoft-hosted Linux agents, you can create Linux container images for the x64 architecture only (no ARM, no x86).
In order to create IoT Edge modules for other architectures (i.e. ARM), you can use a machine emulator such as QEMU.
Here there is how.
First of all, let’s create a Azure DevOps Pipeline based on the following YAML schema:
Now that you have the pipeline ready, there is only one thing you need to add in your Dockerfile.
That thing is the step for copying the qemu binary in the /usr/bin folder of your base image.
That’s it! You are ready to trigger your pipeline and build the ARM Docker image for your IoT Edge Solution.