I hereby claim:
- I am prombouts on github.
- I am prombouts (https://keybase.io/prombouts) on keybase.
- I have a public key ASA-T-Dd0WYJR_Yww0hANe5oCAPh6NAlzDpL81aeAIuu2wo
To claim this, I am signing this object:
| { | |
| "definition": { | |
| "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", | |
| "actions": { | |
| "Condition": { | |
| "actions": { | |
| "Send_an_email_(V2)": { | |
| "inputs": { | |
| "body": { | |
| "Body": "<p>Warning: RaspberryPi Temperature reached @{variables('Temperature')}</p>", |
| [ | |
| { | |
| "id": "cdd3427b60e26088", | |
| "type": "tab", | |
| "label": "Temp to LogicApp", | |
| "disabled": false, | |
| "info": "", | |
| "env": [] | |
| }, | |
| { |
| #!/bin/bash | |
| echo "Starting..." | |
| # Get all VM usage as json | |
| vmjson=$(az vm list-usage --location westeurope -o json) | |
| # Loop through all items and check whether limit has been reached | |
| # If so, log to DevOps logger so pipeline will reflect warnings or errors | |
| jq -c '.[]' <<< "$vmjson" | while read i; do |
| #!/bin/bash | |
| LATEST_RELEASE=$(curl -s https://checkpoint-api.hashicorp.com/v1/check/terraform | jq -r .current_version) | |
| CURRENT_RELEASE=$(terraform version -json | jq -r .terraform_version) | |
| if [[ ${LATEST_RELEASE} != $CURRENT_RELEASE ]]; then | |
| echo "Installing Terraform ${LATEST_RELEASE}..." | |
| FILENAME=terraform_${LATEST_RELEASE}_linux_amd64.zip | |
| wget https://releases.hashicorp.com/terraform/${LATEST_RELEASE}/$FILENAME | |
| unzip $FILENAME && rm $FILENAME |
| ### | |
| # Example Azure DevOps pipeline accompanying blogpost: https://peterrombouts.nl/2021/05/13/static-code-analysis-of-infrastructure-as-code/ | |
| # Tested up until Kics.io version 1.4.9 | |
| ### | |
| trigger: | |
| - none | |
| pool: | |
| vmImage: 'ubuntu-20.04' |
| { | |
| "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
| "contentVersion": "1.0.0.0", | |
| "parameters": { | |
| "workflows_OutlookSync_name": { | |
| "defaultValue": "OutlookSync", | |
| "type": "String" | |
| }, | |
| "connections_googlecalendar_externalid": { | |
| "defaultValue": "/subscriptions/yoursub/resourceGroups/yourrg/providers/Microsoft.Web/connections/googlecalendar", |
I hereby claim:
To claim this, I am signing this object:
| Workflow Stop-Start-AzureVM-By-Tag | |
| { | |
| Param | |
| ( | |
| [Parameter(Mandatory=$true)][ValidateSet("Start","Stop")] | |
| [String] | |
| $Action, | |
| [Parameter(Mandatory=$true)][ValidateNotNullOrEmpty()] | |
| [String] | |
| $TagName="ScheduledOnOff", |
| { | |
| "data": [ | |
| { | |
| "date": "2017-01-01", | |
| "usage": 1600 | |
| }, | |
| { | |
| "date": "2017-01-02", | |
| "usage": 1542 | |
| }, |
| { | |
| "data": [ | |
| { | |
| "datetime": "2016-10-01 00:15:00+02:00", | |
| "feed-in": 0, | |
| "reading": 5073078, | |
| "usage": 56 | |
| }, | |
| { | |
| "datetime": "2016-10-01 00:30:00+02:00", |