Open dfberry opened 1 year ago
@danieljurek @weikanglim can you try to repro this on your M1/M2's?
@v-xuto can you try repro'ing this?
@v-xuto can you try repro'ing this?
@rajeshkamal5050 We can repro this issue.
Environment:
In addition, when we reopen the todo-nodejs-mongo-swa-func
with devContainer, encountered this error:
Thanks for chatting @dfberry! A couple scenarios to consider here:
azd
without installing azd
on the local machine (container OK)This scenario should work well enough today because our templates supply the .devcontainer
config needed. However, the steps to accomplish this would be:
git clone
the template repoazd auth login
and azd up
, etc. Those should all work in the devcontainer running in emulated x86_64 mode. I'll ensure that's the case. I wonder if our docs should be updated to make this path easier.... Also, we need to figure out if Rosetta should be installed to run containers in emulated mode.
This is the error repro'd above by @v-jiaodi, this should be looked into as well.
bicep build
, when running inside the x86_64 emulated docker container, reliably crashes (using both qemu and using Docker Desktop's experimental Rosetta emulation feature). Running file ~/.azd/bin/bicep
shows that the binary is x86-64
so, given that the container is x86_64, this is the correct binary that azd
is downloading.
We'll need to dig into what's making bicep
fail when running bicep build
in an emulated container. This could be an issue with bicep
, dotnet
which is building the bicep binary, or possibly qemu
.
I also tried switching the devcontainer out of x86_64
mode into the ARM64 mode but that doesn't work because Azure Functions Core Tools aren't available on packages.microsoft.com for ARM64 of the Debian distro we are using. The azure-functions-core-tools releases page on GitHub also only shows binaries for x64 on Linux (no obvious ARM64 support).
Two avenues of further exploration for the bicep crash are:
@danieljurek is this issue still valid? Not seeing much activity here?
@danieljurek https://azure.microsoft.com/en-us/updates/generally-available-azure-functions-support-on-apple-silicon-macs/
We are excited to announce that Azure Functions support on Apple Silicon Macs is now live. Update your Core Tools to the latest version (4.0.5455+) and try it out today!
There's not a release for arm64 linux yet so this does not work in devcontainer.
There's not a release for arm64 linux yet so this does not work in devcontainer.
@danieljurek given the dependency on https://github.com/Azure/azure-functions-core-tools/issues/3112 please pull it when the dep is resolved. Moving to backlog.
Output from
azd version
Runazd version
and copy and paste the output here: azd version 1.1.0 (commit ea9cb12575734ee6a5f99c4d415c1a51d6f32d3e)Describe the bug Description of issue you're seeing...
can't use azd up on Static React Web App + Functions with Node.js API and MongoDB on Azure template
To Reproduce Steps to reproduce the behavior...
Expected behavior Does azd work on Mac M1?
Environment Information on your environment:
Additional context