From cef6ab5730ec80ecc2f4186cbcec18f0e49152bb Mon Sep 17 00:00:00 2001 From: Pablo Costantini Date: Mon, 10 Jul 2017 17:14:59 -0300 Subject: [PATCH] [AzureDeploy] Enable deploy button on newer samples (#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 --- .../Blog-CustomChannelData/azuredeploy.json | 121 ++++++++ .../LuisActions.Samples.Bot/Web.config | 4 +- CSharp/Blog-LUISActionBinding/README.md | 5 + .../Blog-LUISActionBinding/azuredeploy.json | 135 +++++++++ .../capability-SimpleTaskAutomation/README.md | 5 + .../azuredeploy.json | 121 ++++++++ CSharp/core-BasicMultiDialog/README.md | 7 +- CSharp/core-BasicMultiDialog/azuredeploy.json | 121 ++++++++ CSharp/core-GlobalMessageHandlers/README.md | 5 + .../azuredeploy.json | 121 ++++++++ CSharp/core-Middleware/README.md | 5 + .../azuredeploy.json | 2 +- CSharp/demo-CardsAttachments/README.md | 2 +- CSharp/demo-CardsAttachments/azuredeploy.json | 128 ++++++++ .../public-TestBot/Assets/CSharpCode.xml | 22 +- .../public-TestBot/TestBot.csproj | 48 +-- .../{ => public-TestBot}/TestBot.sln | 10 +- CSharp/demo-RollerSkill/README.md | 5 + CSharp/demo-RollerSkill/RollerSkillBot.csproj | 6 +- CSharp/demo-RollerSkill/azuredeploy.json | 121 ++++++++ CSharp/sample-KnowledgeBot/.gitignore | 275 ------------------ .../AzureSearchBot/Web.config | 6 +- .../{readme.md => README.md} | 5 + CSharp/sample-KnowledgeBot/azuredeploy.json | 142 +++++++++ .../data/classicalMusicians.json | 116 ++++++++ CSharp/sample-payments/.gitignore | 239 --------------- CSharp/sample-payments/README.md | 5 + CSharp/sample-payments/azuredeploy.json | 143 +++++++++ CSharp/skype-CallingBot/README.md | 5 + CSharp/skype-CallingBot/azuredeploy.json | 135 +++++++++ Node/blog-customChannelData/.env | 7 +- .../{node_custom_channel.js => app.js} | 14 +- Node/blog-customChannelData/azuredeploy.json | 129 ++++++++ .../.env | 0 .../capability-SimpleTaskAutomation/README.md | 5 + .../azuredeploy.json | 129 ++++++++ Node/capability-middlewareLogging/.env | 4 + Node/capability-middlewareLogging/README.md | 5 + Node/capability-middlewareLogging/app.js | 3 + .../azuredeploy.json | 129 ++++++++ .../capability-middlewareLogging/package.json | 1 + Node/core-ProgressDialog/.env | 4 + .../README.md | 0 .../app.js | 0 .../azuredeploy.json | 0 .../package.json | 0 Node/core-basicMultiDialog/.env | 3 + Node/core-basicMultiDialog/.gitignore | 2 - Node/core-basicMultiDialog/README.md | 5 + Node/core-basicMultiDialog/app.js | 6 +- Node/core-basicMultiDialog/azuredeploy.json | 129 ++++++++ Node/core-basicMultiDialog/package.json | 9 +- Node/core-globalMessageHandlers/.env | 3 + Node/core-globalMessageHandlers/.gitignore | 2 - Node/core-globalMessageHandlers/README.md | 5 + Node/core-globalMessageHandlers/app.js | 6 +- .../azuredeploy.json | 129 ++++++++ Node/core-globalMessageHandlers/package.json | 9 +- Node/sample-knowledgeBot/.env | 8 + Node/sample-knowledgeBot/.gitignore | 45 --- .../{readme.md => README.md} | 7 +- Node/sample-knowledgeBot/app.js | 4 +- Node/sample-knowledgeBot/azuredeploy.json | 150 ++++++++++ .../data/classicalMusicians.json | 116 ++++++++ Node/sample-knowledgeBot/package.json | 1 + Node/sample-payments/README.md | 5 + Node/sample-payments/azuredeploy.json | 151 ++++++++++ README.md | 39 ++- 68 files changed, 2685 insertions(+), 644 deletions(-) create mode 100644 CSharp/Blog-CustomChannelData/azuredeploy.json create mode 100644 CSharp/Blog-LUISActionBinding/azuredeploy.json create mode 100644 CSharp/capability-SimpleTaskAutomation/azuredeploy.json create mode 100644 CSharp/core-BasicMultiDialog/azuredeploy.json create mode 100644 CSharp/core-GlobalMessageHandlers/azuredeploy.json rename CSharp/{demo-CardsAttachments/public-TestBot => core-Middleware}/azuredeploy.json (98%) create mode 100644 CSharp/demo-CardsAttachments/azuredeploy.json rename CSharp/demo-CardsAttachments/{ => public-TestBot}/TestBot.sln (87%) create mode 100644 CSharp/demo-RollerSkill/azuredeploy.json delete mode 100644 CSharp/sample-KnowledgeBot/.gitignore rename CSharp/sample-KnowledgeBot/{readme.md => README.md} (98%) create mode 100644 CSharp/sample-KnowledgeBot/azuredeploy.json create mode 100644 CSharp/sample-KnowledgeBot/data/classicalMusicians.json delete mode 100644 CSharp/sample-payments/.gitignore create mode 100644 CSharp/sample-payments/azuredeploy.json create mode 100644 CSharp/skype-CallingBot/azuredeploy.json rename Node/blog-customChannelData/{node_custom_channel.js => app.js} (88%) create mode 100644 Node/blog-customChannelData/azuredeploy.json rename Node/{core-ProgressDIalog => capability-SimpleTaskAutomation}/.env (100%) create mode 100644 Node/capability-SimpleTaskAutomation/azuredeploy.json create mode 100644 Node/capability-middlewareLogging/.env create mode 100644 Node/capability-middlewareLogging/azuredeploy.json create mode 100644 Node/core-ProgressDialog/.env rename Node/{core-ProgressDIalog => core-ProgressDialog}/README.md (100%) rename Node/{core-ProgressDIalog => core-ProgressDialog}/app.js (100%) rename Node/{core-ProgressDIalog => core-ProgressDialog}/azuredeploy.json (100%) rename Node/{core-ProgressDIalog => core-ProgressDialog}/package.json (100%) create mode 100644 Node/core-basicMultiDialog/.env delete mode 100644 Node/core-basicMultiDialog/.gitignore create mode 100644 Node/core-basicMultiDialog/azuredeploy.json create mode 100644 Node/core-globalMessageHandlers/.env delete mode 100644 Node/core-globalMessageHandlers/.gitignore create mode 100644 Node/core-globalMessageHandlers/azuredeploy.json create mode 100644 Node/sample-knowledgeBot/.env delete mode 100644 Node/sample-knowledgeBot/.gitignore rename Node/sample-knowledgeBot/{readme.md => README.md} (98%) create mode 100644 Node/sample-knowledgeBot/azuredeploy.json create mode 100644 Node/sample-knowledgeBot/data/classicalMusicians.json create mode 100644 Node/sample-payments/azuredeploy.json diff --git a/CSharp/Blog-CustomChannelData/azuredeploy.json b/CSharp/Blog-CustomChannelData/azuredeploy.json new file mode 100644 index 0000000000..03eb2ffe37 --- /dev/null +++ b/CSharp/Blog-CustomChannelData/azuredeploy.json @@ -0,0 +1,121 @@ +{ + "$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "siteName": { + "defaultValue": "BotBuilder-Samples", + "type": "string" + }, + "hostingPlanName": { + "type": "string" + }, + "siteLocation": { + "type": "string" + }, + "sku": { + "type": "string", + "allowedValues": [ + "Free", + "Shared", + "Basic", + "Standard" + ], + "defaultValue": "Free" + }, + "workerSize": { + "type": "string", + "allowedValues": [ + "0", + "1", + "2" + ], + "defaultValue": "0" + }, + "repoUrl": { + "type": "string" + }, + "branch": { + "type": "string" + }, + "Project": { + "type": "string", + "defaultValue": "CSharp/Blog-CustomChannelData" + }, + "MicrosoftAppId": { + "type": "string" + }, + "MicrosoftAppPassword": { + "type": "string" + } + }, + "resources": [ + { + "apiVersion": "2014-06-01", + "name": "[parameters('hostingPlanName')]", + "type": "Microsoft.Web/serverFarms", + "location": "[parameters('siteLocation')]", + "properties": { + "name": "[parameters('hostingPlanName')]", + "sku": "[parameters('sku')]", + "workerSize": "[parameters('workerSize')]", + "numberOfWorkers": 1 + } + }, + { + "apiVersion": "2014-06-01", + "name": "[parameters('siteName')]", + "type": "Microsoft.Web/Sites", + "location": "[parameters('siteLocation')]", + "dependsOn": [ + "[concat('Microsoft.Web/serverFarms/', parameters('hostingPlanName'))]" + ], + "tags": { + "[concat('hidden-related:', resourceGroup().id, '/providers/Microsoft.Web/serverfarms/', parameters('hostingPlanName'))]": "empty" + }, + "properties": { + "name": "[parameters('siteName')]", + "serverFarm": "[parameters('hostingPlanName')]" + }, + "resources": [ + { + "apiVersion": "2014-04-01", + "type": "config", + "name": "web", + "dependsOn": [ + "[concat('Microsoft.Web/Sites/', parameters('siteName'))]" + ], + "properties": { + "appSettings": [ + { + "name": "Project", + "value": "[parameters('Project')]" + }, + { + "name": "MicrosoftAppId", + "value": "[parameters('MicrosoftAppId')]" + }, + { + "name": "MicrosoftAppPassword", + "value": "[parameters('MicrosoftAppPassword')]" + } + ] + } + }, + { + "apiVersion": "2014-04-01", + "name": "web", + "type": "sourcecontrols", + "dependsOn": [ + "[resourceId('Microsoft.Web/Sites', parameters('siteName'))]", + "[concat('Microsoft.Web/Sites/', parameters('siteName'), '/config/web')]" + ], + "properties": { + "RepoUrl": "[parameters('repoUrl')]", + "branch": "[parameters('branch')]", + "IsManualIntegration": true + } + } + ] + } + ] +} \ No newline at end of file diff --git a/CSharp/Blog-LUISActionBinding/LuisActions.Samples.Bot/Web.config b/CSharp/Blog-LUISActionBinding/LuisActions.Samples.Bot/Web.config index a35c784f28..cf7e6d928e 100644 --- a/CSharp/Blog-LUISActionBinding/LuisActions.Samples.Bot/Web.config +++ b/CSharp/Blog-LUISActionBinding/LuisActions.Samples.Bot/Web.config @@ -10,8 +10,8 @@ - - + +