Skip to content

Commit 5e7aff1

Browse files
committed
Adding Powershell Http sample, and making .json file formatting consistent.
1 parent 7cdf784 commit 5e7aff1

File tree

93 files changed

+981
-948
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+981
-948
lines changed

WebJobs.Script.sln

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 14
4-
VisualStudioVersion = 14.0.25123.0
4+
VisualStudioVersion = 14.0.24720.0
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebJobs.Script", "src\WebJobs.Script\WebJobs.Script.csproj", "{1DC670CD-F42F-4D8F-97BD-0E1AA8221094}"
77
EndProject
@@ -244,6 +244,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "WebHook-Azure-CSharp", "Web
244244
sample\WebHook-Azure-CSharp\run.csx = sample\WebHook-Azure-CSharp\run.csx
245245
EndProjectSection
246246
EndProject
247+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "HttpTrigger-Powershell", "HttpTrigger-Powershell", "{BCB7AB10-FDDB-4920-ADB0-E1FE2584CEBF}"
248+
ProjectSection(SolutionItems) = preProject
249+
sample\HttpTrigger-Powershell\function.json = sample\HttpTrigger-Powershell\function.json
250+
sample\HttpTrigger-Powershell\run.ps1 = sample\HttpTrigger-Powershell\run.ps1
251+
EndProjectSection
252+
EndProject
247253
Global
248254
GlobalSection(SolutionConfigurationPlatforms) = preSolution
249255
Debug|Any CPU = Debug|Any CPU
@@ -316,5 +322,6 @@ Global
316322
{75DF7C02-CE61-4D1F-83F9-BFBD38AAAF0E} = {FF9C0818-30D3-437A-A62D-7A61CA44F459}
317323
{C963B824-334A-4905-9AC7-2F373E5BC9CA} = {FF9C0818-30D3-437A-A62D-7A61CA44F459}
318324
{94B16BEB-70BD-4357-A21A-D1E70C8CDDF0} = {FF9C0818-30D3-437A-A62D-7A61CA44F459}
325+
{BCB7AB10-FDDB-4920-ADB0-E1FE2584CEBF} = {FF9C0818-30D3-437A-A62D-7A61CA44F459}
319326
EndGlobalSection
320327
EndGlobal
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"bindings": [
3-
{
4-
"type": "apiHubFileTrigger",
5-
"connection": "AzureWebJobsDropBox",
6-
"direction": "in",
7-
"path": "testin/{name}"
8-
},
9-
{
10-
"type": "apiHubFile",
11-
"name": "output",
12-
"connection": "AzureWebJobsDropBox",
13-
"direction": "out",
14-
"path": "testOutBatch/{name}"
15-
}
16-
]
2+
"bindings": [
3+
{
4+
"type": "apiHubFileTrigger",
5+
"connection": "AzureWebJobsDropBox",
6+
"direction": "in",
7+
"path": "testin/{name}"
8+
},
9+
{
10+
"type": "apiHubFile",
11+
"name": "output",
12+
"connection": "AzureWebJobsDropBox",
13+
"direction": "out",
14+
"path": "testOutBatch/{name}"
15+
}
16+
]
1717
}
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
2-
"bindings": [
3-
{
4-
"type": "apiHubFileTrigger",
5-
"connection": "AzureWebJobsDropBox",
6-
"direction": "in",
7-
"path": "test/{name}",
8-
"name": "input"
9-
},
10-
{
11-
"name": "output",
12-
"type": "apiHubFile",
13-
"connection": "AzureWebJobsDropBox",
14-
"direction": "out",
15-
"path": "testOut/{name}"
16-
}
17-
]
2+
"bindings": [
3+
{
4+
"type": "apiHubFileTrigger",
5+
"connection": "AzureWebJobsDropBox",
6+
"direction": "in",
7+
"path": "test/{name}",
8+
"name": "input"
9+
},
10+
{
11+
"name": "output",
12+
"type": "apiHubFile",
13+
"connection": "AzureWebJobsDropBox",
14+
"direction": "out",
15+
"path": "testOut/{name}"
16+
}
17+
]
1818
}
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"bindings": [
3-
{
4-
"type": "apiHubFileTrigger",
5-
"connection": "AzureWebJobsDropBox",
6-
"direction": "in",
7-
"path": "testinnode/{name}"
8-
},
9-
{
10-
"type": "apiHubFile",
11-
"name": "output",
12-
"connection": "AzureWebJobsDropBox",
13-
"direction": "out",
14-
"path": "testoutnode/{name}"
15-
}
16-
]
2+
"bindings": [
3+
{
4+
"type": "apiHubFileTrigger",
5+
"connection": "AzureWebJobsDropBox",
6+
"direction": "in",
7+
"path": "testinnode/{name}"
8+
},
9+
{
10+
"type": "apiHubFile",
11+
"name": "output",
12+
"connection": "AzureWebJobsDropBox",
13+
"direction": "out",
14+
"path": "testoutnode/{name}"
15+
}
16+
]
1717
}
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"bindings": [
3-
{
4-
"type": "blobTrigger",
5-
"direction": "in",
6-
"path": "samples-batch/{name}"
7-
},
8-
{
9-
"type": "blob",
10-
"name": "output",
11-
"direction": "out",
12-
"path": "samples-output/{name}"
13-
}
14-
]
2+
"bindings": [
3+
{
4+
"type": "blobTrigger",
5+
"direction": "in",
6+
"path": "samples-batch/{name}"
7+
},
8+
{
9+
"type": "blob",
10+
"name": "output",
11+
"direction": "out",
12+
"path": "samples-output/{name}"
13+
}
14+
]
1515
}
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
2-
"bindings": [
3-
{
4-
"type": "blobTrigger",
5-
"name": "blob",
6-
"direction": "in",
7-
"path": "samples-input-csharp/{name}"
8-
},
9-
{
10-
"type": "blob",
11-
"name": "output",
12-
"direction": "out",
13-
"path": "samples-output-csharp/{name}"
14-
}
15-
]
2+
"bindings": [
3+
{
4+
"type": "blobTrigger",
5+
"name": "blob",
6+
"direction": "in",
7+
"path": "samples-input-csharp/{name}"
8+
},
9+
{
10+
"type": "blob",
11+
"name": "output",
12+
"direction": "out",
13+
"path": "samples-output-csharp/{name}"
14+
}
15+
]
1616
}

sample/BlobTrigger/function.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"bindings": [
3-
{
4-
"type": "blobTrigger",
5-
"direction": "in",
6-
"path": "samples-input/{name}"
7-
},
8-
{
9-
"type": "blob",
10-
"name": "output",
11-
"direction": "out",
12-
"path": "samples-output/{name}"
13-
}
14-
]
2+
"bindings": [
3+
{
4+
"type": "blobTrigger",
5+
"direction": "in",
6+
"path": "samples-input/{name}"
7+
},
8+
{
9+
"type": "blob",
10+
"name": "output",
11+
"direction": "out",
12+
"path": "samples-output/{name}"
13+
}
14+
]
1515
}
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"bindings": [
3-
{
4-
"type": "queueTrigger",
5-
"direction": "in",
6-
"queueName": "samples-documentdb-csharp"
7-
},
8-
{
9-
"type": "documentdb",
10-
"direction": "out",
11-
"name": "newItem",
12-
"databaseName": "ItemDb",
13-
"collectionName": "ItemCollection",
14-
"createIfNotExists": false
15-
}
16-
]
2+
"bindings": [
3+
{
4+
"type": "queueTrigger",
5+
"direction": "in",
6+
"queueName": "samples-documentdb-csharp"
7+
},
8+
{
9+
"type": "documentdb",
10+
"direction": "out",
11+
"name": "newItem",
12+
"databaseName": "ItemDb",
13+
"collectionName": "ItemCollection",
14+
"createIfNotExists": false
15+
}
16+
]
1717
}
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"bindings": [
3-
{
4-
"type": "queueTrigger",
5-
"direction": "in",
6-
"queueName": "samples-documentdb-node"
7-
},
8-
{
9-
"type": "documentdb",
10-
"direction": "out",
11-
"name": "item",
12-
"databaseName": "ItemDb",
13-
"collectionName": "ItemCollection",
14-
"createIfNotExists": false
15-
}
16-
]
2+
"bindings": [
3+
{
4+
"type": "queueTrigger",
5+
"direction": "in",
6+
"queueName": "samples-documentdb-node"
7+
},
8+
{
9+
"type": "documentdb",
10+
"direction": "out",
11+
"name": "item",
12+
"databaseName": "ItemDb",
13+
"collectionName": "ItemCollection",
14+
"createIfNotExists": false
15+
}
16+
]
1717
}
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"bindings": [
3-
{
4-
"type": "eventHubTrigger",
5-
"direction": "in",
6-
"connection": "AzureWebJobsEventHubReceiver",
7-
"path": "%AzureWebJobsEventHubPath%"
8-
},
9-
{
10-
"type": "eventHub",
11-
"name": "output",
12-
"direction": "out",
13-
"connection": "AzureWebJobsEventHubSender",
14-
"path": "%AzureWebJobsEventHubPath%"
15-
}
16-
]
2+
"bindings": [
3+
{
4+
"type": "eventHubTrigger",
5+
"direction": "in",
6+
"connection": "AzureWebJobsEventHubReceiver",
7+
"path": "%AzureWebJobsEventHubPath%"
8+
},
9+
{
10+
"type": "eventHub",
11+
"name": "output",
12+
"direction": "out",
13+
"connection": "AzureWebJobsEventHubSender",
14+
"path": "%AzureWebJobsEventHubPath%"
15+
}
16+
]
1717
}

0 commit comments

Comments
 (0)