0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Functions が利用しているランタイムを確認する

Last updated at Posted at 2022-01-24

こんなメールが来たので
Azure Functions support for Node 6 is ending on 28 February 2022

一覧確認

shell.sh
ids=`az functionapp list --query '[].id' -o tsv`
while read id
do
  read rg name <<< $(echo $id | awk -F '/' '{print $5, $9}')
  SETTINGS=$(az functionapp config appsettings list -g $rg -n $name --query "[[?name == 'FUNCTIONS_WORKER_RUNTIME'].value, [?name == 'WEBSITE_NODE_DEFAULT_VERSION'].value]" -o tsv)
  FUNCTIONS_WORKER_RUNTIME=$(echo $SETTINGS | head -1)
  WEBSITE_NODE_DEFAULT_VERSION=$(echo $SETTINGS | tail -1)
  LINUXFXVERSION=$(az functionapp config show -g $rg -n $name --query "linuxFxVersion")
  echo $rg, $name, $FUNCTIONS_WORKER_RUNTIME, $WEBSITE_NODE_DEFAULT_VERSION, $LINUXFXVERSION
done << DATA
$ids
DATA
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?