Not going to lie, I’ve been waiting for this one for a long time!
Since moving (back) to an Apple Mac for Microsoft C# development a few years back, Dev Containers in VS Code have pretty much been at the heart of everything, with the exception of Azure Functions.
Azure Functions Core Tools would never work in Dev Containers on Apple silicon despite looking, trying and hoping that the day would finally come.
At the end of last week that changed; A small announcement was made on the Github issue for this. Excitedly I spent a bot of time over the weekend building up a dev container to test if indeed it would actually work. I’m happy to announce that indeed it does!
Below is the additional code required to build the Core Tools inside the container. Add this to your Dockerfile and rebuild the container.
RUN curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg \
&& sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg \
&& sudo apt-get clean \
&& apt-get update \
&& sudo sh -c 'echo "deb [arch=arm64] https://packages.microsoft.com/debian/$(lsb_release -rs | cut -d'.' -f 1)/prod $(lsb_release -cs) main" > /etc/apt/sources.list.d/dotnetdev.list' \
&& sudo apt-get update \
&& sudo apt-get -y install azure-functions-core-tools-4
I haven’t done a lot of testing at the minute but testing a simple HttpTrigger works fine, and will debug from VS Code.
This only works with .NET 8 at the minute, I’ll do more testing as I get time.
I’ve added a sample project to my Github account if you want to dive in and check out a working version.


Leave a comment