概要
備忘録となります。azure-functions-core-tools を @3 → @4 にバージョンアップしたときの手順です
実行環境
macOS Monterey 12.3.1
python 3.8.12
Azure CLI 2.34.1
現在の azure-functions-core-tools
$ func -v
3.0.3904
azure-functions-core-tools のバージョンアップ
$ brew tap azure/functions
$ brew install azure-functions-core-tools@4
以下のメッセージが表示されました
==> Downloading https://functionscdn.azureedge.net/public/4.0.3971/Azure.Functions.Cli.osx-x64.4.0.3971.zip
Already downloaded: /Users/ituru/Library/Caches/Homebrew/downloads/f5844b8286814efd53231e309f48565fd8c1d6e34be6b0d6eeec7e864df8ff0b--Azure.Functions.Cli.osx-x64.4.0.3971.zip
==> Installing azure-functions-core-tools@4 from azure/functions
Telemetry
---------
The Azure Functions Core tools collect usage data in order to help us improve your experience.
The data is anonymous and doesn't include any user specific or personal information. The data is collected by Microsoft.
You can opt-out of telemetry by setting the FUNCTIONS_CORE_TOOLS_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/func
Target /usr/local/bin/func
is a symlink belonging to azure-functions-core-tools@3. You can unlink it:
brew unlink azure-functions-core-tools@3
To force the link and overwrite all conflicting files:
brew link --overwrite azure-functions-core-tools@4
To list all files that would be deleted:
brew link --overwrite --dry-run azure-functions-core-tools@4
Possible conflicting files are:
/usr/local/bin/func -> /usr/local/Cellar/azure-functions-core-tools@3/3.0.3904/bin/func
==> Summary
/usr/local/Cellar/azure-functions-core-tools@4/4.0.3971: 2,065 files, 312.0MB, built in 9 seconds
追加で以下を実行
$ brew link --overwrite azure-functions-core-tools@4
無事、バージョンアップできました、、、
$ func -v
4.0.3971
参考記事
以下の記事を参考にさせていただきました。
azure-functions-core-tools 4.0.4736
Azure Functions をローカルでコーディングしてテストする
Azure Functions Core Tools の操作
Azure Functions ランタイム バージョンをターゲットにする方法