Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name-template: 'v$RESOLVED_VERSION 🌈'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: '🚀 Features'
labels:
- 'feature'
- 'enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bugfix'
- 'bug'
- title: '🧰 Maintenance'
label: 'chore'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-template: "$MAJOR.$MINOR"
version-resolver:
major:
labels:
- 'major'
minor:
labels:
- 'minor'
default: minor
template: |
## Changes

$CHANGES
77 changes: 77 additions & 0 deletions .github/workflows/build-and-draft-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Build Bicep and create Release draft

on:
push:
branches: [main]
paths:
- 'workbooks/**'
pull_request:
branches: [main]
paths:
- 'workbooks/**'

# on:
# push:
# # branches to consider in the event; optional, defaults to all
# branches:
# - main
# # pull_request event is required only for autolabeler
# pull_request:
# # Only following types are handled by the action, but one can default to all as well
# types: [opened, reopened, synchronize]
# # pull_request_target event is required for autolabeler to support PRs from forks
# pull_request_target:
# types: [opened, reopened, synchronize]

permissions:
contents: read

jobs:
build-and-attach:
runs-on: ubuntu-latest
steps:
# Checkout code
- uses: actions/checkout@main
# Runs the bicep CLI action - individual files
- name: Run Bicep build
uses: aliencube/bicep-build-actions@v0.3
with:
files: workbooks/azuredeploy.bicep
- name: Upload asset
uses: actions/upload-artifact@v3
with:
name: azuredeploy.json
path: workbooks/azuredeploy.json

update_release_draft:
permissions:
contents: write # for release-drafter/release-drafter to create a github release
pull-requests: write # for release-drafter/release-drafter to add label to PR
runs-on: ubuntu-latest
if: github.event_name == 'push'
needs: build-and-attach
steps:
# (Optional) GitHub Enterprise requires GHE_HOST variable set
#- name: Set GHE_HOST
# run: |
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV

# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
id: release_drafter
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
# with:
# config-name: my-config.yml
# disable-autolabeler: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Download asset
uses: actions/download-artifact@v3
with:
name: azuredeploy.json
- uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ steps.release_drafter.outputs.upload_url }}
asset_path: azuredeploy.json
overwrite: true

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Reliability Workbook

[![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fgithub.com%2Fazure%2Freliability-workbook%2Freleases%2Flatest%2Fdownload%2Fazuredeploy.json)

This workbook focus on the Reliability pillar of the Azure Well-Architected Framework and provides insights into the reliability aspects deployed in Azure subscriptions.

User needs to import the Azure Monitor workbook available in this repository, the detailed instructions have been provided: [Import Workbook](import.md)
Expand Down
24 changes: 24 additions & 0 deletions workbooks/azuredeploy.bicep
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
@description('Name of Workbook')
param workbookDisplayName string = 'FTA - Reliability Workbook'

@description('GUID of Workbook')
param workbookId string = newGuid()

// If change json file name, please change the name of the filename below
var workbookContent = loadJsonContent('Reliability v2.4.json')

resource workbookId_resource 'microsoft.insights/workbooks@2021-03-08' = {
name: workbookId
location: resourceGroup().location
kind: 'shared'
properties: {
displayName: workbookDisplayName
serializedData: string(workbookContent)
version: '1.0'
sourceId: 'azure monitor'
category: 'workbook'
}
dependsOn: []
}

output workbookId string = workbookId_resource.id