Skip to content

Commit cef6ab5

Browse files
pcostantinimsft-shahins
authored andcommitted
[AzureDeploy] Enable deploy button on newer samples (microsoft#137)
* Renames * Link Node samples * Fix typo * Link C# samples * Fix lint issues * Update to support Azure Deploy button * Update to support Azure Deploy button * Update to support Azure Deploy button * Update to support Azure Deploy button * Update to support Azure Deploy button * Update to support Azure Deploy button * Update to support Azure Deploy button * Update to support Azure Deploy button * Update to support Azure Deploy button * Update to support Azure Deploy button * Update to support Azure Deploy button * Update to support Azure Deploy button * Update to support Azure Deploy button * Update to support Azure Deploy button * Update to support Azure Deploy button * Update to support Azure Deploy button * Update to support Azure Deploy button * Update to support Azure Deploy button * Update to support Azure Deploy button * Add default port
1 parent 1f9149c commit cef6ab5

File tree

68 files changed

+2685
-644
lines changed

Some content is hidden

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

68 files changed

+2685
-644
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
{
2+
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
3+
"contentVersion": "1.0.0.0",
4+
"parameters": {
5+
"siteName": {
6+
"defaultValue": "BotBuilder-Samples",
7+
"type": "string"
8+
},
9+
"hostingPlanName": {
10+
"type": "string"
11+
},
12+
"siteLocation": {
13+
"type": "string"
14+
},
15+
"sku": {
16+
"type": "string",
17+
"allowedValues": [
18+
"Free",
19+
"Shared",
20+
"Basic",
21+
"Standard"
22+
],
23+
"defaultValue": "Free"
24+
},
25+
"workerSize": {
26+
"type": "string",
27+
"allowedValues": [
28+
"0",
29+
"1",
30+
"2"
31+
],
32+
"defaultValue": "0"
33+
},
34+
"repoUrl": {
35+
"type": "string"
36+
},
37+
"branch": {
38+
"type": "string"
39+
},
40+
"Project": {
41+
"type": "string",
42+
"defaultValue": "CSharp/Blog-CustomChannelData"
43+
},
44+
"MicrosoftAppId": {
45+
"type": "string"
46+
},
47+
"MicrosoftAppPassword": {
48+
"type": "string"
49+
}
50+
},
51+
"resources": [
52+
{
53+
"apiVersion": "2014-06-01",
54+
"name": "[parameters('hostingPlanName')]",
55+
"type": "Microsoft.Web/serverFarms",
56+
"location": "[parameters('siteLocation')]",
57+
"properties": {
58+
"name": "[parameters('hostingPlanName')]",
59+
"sku": "[parameters('sku')]",
60+
"workerSize": "[parameters('workerSize')]",
61+
"numberOfWorkers": 1
62+
}
63+
},
64+
{
65+
"apiVersion": "2014-06-01",
66+
"name": "[parameters('siteName')]",
67+
"type": "Microsoft.Web/Sites",
68+
"location": "[parameters('siteLocation')]",
69+
"dependsOn": [
70+
"[concat('Microsoft.Web/serverFarms/', parameters('hostingPlanName'))]"
71+
],
72+
"tags": {
73+
"[concat('hidden-related:', resourceGroup().id, '/providers/Microsoft.Web/serverfarms/', parameters('hostingPlanName'))]": "empty"
74+
},
75+
"properties": {
76+
"name": "[parameters('siteName')]",
77+
"serverFarm": "[parameters('hostingPlanName')]"
78+
},
79+
"resources": [
80+
{
81+
"apiVersion": "2014-04-01",
82+
"type": "config",
83+
"name": "web",
84+
"dependsOn": [
85+
"[concat('Microsoft.Web/Sites/', parameters('siteName'))]"
86+
],
87+
"properties": {
88+
"appSettings": [
89+
{
90+
"name": "Project",
91+
"value": "[parameters('Project')]"
92+
},
93+
{
94+
"name": "MicrosoftAppId",
95+
"value": "[parameters('MicrosoftAppId')]"
96+
},
97+
{
98+
"name": "MicrosoftAppPassword",
99+
"value": "[parameters('MicrosoftAppPassword')]"
100+
}
101+
]
102+
}
103+
},
104+
{
105+
"apiVersion": "2014-04-01",
106+
"name": "web",
107+
"type": "sourcecontrols",
108+
"dependsOn": [
109+
"[resourceId('Microsoft.Web/Sites', parameters('siteName'))]",
110+
"[concat('Microsoft.Web/Sites/', parameters('siteName'), '/config/web')]"
111+
],
112+
"properties": {
113+
"RepoUrl": "[parameters('repoUrl')]",
114+
"branch": "[parameters('branch')]",
115+
"IsManualIntegration": true
116+
}
117+
}
118+
]
119+
}
120+
]
121+
}

CSharp/Blog-LUISActionBinding/LuisActions.Samples.Bot/Web.config

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
<add key="MicrosoftAppId" value="" />
1111
<add key="MicrosoftAppPassword" value="" />
1212

13-
<add key="LUIS_SubscriptionKey" value="YourSubscriptionKey" />
14-
<add key="LUIS_ModelId" value="YourModelId" />
13+
<add key="LUIS_SubscriptionKey" value="" />
14+
<add key="LUIS_ModelId" value="" />
1515
</appSettings>
1616
<!--
1717
For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.

CSharp/Blog-LUISActionBinding/README.md

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
A sample that contains a core implementation for doing LUIS Action Binding using the [Microsoft.Cognitive.LUIS.ActionBinding](Microsoft.Cognitive.LUIS.ActionBinding) framework in order to handle LUIS intents taking a service result as input. In addition, the solution contains sample Actions ([LuisActions.Samples.Shared](LuisActions.Samples.Shared)) that are commonly shared, and shows how to integrate them in a console, a bot and a ASP.NET MVC applications.
44

5+
[![Deploy to Azure][Deploy Button]][Deploy CSharp/LUISActionBinding]
6+
7+
[Deploy Button]: https://azuredeploy.net/deploybutton.png
8+
[Deploy CSharp/LUISActionBinding]: https://azuredeploy.net
9+
510
### Prerequisites
611

712
The minimum prerequisites to run this sample are:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
{
2+
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
3+
"contentVersion": "1.0.0.0",
4+
"parameters": {
5+
"siteName": {
6+
"defaultValue": "BotBuilder-Samples",
7+
"type": "string"
8+
},
9+
"hostingPlanName": {
10+
"type": "string"
11+
},
12+
"siteLocation": {
13+
"type": "string"
14+
},
15+
"sku": {
16+
"type": "string",
17+
"allowedValues": [
18+
"Free",
19+
"Shared",
20+
"Basic",
21+
"Standard"
22+
],
23+
"defaultValue": "Free"
24+
},
25+
"workerSize": {
26+
"type": "string",
27+
"allowedValues": [
28+
"0",
29+
"1",
30+
"2"
31+
],
32+
"defaultValue": "0"
33+
},
34+
"repoUrl": {
35+
"type": "string"
36+
},
37+
"branch": {
38+
"type": "string"
39+
},
40+
"Project": {
41+
"type": "string",
42+
"defaultValue": "CSharp/Blog-LUISActionBinding/LuisActions.Samples.Bot"
43+
},
44+
"MicrosoftAppId": {
45+
"type": "string"
46+
},
47+
"MicrosoftAppPassword": {
48+
"type": "string"
49+
},
50+
"LUIS_SubscriptionKey": {
51+
"type": "string"
52+
},
53+
"LUIS_ModelId": {
54+
"type": "string"
55+
}
56+
},
57+
"resources": [
58+
{
59+
"apiVersion": "2014-06-01",
60+
"name": "[parameters('hostingPlanName')]",
61+
"type": "Microsoft.Web/serverFarms",
62+
"location": "[parameters('siteLocation')]",
63+
"properties": {
64+
"name": "[parameters('hostingPlanName')]",
65+
"sku": "[parameters('sku')]",
66+
"workerSize": "[parameters('workerSize')]",
67+
"numberOfWorkers": 1
68+
}
69+
},
70+
{
71+
"apiVersion": "2014-06-01",
72+
"name": "[parameters('siteName')]",
73+
"type": "Microsoft.Web/Sites",
74+
"location": "[parameters('siteLocation')]",
75+
"dependsOn": [
76+
"[concat('Microsoft.Web/serverFarms/', parameters('hostingPlanName'))]"
77+
],
78+
"tags": {
79+
"[concat('hidden-related:', resourceGroup().id, '/providers/Microsoft.Web/serverfarms/', parameters('hostingPlanName'))]": "empty"
80+
},
81+
"properties": {
82+
"name": "[parameters('siteName')]",
83+
"serverFarm": "[parameters('hostingPlanName')]"
84+
},
85+
"resources": [
86+
{
87+
"apiVersion": "2014-04-01",
88+
"type": "config",
89+
"name": "web",
90+
"dependsOn": [
91+
"[concat('Microsoft.Web/Sites/', parameters('siteName'))]"
92+
],
93+
"properties": {
94+
"appSettings": [
95+
{
96+
"name": "Project",
97+
"value": "[parameters('Project')]"
98+
},
99+
{
100+
"name": "MicrosoftAppId",
101+
"value": "[parameters('MicrosoftAppId')]"
102+
},
103+
{
104+
"name": "MicrosoftAppPassword",
105+
"value": "[parameters('MicrosoftAppPassword')]"
106+
},
107+
{
108+
"name": "LUIS_SubscriptionKey",
109+
"value": "[parameters('LUIS_SubscriptionKey')]"
110+
},
111+
{
112+
"name": "LUIS_ModelId",
113+
"value": "[parameters('LUIS_ModelId')]"
114+
}
115+
]
116+
}
117+
},
118+
{
119+
"apiVersion": "2014-04-01",
120+
"name": "web",
121+
"type": "sourcecontrols",
122+
"dependsOn": [
123+
"[resourceId('Microsoft.Web/Sites', parameters('siteName'))]",
124+
"[concat('Microsoft.Web/Sites/', parameters('siteName'), '/config/web')]"
125+
],
126+
"properties": {
127+
"RepoUrl": "[parameters('repoUrl')]",
128+
"branch": "[parameters('branch')]",
129+
"IsManualIntegration": true
130+
}
131+
}
132+
]
133+
}
134+
]
135+
}

CSharp/capability-SimpleTaskAutomation/README.md

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
A sample bot showing how to do simple task automation scenarios.
44

5+
[![Deploy to Azure][Deploy Button]][Deploy CSharp/SimpleTaskAutomation]
6+
7+
[Deploy Button]: https://azuredeploy.net/deploybutton.png
8+
[Deploy CSharp/SimpleTaskAutomation]: https://azuredeploy.net
9+
510
### Prerequisites
611

712
The minimum prerequisites to run this sample are:

0 commit comments

Comments
 (0)