Skip to content

Instantly share code, notes, and snippets.

Avatar

Peter Rombouts prombouts

View GitHub Profile
@prombouts
prombouts / LogicAppOutlook365ToGoogleCalendar.json
Last active Dec 4, 2019
LogicApp Outlook365 to Google Calendar
View LogicAppOutlook365ToGoogleCalendar.json
{
"$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",
View keybase.md

Keybase proof

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:

@prombouts
prombouts / Stop-Start-AzureVM-By-Tag.ps1
Last active Feb 28, 2019
This PowerShell Workflow runbook connects to Azure using an Automation Credential and Starts/Stops a VM/a list of VMs/All VMs in a Subscription in-parallel.
View Stop-Start-AzureVM-By-Tag.ps1
Workflow Stop-Start-AzureVM-By-Tag
{
Param
(
[Parameter(Mandatory=$true)][ValidateSet("Start","Stop")]
[String]
$Action,
[Parameter(Mandatory=$true)][ValidateNotNullOrEmpty()]
[String]
$TagName="ScheduledOnOff",
View readingsmonth.json
{
"data": [
{
"date": "2017-01-01",
"usage": 1600
},
{
"date": "2017-01-02",
"usage": 1542
},
View readings.json
{
"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",
View getlogicapp.ps1
$name = 'put-your-logicapp-name-here'
$resourcegroup = 'put-resource-group-here'
$subscription = {this_is_your_subscription_guid}
armclient token $subscription |
Get-LogicAppTemplate `
-LogicApp $name `
-ResourceGroup $resourcegroup `
-SubscriptionId $subscription `
-Verbose | Out-File C:\Temp\$name.json
@prombouts
prombouts / Example.cs
Created Oct 22, 2017
Azure Function Example
View Example.cs
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Host;
namespace SogetiBotFunctions
{
public static class Test
{
View LogicApp.json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"_artifactsLocation": {
"type": "string"
},
"_artifactsLocationSasToken": {
"type": "securestring"
},
View LogicApp.parameters.json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"configurationParameters": {
"value": {
"logicAppSkuName": "Standard",
"logicAppOneName": "LogicAppOne",
"logicAppTwoName": "LogicAppTwo"
}
View LogicApp.parameters.json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"logicAppName": {
"value": "LogicAppOne"
},
"NewLogicAppName": {
"value": "LogicAppTwo"
}
You can’t perform that action at this time.