Skip to content

Instantly share code, notes, and snippets.

View olafloogman's full-sized avatar

Olaf Loogman olafloogman

  • Sydney, NSW, Australia
View GitHub Profile
[FunctionName("LiquidTransformer")]
public static async Task<HttpResponseMessage> Run([HttpTrigger(AuthorizationLevel.Function, "post", Route = "liquidtransformer/{liquidtransformfilename}")] HttpRequestMessage req,
[Blob("liquid-transforms/{liquidtransformfilename}", FileAccess.Read)] Stream inputBlob,
TraceWriter log)
{
log.Info("C# HTTP trigger function processed a request.");
}
@olafloogman
olafloogman / sendeventhub.py
Last active July 16, 2020 09:58
sendeventhub
#!/user/bin/python
import sys
import azure
import socket
from azure.servicebus import (
_service_bus_error_handler
)
from azure.servicebus.servicebusservice import (
targetScope = 'resourceGroup'
@description('Resource name to check in current scope (resource group)')
param resourceName string
@description('Resource ID of user managed identity with reader permissions in current scope')
param identityPrincipalId string
param location string = resourceGroup().location
param utcValue string = utcNow()