Skip to content

Application Insights Annotations

Actions
Writes Annoations to Application Insights
v1
Latest
Star (9)

Application Insights Deploy Annotation Action

A Github Action that creates Deployment annoations in Application Insights

.github/workflows/test.yml

This action allows you to add annotations to the Application Insights timeline so that you with ease can correlate any issues or changes to specific deployments.

Annotation sample

Setup

You need the Application Id for your Application Insights instance as well as an API key. These values are found in the API Access tab. The API key is created by selecting Create API key and then typing a description and selecting Write Annotations. After selecting Generate key you will get the generated API key. It is strongly recommended to add these two as Github secrets and not reference them directly in your workflow.

Inputs

The action accepts the following inputs:

  • applicationId - The Application Id of Application Insights
  • apiKey - An Application Insights API Key with Write Annotations permissions
  • releaseName - The release name to use in the annotation
  • message - An optional message
  • actor - Text to use as created by in the annotation

Sample configuration

- name: Annotate deployment
  uses: wictorwilen/application-insights-action@v1
  id: annotation
  with:
    applicationId: ${{ secrets.APPLICATION_ID }}
    apiKey: ${{secrets.API_KEY}}
    releaseName: ${{ github.event_name }}
    message: ${{ github.event.head_commit.message }}
    actor: ${{ github.actor }}

Application Insights Annotations is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Writes Annoations to Application Insights
v1
Latest

Application Insights Annotations is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.