Skip to content

Instantly share code, notes, and snippets.

Justin Yoo justinyoo

Block or report user

Report or block justinyoo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@justinyoo
justinyoo / filter-recipients.json
Created Aug 13, 2019
Enriching Mail Filtering Rules by Azure Logic Apps
View filter-recipients.json
"Filter_Recipients": {
"type": "Query",
"runAfter": {
"Get_All_Recipients": [
"Succeeded"
]
},
"inputs": {
"from": "@variables('FolderLookupReferences')",
"where": "@contains(outputs('Get_All_Recipients'), item()?.email)"
@justinyoo
justinyoo / e2e-test-build.yaml
Last active Jul 24, 2019
Azure Functions SRE, The First Cut
View e2e-test-build.yaml
# Release Pipeline
- stage: Release
jobs:
- deployment: HostedVs2017
...
variables:
- name: TestRunStatus
value: ''
strategy:
@justinyoo
justinyoo / bolierplate-index.ts
Last active Jul 6, 2019
Building Azure DevOps Extension on Azure DevOps
View bolierplate-index.ts
import * as path from 'path';
import * as tl from 'azure-pipelines-task-lib/task';
async function run() {
}
run();
@justinyoo
justinyoo / az-cli.txt
Last active Apr 22, 2019
6 Ways Passing Secrets to ARM Templates
View az-cli.txt
az group deployment create `
-g "my-resource-group" `
--template-file azuredeploy.json `
--parameters `@azuredeploy.parameters.json `
--parameters servicePrincipalTenantId=$tenantId
@justinyoo
justinyoo / app-module.cs
Last active Aug 15, 2019
Revising Azure Functions Dependency Injection
View app-module.cs
public class AppModule : Module
{
public override void Load(IServiceCollection services)
{
services.AddSingleton<AppSettings>();
services.AddTransient<IGetSamplesFunction, GetSamplesFunction>();
}
}
@justinyoo
justinyoo / local-settings.json
Last active Feb 4, 2019
Introducing Swagger UI on Azure Functions
View local-settings.json
{
"IsEncrypted": false,
"Values": {
...
"OpenApi__Info__Version": "2.0.0",
"OpenApi__Info__Title": "Open API Sample on Azure Functions",
"OpenApi__Info__Description": "A sample API that runs on Azure Functions either 1.x or 2.x using Open API specification.",
"OpenApi__Info__TermsOfService": "https://github.com/aliencube/AzureFunctions.Extensions",
"OpenApi__Info__Contact__Name": "Aliencube Community",
"OpenApi__Info__Contact__Email": "no-reply@aliencube.org",
@justinyoo
justinyoo / functionapp.tf
Created Jan 16, 2019
Terraforming Azure PaaS
View functionapp.tf
# functionapp.tf
#
# Configure the Azure Provider
provider "azurerm" {
version = "=1.20.0"
}
locals {
name = "${var.name}"
location = "${var.location}"
@justinyoo
justinyoo / endpoint.cs
Created Jan 10, 2019
Domain Specific Language with Fluent API
View endpoint.cs
public static IFunctionFactory Factory { get; set; } = new FunctionFactory(new AppModule());
[FunctionName(nameof(XmlToXmlMapperHttpTrigger))]
public static async Task<HttpResponseMessage> Run(
[HttpTrigger(AuthorizationLevel.Function, "post", Route = "mappers/xml/xml")] HttpRequestMessage req,
ILogger log)
{
return result = await Factory.Create<IXmlToXmlMapperFunction, ILogger>(log)
.InvokeAsync<HttpRequestMessage, HttpResponseMessage>(req)
.ConfigureAwait(false);
@justinyoo
justinyoo / extension-object.xml
Created Jan 6, 2019
Building XSL Mapper with Azure Functions
View extension-object.xml
<ExtensionObjects>
<ExtensionObject
Namespace="http://schemas.microsoft.com/BizTalk/2003/ScriptNS0"
AssemblyName="Fully.Qualified.Assembly.Name, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d7e94ac1875c97e9"
ClassName="Fully.Qualified.Class.Name" />
</ExtensionObjects>
@justinyoo
justinyoo / render-swagger-function.cs
Last active Jan 3, 2019
Rendering Swagger Definitions on Azure Functions
View render-swagger-function.cs
public class RenderSwaggerFunction : FunctionBase<ILogger>, IRenderSwaggerFunction
{
private readonly HttpClient _http;
...
public RenderSwaggerFunction(AppSettings settings, HttpClient http)
{
this._http = http ?? throw new ArgumentNullException(nameof(http));
...
}
You can’t perform that action at this time.