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?

More than 5 years have passed since last update.

Azure DevOps と Application Insight を連携させてみる

Posted at

今回は、Azure DevOps と Application Insight を連携してみます。

前提条件

Azure DevOps で 二つの WebApp を管理/ビルドしていることを前提とします。今回は以下の記事で実施したものをそのまま使用します。
Azure DevOps で Release Line をカスタマイズし手動承認ができるようにする
https://qiita.com/komiyasa/items/505bf7c4c176b00f7e7c

上記に加えて Application Insight をデプロイしておきます。これを WebApp の Application Insight の Connection String に入力します。WebApp のポータルページから Application Insight を有効化する方法もありますが、今回は勉強も兼ねて Application Insight を別リソースとして作成します。以下記事が参考になります。
Azure App Service のパフォーマンスの監視
https://docs.microsoft.com/ja-jp/azure/azure-monitor/app/azure-web-apps

チームのダッシュボードを更新する

Azure DevOps の ダッシュボードに「Release Pipeline Overview」 Widget を追加します。
image.png
デフォルトの値で入力すると、リリースの状況の Widget が追加されます。
image.png

Application Insights の Widget を追加する

Azure DevOps の Dashboard から Application Insights を検索して追加します。追加されていない場合は、拡張機能ポータル(Visuatu Studio の MarketPlace)から Application Insights を Install します。
image.png

Install が出来たら、Application Insights 側に API Key を作成します。Azure Portal から 該当の Application Insight にアクセスし、 Access Key から API Key の発行を選択します。すると、API Key が発行されるので、それをWidget の中に挿入するだけです。
image.png
これでダッシュボードにアプリケーション Insight から抽出した値を入力することができました。(時間がかかるので下の画像にはまだ数字が流し込まれていないです)
image.png

参考

Azure App Service のパフォーマンスの監視
https://docs.microsoft.com/ja-jp/azure/azure-monitor/app/azure-web-apps

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?