O
Onki
Guest
Onki Asks: how to install azure functions on apple M1 pro, facing issues when installed with Rosetta
I just had my first Mac book but that too with M1 processor and since then I am struggling with software compatibility issues.
Considering that I dont have much experience with Mac, I really need some help in resolving this issue.
I want to run azure functions on VS Code locally and for that, I need python, VS Code and azure tools but I kept on getting errors saying that Architecture ARM is not supported for language python.
I tried with python 3.8, 3.9 and 3.10 (3.10 was not accepted by VS Code.)
So, now what I understand is that using Rosetta, we can use the same softwares which we use on intel processor, so I followed below protocol for that.
-If you come from bash you might have to change your $PATH.
-need this for x86_64 brew
export PATH=$HOME/bin:/usr/local/bin:$PATH alias axbrew='arch -x86_64 /usr/local/homebrew/bin/brew'
LINK I referred for this: How to Install x86_64 Homebrew Packages on Apple M1 MacBook
so, now I thought I am finally done.
but still I keep getting this error from VS Code. VS code doesnt recognize the azure tools functions I installed.
I tried with VSCode universal, for intel etc, but still the same.
Any leads on why I am facing this issue and how to come out of it.

I just had my first Mac book but that too with M1 processor and since then I am struggling with software compatibility issues.
Considering that I dont have much experience with Mac, I really need some help in resolving this issue.
I want to run azure functions on VS Code locally and for that, I need python, VS Code and azure tools but I kept on getting errors saying that Architecture ARM is not supported for language python.
I tried with python 3.8, 3.9 and 3.10 (3.10 was not accepted by VS Code.)
So, now what I understand is that using Rosetta, we can use the same softwares which we use on intel processor, so I followed below protocol for that.
- installed Rosetta : /usr/sbin/softwareupdate --install-rosetta
- /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- cd ~/Downloads
- mkdir homebrew
- curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew
- sudo mv homebrew /usr/local/homebrew
- export PATH=$HOME/bin:/usr/local/bin:$PATH
- Let’s add an alias and path in the ~/.zshrc file:
-If you come from bash you might have to change your $PATH.
-need this for x86_64 brew
export PATH=$HOME/bin:/usr/local/bin:$PATH alias axbrew='arch -x86_64 /usr/local/homebrew/bin/brew'
LINK I referred for this: How to Install x86_64 Homebrew Packages on Apple M1 MacBook
- Now you can install apps for Intel processors: axbrew install package-name
so, now I thought I am finally done.
- I installed python -> axbrew install python@3.9
- I downloaded VS Code Universal.
- ran the function, it threw error for "you must have download azure function core tools". Used below commands to download it : [IMG alt="-[![enter image description here][1]][1]
[![enter image description here][2]][2]"]https://i.stack.imgur.com/u7V98.png[/IMG]
but still I keep getting this error from VS Code. VS code doesnt recognize the azure tools functions I installed.
I tried with VSCode universal, for intel etc, but still the same.
Any leads on why I am facing this issue and how to come out of it.

SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your thoughts here to help others.