Skip to content

Instantly share code, notes, and snippets.

View dajor's full-sized avatar
🏠
Working from home

Daniel Jordan dajor

🏠
Working from home
View GitHub Profile
@dajor
dajor / run.csx
Created October 2, 2018 11:16 — forked from ealsur/run.csx
Azure Cosmos DB + Functions Cookbook —secure access run.csx
#r "Microsoft.Azure.Documents.Client"
using Microsoft.Azure.Documents;
using Microsoft.Azure.Documents.Client;
using System.Net;
using System.Configuration;
using Microsoft.Azure.KeyVault;
using Microsoft.Azure.Services.AppAuthentication;
private static HttpClient httpClient = new HttpClient();
private static DocumentClient client = null;
@dajor
dajor / project.json
Created October 2, 2018 11:15 — forked from ealsur/project.json
Azure Cosmos DB + Functions Cookbook —secure access project.json
{
"frameworks": {
"net46":{
"dependencies": {
"Microsoft.Azure.KeyVault": "2.3.2",
"Microsoft.Azure.Services.AppAuthentication": "1.1.0-preview"
}
}
}
}
@dajor
dajor / function.json
Created October 2, 2018 11:14 — forked from ealsur/function.json
Azure Cosmos DB + Functions Cookbook —secure access function.json
{
"bindings": [
{
"name": "req",
"type": "httpTrigger",
"direction": "in"
},
{
"name": "$return",
"type": "http",