WSL2(Ubuntu22.04)にAzure Functions Core Tools4.xをインストールする

WSL2(Ubuntu22.04)にAzure Functions Core Tools4.xをインストールする

ドキュメント通りにAzure Functions Core Tools4.xをインストールします。

Azure Functions Core Tools の操作
Azure Functionsを Azure Functions で実行する前に、ローカル コンピューターのコマンド プロンプトまたはターミナルでコーディングしてテストする方法について説明します。
$ curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
$ sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-$(lsb_release -cs)-prod $(lsb_release -cs) main" > /etc/apt/sources.list.d/dotnetdev.list'
$ sudo apt update
$ sudo apt install azure-functions-core-tools-4

これでfuncコマンドが使用できます。

バージョン確認

funcコマンドのバージョン確認をします。

$ func -v
4.0.5148

コメント

株式会社CONFRAGE ITソリューション事業部をもっと見る

今すぐ購読し、続きを読んで、すべてのアーカイブにアクセスしましょう。

続きを読む

タイトルとURLをコピーしました