Skip to content

Instantly share code, notes, and snippets.

View olafloogman's full-sized avatar

Olaf Loogman olafloogman

  • Sydney, NSW, Australia
View GitHub Profile
static void Main(string[] args)
{
HttpClient client = new HttpClient();
// STS
string cloud = "https://login.microsoftonline.com";
string tenantId = "e0e04c7d-4d23-4078-9562-cea9be7bffed";
string authority = $"{cloud}/{tenantId}";
// Application
[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.");
}
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()