From 0041f91ccdb206767cf589fa54a1794f8855556e Mon Sep 17 00:00:00 2001 From: Thiago Almeida Date: Tue, 7 Mar 2017 08:39:16 -0800 Subject: [PATCH 01/22] Updating to the latest BotBuilder, AuthBot, and DirectLine --- .../AzureBot.Tests.ConsoleConversation.csproj | 2 +- AzureBot.ConsoleConversation/packages.config | 2 +- .../AzureBot.Services.Common.csproj | 12 ++++--- .../Dialogs/AzureBotLuisDialog.cs | 15 +++++++- AzureBot.Services.Common/packages.config | 2 +- .../AzureBot.Services.ResourceGroup.csproj | 34 +++++++++++-------- AzureBot.Services.ResourceGroups/app.config | 10 ++++-- .../packages.config | 10 +++--- .../AzureBot.Services.Automation.csproj | 30 +++++++++------- AzureBot.Services.Runbooks/app.config | 10 ++++-- AzureBot.Services.Runbooks/packages.config | 10 +++--- .../AzureBot.Services.VM.csproj | 30 +++++++++------- AzureBot.Services.VMs/app.config | 10 ++++-- AzureBot.Services.VMs/packages.config | 10 +++--- AzureBot.Tests/AzureBot.Tests.csproj | 2 +- AzureBot.Tests/packages.config | 2 +- AzureBot/AzureBot.csproj | 34 +++++++++++-------- AzureBot/packages.config | 10 +++--- 18 files changed, 142 insertions(+), 93 deletions(-) diff --git a/AzureBot.ConsoleConversation/AzureBot.Tests.ConsoleConversation.csproj b/AzureBot.ConsoleConversation/AzureBot.Tests.ConsoleConversation.csproj index 691617b..e3e5d32 100644 --- a/AzureBot.ConsoleConversation/AzureBot.Tests.ConsoleConversation.csproj +++ b/AzureBot.ConsoleConversation/AzureBot.Tests.ConsoleConversation.csproj @@ -35,7 +35,7 @@ - ..\packages\Microsoft.Bot.Connector.DirectLine.3.0.0-beta\lib\net45\Microsoft.Bot.Connector.DirectLine.dll + ..\packages\Microsoft.Bot.Connector.DirectLine.3.0.0\lib\net45\Microsoft.Bot.Connector.DirectLine.dll True diff --git a/AzureBot.ConsoleConversation/packages.config b/AzureBot.ConsoleConversation/packages.config index 9810bda..ad53fdd 100644 --- a/AzureBot.ConsoleConversation/packages.config +++ b/AzureBot.ConsoleConversation/packages.config @@ -1,6 +1,6 @@  - + \ No newline at end of file diff --git a/AzureBot.Services.Common/AzureBot.Services.Common.csproj b/AzureBot.Services.Common/AzureBot.Services.Common.csproj index 51554cf..c9f6fd5 100644 --- a/AzureBot.Services.Common/AzureBot.Services.Common.csproj +++ b/AzureBot.Services.Common/AzureBot.Services.Common.csproj @@ -57,12 +57,16 @@ ..\packages\Microsoft.Azure.Management.Resources.2.20.0-preview\lib\net40\Microsoft.Azure.ResourceManager.dll True - - ..\packages\Microsoft.Bot.Builder.3.3.3\lib\net46\Microsoft.Bot.Builder.dll + + ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.dll True - - ..\packages\Microsoft.Bot.Builder.3.3.3\lib\net46\Microsoft.Bot.Connector.dll + + ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.Autofac.dll + True + + + ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Connector.dll True diff --git a/AzureBot.Services.Common/Dialogs/AzureBotLuisDialog.cs b/AzureBot.Services.Common/Dialogs/AzureBotLuisDialog.cs index 489997e..7859dfc 100644 --- a/AzureBot.Services.Common/Dialogs/AzureBotLuisDialog.cs +++ b/AzureBot.Services.Common/Dialogs/AzureBotLuisDialog.cs @@ -12,9 +12,22 @@ public class AzureBotLuisDialog : LuisDialog { public async Task CanHandle(string query) { + var tasks = services.Select(s => s.QueryAsync(query, CancellationToken.None)).ToArray(); - var winner = BestResultFrom(await Task.WhenAll(tasks)); + var results = await Task.WhenAll(tasks); + + var winners = from result in results.Select((value, index) => new { value, index }) + let resultWinner = BestIntentFrom(result.value) + where resultWinner != null + select new LuisServiceResult(result.value, resultWinner, this.services[result.index]); + + var winner = this.BestResultFrom(winners); return winner != null && winner.BestIntent.Intent != "None"; + + //var tasks = services.Select(s => s.QueryAsync(query, CancellationToken.None)); + //var winner = BestResultFrom(await Task.WhenAll(tasks)); + //return winner != null && winner.BestIntent.Intent != "None"; + } } } \ No newline at end of file diff --git a/AzureBot.Services.Common/packages.config b/AzureBot.Services.Common/packages.config index 0f481fd..d0b6fec 100644 --- a/AzureBot.Services.Common/packages.config +++ b/AzureBot.Services.Common/packages.config @@ -11,7 +11,7 @@ - + diff --git a/AzureBot.Services.ResourceGroups/AzureBot.Services.ResourceGroup.csproj b/AzureBot.Services.ResourceGroups/AzureBot.Services.ResourceGroup.csproj index bb40053..d9a9534 100644 --- a/AzureBot.Services.ResourceGroups/AzureBot.Services.ResourceGroup.csproj +++ b/AzureBot.Services.ResourceGroups/AzureBot.Services.ResourceGroup.csproj @@ -33,12 +33,12 @@ 4 - - ..\packages\AuthBot.3.3.6-alpha\lib\net40\AuthBot.dll + + ..\packages\AuthBot.3.6.1-alpha\lib\net40\AuthBot.dll True - - ..\packages\Autofac.4.2.0\lib\net45\Autofac.dll + + ..\packages\Autofac.4.3.0\lib\net45\Autofac.dll True @@ -61,12 +61,16 @@ ..\packages\Microsoft.Azure.Management.Resources.2.20.0-preview\lib\net40\Microsoft.Azure.ResourceManager.dll True - - ..\packages\Microsoft.Bot.Builder.3.3.3\lib\net46\Microsoft.Bot.Builder.dll + + ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.dll True - - ..\packages\Microsoft.Bot.Builder.3.3.3\lib\net46\Microsoft.Bot.Connector.dll + + ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.Autofac.dll + True + + + ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Connector.dll True @@ -77,12 +81,12 @@ ..\packages\Microsoft.Identity.Client.1.0.304142221-alpha\lib\net45\Microsoft.Identity.Client.Platform.dll True - - ..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.3.13.7\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll + + ..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.3.13.8\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll True - - ..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.3.13.7\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.Platform.dll + + ..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.3.13.8\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.Platform.dll True @@ -98,7 +102,7 @@ True - ..\packages\Microsoft.Rest.ClientRuntime.2.3.2\lib\net45\Microsoft.Rest.ClientRuntime.dll + ..\packages\Microsoft.Rest.ClientRuntime.2.3.5\lib\net45\Microsoft.Rest.ClientRuntime.dll True @@ -196,7 +200,9 @@ Designer - + + Designer + diff --git a/AzureBot.Services.ResourceGroups/app.config b/AzureBot.Services.ResourceGroups/app.config index 131c6fa..c180f10 100644 --- a/AzureBot.Services.ResourceGroups/app.config +++ b/AzureBot.Services.ResourceGroups/app.config @@ -12,7 +12,7 @@ - + @@ -28,11 +28,11 @@ - + - + @@ -50,6 +50,10 @@ + + + + diff --git a/AzureBot.Services.ResourceGroups/packages.config b/AzureBot.Services.ResourceGroups/packages.config index b2791f0..6d3483f 100644 --- a/AzureBot.Services.ResourceGroups/packages.config +++ b/AzureBot.Services.ResourceGroups/packages.config @@ -1,7 +1,7 @@  - - + + @@ -15,14 +15,14 @@ - + - + - + diff --git a/AzureBot.Services.Runbooks/AzureBot.Services.Automation.csproj b/AzureBot.Services.Runbooks/AzureBot.Services.Automation.csproj index 56d8e5a..1a96a45 100644 --- a/AzureBot.Services.Runbooks/AzureBot.Services.Automation.csproj +++ b/AzureBot.Services.Runbooks/AzureBot.Services.Automation.csproj @@ -33,12 +33,12 @@ 4 - - ..\packages\AuthBot.3.3.6-alpha\lib\net40\AuthBot.dll + + ..\packages\AuthBot.3.6.1-alpha\lib\net40\AuthBot.dll True - - ..\packages\Autofac.4.2.0\lib\net45\Autofac.dll + + ..\packages\Autofac.4.3.0\lib\net45\Autofac.dll True @@ -61,12 +61,16 @@ ..\packages\Microsoft.Azure.Management.Automation.2.0.1\lib\net40\Microsoft.Azure.Management.Automation.dll True - - ..\packages\Microsoft.Bot.Builder.3.3.3\lib\net46\Microsoft.Bot.Builder.dll + + ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.dll True - - ..\packages\Microsoft.Bot.Builder.3.3.3\lib\net46\Microsoft.Bot.Connector.dll + + ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.Autofac.dll + True + + + ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Connector.dll True @@ -77,12 +81,12 @@ ..\packages\Microsoft.Identity.Client.1.0.304142221-alpha\lib\net45\Microsoft.Identity.Client.Platform.dll True - - ..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.3.13.7\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll + + ..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.3.13.8\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll True - - ..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.3.13.7\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.Platform.dll + + ..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.3.13.8\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.Platform.dll True @@ -98,7 +102,7 @@ True - ..\packages\Microsoft.Rest.ClientRuntime.2.3.2\lib\net45\Microsoft.Rest.ClientRuntime.dll + ..\packages\Microsoft.Rest.ClientRuntime.2.3.5\lib\net45\Microsoft.Rest.ClientRuntime.dll True diff --git a/AzureBot.Services.Runbooks/app.config b/AzureBot.Services.Runbooks/app.config index 131c6fa..c180f10 100644 --- a/AzureBot.Services.Runbooks/app.config +++ b/AzureBot.Services.Runbooks/app.config @@ -12,7 +12,7 @@ - + @@ -28,11 +28,11 @@ - + - + @@ -50,6 +50,10 @@ + + + + diff --git a/AzureBot.Services.Runbooks/packages.config b/AzureBot.Services.Runbooks/packages.config index 3849152..ed71f45 100644 --- a/AzureBot.Services.Runbooks/packages.config +++ b/AzureBot.Services.Runbooks/packages.config @@ -1,7 +1,7 @@  - - + + @@ -15,14 +15,14 @@ - + - + - + diff --git a/AzureBot.Services.VMs/AzureBot.Services.VM.csproj b/AzureBot.Services.VMs/AzureBot.Services.VM.csproj index 1a4555d..c3a5f70 100644 --- a/AzureBot.Services.VMs/AzureBot.Services.VM.csproj +++ b/AzureBot.Services.VMs/AzureBot.Services.VM.csproj @@ -33,12 +33,12 @@ 4 - - ..\packages\AuthBot.3.3.6-alpha\lib\net40\AuthBot.dll + + ..\packages\AuthBot.3.6.1-alpha\lib\net40\AuthBot.dll True - - ..\packages\Autofac.4.2.0\lib\net45\Autofac.dll + + ..\packages\Autofac.4.3.0\lib\net45\Autofac.dll True @@ -61,12 +61,16 @@ ..\packages\Microsoft.Azure.Management.Compute.9.1.0\lib\net40\Microsoft.Azure.Management.Compute.dll True - - ..\packages\Microsoft.Bot.Builder.3.3.3\lib\net46\Microsoft.Bot.Builder.dll + + ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.dll True - - ..\packages\Microsoft.Bot.Builder.3.3.3\lib\net46\Microsoft.Bot.Connector.dll + + ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.Autofac.dll + True + + + ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Connector.dll True @@ -77,12 +81,12 @@ ..\packages\Microsoft.Identity.Client.1.0.304142221-alpha\lib\net45\Microsoft.Identity.Client.Platform.dll True - - ..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.3.13.7\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll + + ..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.3.13.8\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll True - - ..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.3.13.7\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.Platform.dll + + ..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.3.13.8\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.Platform.dll True @@ -98,7 +102,7 @@ True - ..\packages\Microsoft.Rest.ClientRuntime.2.3.2\lib\net45\Microsoft.Rest.ClientRuntime.dll + ..\packages\Microsoft.Rest.ClientRuntime.2.3.5\lib\net45\Microsoft.Rest.ClientRuntime.dll True diff --git a/AzureBot.Services.VMs/app.config b/AzureBot.Services.VMs/app.config index 131c6fa..c180f10 100644 --- a/AzureBot.Services.VMs/app.config +++ b/AzureBot.Services.VMs/app.config @@ -12,7 +12,7 @@ - + @@ -28,11 +28,11 @@ - + - + @@ -50,6 +50,10 @@ + + + + diff --git a/AzureBot.Services.VMs/packages.config b/AzureBot.Services.VMs/packages.config index 472137d..e9a6bc7 100644 --- a/AzureBot.Services.VMs/packages.config +++ b/AzureBot.Services.VMs/packages.config @@ -1,7 +1,7 @@  - - + + @@ -15,14 +15,14 @@ - + - + - + diff --git a/AzureBot.Tests/AzureBot.Tests.csproj b/AzureBot.Tests/AzureBot.Tests.csproj index 41ce50c..305ca32 100644 --- a/AzureBot.Tests/AzureBot.Tests.csproj +++ b/AzureBot.Tests/AzureBot.Tests.csproj @@ -37,7 +37,7 @@ - ..\packages\Microsoft.Bot.Connector.DirectLine.3.0.0-beta\lib\net45\Microsoft.Bot.Connector.DirectLine.dll + ..\packages\Microsoft.Bot.Connector.DirectLine.3.0.0\lib\net45\Microsoft.Bot.Connector.DirectLine.dll True diff --git a/AzureBot.Tests/packages.config b/AzureBot.Tests/packages.config index 9810bda..ad53fdd 100644 --- a/AzureBot.Tests/packages.config +++ b/AzureBot.Tests/packages.config @@ -1,6 +1,6 @@  - + \ No newline at end of file diff --git a/AzureBot/AzureBot.csproj b/AzureBot/AzureBot.csproj index e9c1ba2..79b9451 100644 --- a/AzureBot/AzureBot.csproj +++ b/AzureBot/AzureBot.csproj @@ -69,7 +69,9 @@ - + + Designer + Web.config @@ -78,12 +80,12 @@ - - ..\packages\AuthBot.3.3.6-alpha\lib\net40\AuthBot.dll + + ..\packages\AuthBot.3.6.1-alpha\lib\net40\AuthBot.dll True - - ..\packages\Autofac.4.2.0\lib\net45\Autofac.dll + + ..\packages\Autofac.4.3.0\lib\net45\Autofac.dll True @@ -122,12 +124,16 @@ ..\packages\Microsoft.ApplicationInsights.TraceListener.2.1.0\lib\net45\Microsoft.ApplicationInsights.TraceListener.dll True - - ..\packages\Microsoft.Bot.Builder.3.3.3\lib\net46\Microsoft.Bot.Builder.dll + + ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.dll + True + + + ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.Autofac.dll True - - ..\packages\Microsoft.Bot.Builder.3.3.3\lib\net46\Microsoft.Bot.Connector.dll + + ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Connector.dll True @@ -139,12 +145,12 @@ ..\packages\Microsoft.Identity.Client.1.0.304142221-alpha\lib\net45\Microsoft.Identity.Client.Platform.dll True - - ..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.3.13.7\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll + + ..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.3.13.8\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll True - - ..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.3.13.7\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.Platform.dll + + ..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.3.13.8\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.Platform.dll True @@ -160,7 +166,7 @@ True - ..\packages\Microsoft.Rest.ClientRuntime.2.3.2\lib\net45\Microsoft.Rest.ClientRuntime.dll + ..\packages\Microsoft.Rest.ClientRuntime.2.3.5\lib\net45\Microsoft.Rest.ClientRuntime.dll True diff --git a/AzureBot/packages.config b/AzureBot/packages.config index 93c1876..de09b3c 100644 --- a/AzureBot/packages.config +++ b/AzureBot/packages.config @@ -1,7 +1,7 @@  - - + + @@ -20,14 +20,14 @@ - + - + - + From b4a60736b7f70bb854599167302606bb2eec0a62 Mon Sep 17 00:00:00 2001 From: Thiago Almeida Date: Tue, 7 Mar 2017 09:41:23 -0800 Subject: [PATCH 02/22] Updating bindings and autofac --- AzureBot.Services.Common/AzureBot.Services.Common.csproj | 4 ++-- AzureBot.Services.Common/app.config | 2 +- AzureBot.Services.Common/packages.config | 2 +- AzureBot.Services.ResourceGroups/app.config | 2 +- AzureBot.Services.Runbooks/app.config | 2 +- AzureBot.Services.VMs/app.config | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/AzureBot.Services.Common/AzureBot.Services.Common.csproj b/AzureBot.Services.Common/AzureBot.Services.Common.csproj index c9f6fd5..e7fb600 100644 --- a/AzureBot.Services.Common/AzureBot.Services.Common.csproj +++ b/AzureBot.Services.Common/AzureBot.Services.Common.csproj @@ -33,8 +33,8 @@ 4 - - ..\packages\Autofac.4.2.0\lib\net45\Autofac.dll + + ..\packages\Autofac.4.3.0\lib\net45\Autofac.dll True diff --git a/AzureBot.Services.Common/app.config b/AzureBot.Services.Common/app.config index 4359e04..4288ac9 100644 --- a/AzureBot.Services.Common/app.config +++ b/AzureBot.Services.Common/app.config @@ -8,7 +8,7 @@ - + diff --git a/AzureBot.Services.Common/packages.config b/AzureBot.Services.Common/packages.config index d0b6fec..a9a13c1 100644 --- a/AzureBot.Services.Common/packages.config +++ b/AzureBot.Services.Common/packages.config @@ -1,6 +1,6 @@  - + diff --git a/AzureBot.Services.ResourceGroups/app.config b/AzureBot.Services.ResourceGroups/app.config index c180f10..bc72c11 100644 --- a/AzureBot.Services.ResourceGroups/app.config +++ b/AzureBot.Services.ResourceGroups/app.config @@ -48,7 +48,7 @@ - + diff --git a/AzureBot.Services.Runbooks/app.config b/AzureBot.Services.Runbooks/app.config index c180f10..bc72c11 100644 --- a/AzureBot.Services.Runbooks/app.config +++ b/AzureBot.Services.Runbooks/app.config @@ -48,7 +48,7 @@ - + diff --git a/AzureBot.Services.VMs/app.config b/AzureBot.Services.VMs/app.config index c180f10..bc72c11 100644 --- a/AzureBot.Services.VMs/app.config +++ b/AzureBot.Services.VMs/app.config @@ -48,7 +48,7 @@ - + From e2a25953243f54d4fddbc63eb8e470cf78f1091e Mon Sep 17 00:00:00 2001 From: Thiago Almeida Date: Tue, 7 Mar 2017 10:07:53 -0800 Subject: [PATCH 03/22] Updating packages --- .../AzureBot.Tests.ConsoleConversation.csproj | 2 +- AzureBot.ConsoleConversation/packages.config | 2 +- .../AzureBot.Services.Common.csproj | 2 +- AzureBot.Services.Common/packages.config | 2 +- AzureBot.Tests/AzureBot.Tests.csproj | 2 +- AzureBot.Tests/packages.config | 2 +- AzureBot/Web.config | 10 +++++++--- 7 files changed, 13 insertions(+), 9 deletions(-) diff --git a/AzureBot.ConsoleConversation/AzureBot.Tests.ConsoleConversation.csproj b/AzureBot.ConsoleConversation/AzureBot.Tests.ConsoleConversation.csproj index e3e5d32..d0b81f1 100644 --- a/AzureBot.ConsoleConversation/AzureBot.Tests.ConsoleConversation.csproj +++ b/AzureBot.ConsoleConversation/AzureBot.Tests.ConsoleConversation.csproj @@ -39,7 +39,7 @@ True - ..\packages\Microsoft.Rest.ClientRuntime.2.3.2\lib\net45\Microsoft.Rest.ClientRuntime.dll + ..\packages\Microsoft.Rest.ClientRuntime.2.3.5\lib\net45\Microsoft.Rest.ClientRuntime.dll True diff --git a/AzureBot.ConsoleConversation/packages.config b/AzureBot.ConsoleConversation/packages.config index ad53fdd..9ae5a46 100644 --- a/AzureBot.ConsoleConversation/packages.config +++ b/AzureBot.ConsoleConversation/packages.config @@ -1,6 +1,6 @@  - + \ No newline at end of file diff --git a/AzureBot.Services.Common/AzureBot.Services.Common.csproj b/AzureBot.Services.Common/AzureBot.Services.Common.csproj index e7fb600..f20cff5 100644 --- a/AzureBot.Services.Common/AzureBot.Services.Common.csproj +++ b/AzureBot.Services.Common/AzureBot.Services.Common.csproj @@ -74,7 +74,7 @@ True - ..\packages\Microsoft.Rest.ClientRuntime.2.3.2\lib\net45\Microsoft.Rest.ClientRuntime.dll + ..\packages\Microsoft.Rest.ClientRuntime.2.3.5\lib\net45\Microsoft.Rest.ClientRuntime.dll True diff --git a/AzureBot.Services.Common/packages.config b/AzureBot.Services.Common/packages.config index a9a13c1..d94ed96 100644 --- a/AzureBot.Services.Common/packages.config +++ b/AzureBot.Services.Common/packages.config @@ -14,7 +14,7 @@ - + diff --git a/AzureBot.Tests/AzureBot.Tests.csproj b/AzureBot.Tests/AzureBot.Tests.csproj index 305ca32..4512d53 100644 --- a/AzureBot.Tests/AzureBot.Tests.csproj +++ b/AzureBot.Tests/AzureBot.Tests.csproj @@ -42,7 +42,7 @@ - ..\packages\Microsoft.Rest.ClientRuntime.2.3.2\lib\net45\Microsoft.Rest.ClientRuntime.dll + ..\packages\Microsoft.Rest.ClientRuntime.2.3.5\lib\net45\Microsoft.Rest.ClientRuntime.dll True diff --git a/AzureBot.Tests/packages.config b/AzureBot.Tests/packages.config index ad53fdd..9ae5a46 100644 --- a/AzureBot.Tests/packages.config +++ b/AzureBot.Tests/packages.config @@ -1,6 +1,6 @@  - + \ No newline at end of file diff --git a/AzureBot/Web.config b/AzureBot/Web.config index e5cb769..d573520 100644 --- a/AzureBot/Web.config +++ b/AzureBot/Web.config @@ -61,7 +61,7 @@ - + @@ -77,11 +77,11 @@ - + - + @@ -103,6 +103,10 @@ + + + + From 07b2e18bc3d580021055dc0fe0866301efc16f9e Mon Sep 17 00:00:00 2001 From: Thiago Almeida Date: Tue, 7 Mar 2017 10:33:22 -0800 Subject: [PATCH 04/22] Resetting Microsoft.Rest.ClientRuntime to 2.3.2 --- .../AzureBot.Tests.ConsoleConversation.csproj | 2 +- AzureBot.ConsoleConversation/packages.config | 2 +- AzureBot.Services.Common/AzureBot.Services.Common.csproj | 2 +- AzureBot.Services.Common/packages.config | 2 +- .../AzureBot.Services.ResourceGroup.csproj | 4 ++-- AzureBot.Services.ResourceGroups/packages.config | 4 ++-- .../AzureBot.Services.Automation.csproj | 4 ++-- AzureBot.Services.Runbooks/packages.config | 4 ++-- AzureBot.Services.VMs/AzureBot.Services.VM.csproj | 4 ++-- AzureBot.Services.VMs/packages.config | 4 ++-- AzureBot.Tests/AzureBot.Tests.csproj | 2 +- AzureBot.Tests/packages.config | 2 +- AzureBot/AzureBot.csproj | 4 ++-- AzureBot/packages.config | 4 ++-- 14 files changed, 22 insertions(+), 22 deletions(-) diff --git a/AzureBot.ConsoleConversation/AzureBot.Tests.ConsoleConversation.csproj b/AzureBot.ConsoleConversation/AzureBot.Tests.ConsoleConversation.csproj index d0b81f1..e3e5d32 100644 --- a/AzureBot.ConsoleConversation/AzureBot.Tests.ConsoleConversation.csproj +++ b/AzureBot.ConsoleConversation/AzureBot.Tests.ConsoleConversation.csproj @@ -39,7 +39,7 @@ True - ..\packages\Microsoft.Rest.ClientRuntime.2.3.5\lib\net45\Microsoft.Rest.ClientRuntime.dll + ..\packages\Microsoft.Rest.ClientRuntime.2.3.2\lib\net45\Microsoft.Rest.ClientRuntime.dll True diff --git a/AzureBot.ConsoleConversation/packages.config b/AzureBot.ConsoleConversation/packages.config index 9ae5a46..ad53fdd 100644 --- a/AzureBot.ConsoleConversation/packages.config +++ b/AzureBot.ConsoleConversation/packages.config @@ -1,6 +1,6 @@  - + \ No newline at end of file diff --git a/AzureBot.Services.Common/AzureBot.Services.Common.csproj b/AzureBot.Services.Common/AzureBot.Services.Common.csproj index f20cff5..e7fb600 100644 --- a/AzureBot.Services.Common/AzureBot.Services.Common.csproj +++ b/AzureBot.Services.Common/AzureBot.Services.Common.csproj @@ -74,7 +74,7 @@ True - ..\packages\Microsoft.Rest.ClientRuntime.2.3.5\lib\net45\Microsoft.Rest.ClientRuntime.dll + ..\packages\Microsoft.Rest.ClientRuntime.2.3.2\lib\net45\Microsoft.Rest.ClientRuntime.dll True diff --git a/AzureBot.Services.Common/packages.config b/AzureBot.Services.Common/packages.config index d94ed96..a9a13c1 100644 --- a/AzureBot.Services.Common/packages.config +++ b/AzureBot.Services.Common/packages.config @@ -14,7 +14,7 @@ - + diff --git a/AzureBot.Services.ResourceGroups/AzureBot.Services.ResourceGroup.csproj b/AzureBot.Services.ResourceGroups/AzureBot.Services.ResourceGroup.csproj index d9a9534..1b36bf5 100644 --- a/AzureBot.Services.ResourceGroups/AzureBot.Services.ResourceGroup.csproj +++ b/AzureBot.Services.ResourceGroups/AzureBot.Services.ResourceGroup.csproj @@ -34,7 +34,7 @@ - ..\packages\AuthBot.3.6.1-alpha\lib\net40\AuthBot.dll + ..\packages\AuthBot.3.6.0-alpha\lib\net40\AuthBot.dll True @@ -102,7 +102,7 @@ True - ..\packages\Microsoft.Rest.ClientRuntime.2.3.5\lib\net45\Microsoft.Rest.ClientRuntime.dll + ..\packages\Microsoft.Rest.ClientRuntime.2.3.2\lib\net45\Microsoft.Rest.ClientRuntime.dll True diff --git a/AzureBot.Services.ResourceGroups/packages.config b/AzureBot.Services.ResourceGroups/packages.config index 6d3483f..73a7229 100644 --- a/AzureBot.Services.ResourceGroups/packages.config +++ b/AzureBot.Services.ResourceGroups/packages.config @@ -1,6 +1,6 @@  - + @@ -22,7 +22,7 @@ - + diff --git a/AzureBot.Services.Runbooks/AzureBot.Services.Automation.csproj b/AzureBot.Services.Runbooks/AzureBot.Services.Automation.csproj index 1a96a45..6cda321 100644 --- a/AzureBot.Services.Runbooks/AzureBot.Services.Automation.csproj +++ b/AzureBot.Services.Runbooks/AzureBot.Services.Automation.csproj @@ -34,7 +34,7 @@ - ..\packages\AuthBot.3.6.1-alpha\lib\net40\AuthBot.dll + ..\packages\AuthBot.3.6.0-alpha\lib\net40\AuthBot.dll True @@ -102,7 +102,7 @@ True - ..\packages\Microsoft.Rest.ClientRuntime.2.3.5\lib\net45\Microsoft.Rest.ClientRuntime.dll + ..\packages\Microsoft.Rest.ClientRuntime.2.3.2\lib\net45\Microsoft.Rest.ClientRuntime.dll True diff --git a/AzureBot.Services.Runbooks/packages.config b/AzureBot.Services.Runbooks/packages.config index ed71f45..9bed5a6 100644 --- a/AzureBot.Services.Runbooks/packages.config +++ b/AzureBot.Services.Runbooks/packages.config @@ -1,6 +1,6 @@  - + @@ -22,7 +22,7 @@ - + diff --git a/AzureBot.Services.VMs/AzureBot.Services.VM.csproj b/AzureBot.Services.VMs/AzureBot.Services.VM.csproj index c3a5f70..b63a171 100644 --- a/AzureBot.Services.VMs/AzureBot.Services.VM.csproj +++ b/AzureBot.Services.VMs/AzureBot.Services.VM.csproj @@ -34,7 +34,7 @@ - ..\packages\AuthBot.3.6.1-alpha\lib\net40\AuthBot.dll + ..\packages\AuthBot.3.6.0-alpha\lib\net40\AuthBot.dll True @@ -102,7 +102,7 @@ True - ..\packages\Microsoft.Rest.ClientRuntime.2.3.5\lib\net45\Microsoft.Rest.ClientRuntime.dll + ..\packages\Microsoft.Rest.ClientRuntime.2.3.2\lib\net45\Microsoft.Rest.ClientRuntime.dll True diff --git a/AzureBot.Services.VMs/packages.config b/AzureBot.Services.VMs/packages.config index e9a6bc7..857a244 100644 --- a/AzureBot.Services.VMs/packages.config +++ b/AzureBot.Services.VMs/packages.config @@ -1,6 +1,6 @@  - + @@ -22,7 +22,7 @@ - + diff --git a/AzureBot.Tests/AzureBot.Tests.csproj b/AzureBot.Tests/AzureBot.Tests.csproj index 4512d53..305ca32 100644 --- a/AzureBot.Tests/AzureBot.Tests.csproj +++ b/AzureBot.Tests/AzureBot.Tests.csproj @@ -42,7 +42,7 @@ - ..\packages\Microsoft.Rest.ClientRuntime.2.3.5\lib\net45\Microsoft.Rest.ClientRuntime.dll + ..\packages\Microsoft.Rest.ClientRuntime.2.3.2\lib\net45\Microsoft.Rest.ClientRuntime.dll True diff --git a/AzureBot.Tests/packages.config b/AzureBot.Tests/packages.config index 9ae5a46..ad53fdd 100644 --- a/AzureBot.Tests/packages.config +++ b/AzureBot.Tests/packages.config @@ -1,6 +1,6 @@  - + \ No newline at end of file diff --git a/AzureBot/AzureBot.csproj b/AzureBot/AzureBot.csproj index 79b9451..bfd9b8e 100644 --- a/AzureBot/AzureBot.csproj +++ b/AzureBot/AzureBot.csproj @@ -81,7 +81,7 @@ - ..\packages\AuthBot.3.6.1-alpha\lib\net40\AuthBot.dll + ..\packages\AuthBot.3.6.0-alpha\lib\net40\AuthBot.dll True @@ -166,7 +166,7 @@ True - ..\packages\Microsoft.Rest.ClientRuntime.2.3.5\lib\net45\Microsoft.Rest.ClientRuntime.dll + ..\packages\Microsoft.Rest.ClientRuntime.2.3.2\lib\net45\Microsoft.Rest.ClientRuntime.dll True diff --git a/AzureBot/packages.config b/AzureBot/packages.config index de09b3c..a4e9bf7 100644 --- a/AzureBot/packages.config +++ b/AzureBot/packages.config @@ -1,6 +1,6 @@  - + @@ -27,7 +27,7 @@ - + From bd93955ac18a39f5e47080a25a6f2fbf12475225 Mon Sep 17 00:00:00 2001 From: Thiago Almeida Date: Tue, 7 Mar 2017 11:24:54 -0800 Subject: [PATCH 05/22] Updating packages --- AzureBot.ConsoleConversation/App.config | 8 ++++---- .../AzureBot.Services.ResourceGroup.csproj | 4 ++-- AzureBot.Services.ResourceGroups/packages.config | 4 ++-- .../AzureBot.Services.Automation.csproj | 4 ++-- AzureBot.Services.Runbooks/packages.config | 4 ++-- AzureBot.Services.VMs/AzureBot.Services.VM.csproj | 4 ++-- AzureBot.Services.VMs/packages.config | 4 ++-- AzureBot/AzureBot.csproj | 4 ++-- AzureBot/packages.config | 4 ++-- 9 files changed, 20 insertions(+), 20 deletions(-) diff --git a/AzureBot.ConsoleConversation/App.config b/AzureBot.ConsoleConversation/App.config index b1b0c73..8d41ec4 100644 --- a/AzureBot.ConsoleConversation/App.config +++ b/AzureBot.ConsoleConversation/App.config @@ -2,12 +2,12 @@ - - + + - + - + diff --git a/AzureBot.Services.ResourceGroups/AzureBot.Services.ResourceGroup.csproj b/AzureBot.Services.ResourceGroups/AzureBot.Services.ResourceGroup.csproj index 1b36bf5..d9a9534 100644 --- a/AzureBot.Services.ResourceGroups/AzureBot.Services.ResourceGroup.csproj +++ b/AzureBot.Services.ResourceGroups/AzureBot.Services.ResourceGroup.csproj @@ -34,7 +34,7 @@ - ..\packages\AuthBot.3.6.0-alpha\lib\net40\AuthBot.dll + ..\packages\AuthBot.3.6.1-alpha\lib\net40\AuthBot.dll True @@ -102,7 +102,7 @@ True - ..\packages\Microsoft.Rest.ClientRuntime.2.3.2\lib\net45\Microsoft.Rest.ClientRuntime.dll + ..\packages\Microsoft.Rest.ClientRuntime.2.3.5\lib\net45\Microsoft.Rest.ClientRuntime.dll True diff --git a/AzureBot.Services.ResourceGroups/packages.config b/AzureBot.Services.ResourceGroups/packages.config index 73a7229..6d3483f 100644 --- a/AzureBot.Services.ResourceGroups/packages.config +++ b/AzureBot.Services.ResourceGroups/packages.config @@ -1,6 +1,6 @@  - + @@ -22,7 +22,7 @@ - + diff --git a/AzureBot.Services.Runbooks/AzureBot.Services.Automation.csproj b/AzureBot.Services.Runbooks/AzureBot.Services.Automation.csproj index 6cda321..1a96a45 100644 --- a/AzureBot.Services.Runbooks/AzureBot.Services.Automation.csproj +++ b/AzureBot.Services.Runbooks/AzureBot.Services.Automation.csproj @@ -34,7 +34,7 @@ - ..\packages\AuthBot.3.6.0-alpha\lib\net40\AuthBot.dll + ..\packages\AuthBot.3.6.1-alpha\lib\net40\AuthBot.dll True @@ -102,7 +102,7 @@ True - ..\packages\Microsoft.Rest.ClientRuntime.2.3.2\lib\net45\Microsoft.Rest.ClientRuntime.dll + ..\packages\Microsoft.Rest.ClientRuntime.2.3.5\lib\net45\Microsoft.Rest.ClientRuntime.dll True diff --git a/AzureBot.Services.Runbooks/packages.config b/AzureBot.Services.Runbooks/packages.config index 9bed5a6..ed71f45 100644 --- a/AzureBot.Services.Runbooks/packages.config +++ b/AzureBot.Services.Runbooks/packages.config @@ -1,6 +1,6 @@  - + @@ -22,7 +22,7 @@ - + diff --git a/AzureBot.Services.VMs/AzureBot.Services.VM.csproj b/AzureBot.Services.VMs/AzureBot.Services.VM.csproj index b63a171..c3a5f70 100644 --- a/AzureBot.Services.VMs/AzureBot.Services.VM.csproj +++ b/AzureBot.Services.VMs/AzureBot.Services.VM.csproj @@ -34,7 +34,7 @@ - ..\packages\AuthBot.3.6.0-alpha\lib\net40\AuthBot.dll + ..\packages\AuthBot.3.6.1-alpha\lib\net40\AuthBot.dll True @@ -102,7 +102,7 @@ True - ..\packages\Microsoft.Rest.ClientRuntime.2.3.2\lib\net45\Microsoft.Rest.ClientRuntime.dll + ..\packages\Microsoft.Rest.ClientRuntime.2.3.5\lib\net45\Microsoft.Rest.ClientRuntime.dll True diff --git a/AzureBot.Services.VMs/packages.config b/AzureBot.Services.VMs/packages.config index 857a244..e9a6bc7 100644 --- a/AzureBot.Services.VMs/packages.config +++ b/AzureBot.Services.VMs/packages.config @@ -1,6 +1,6 @@  - + @@ -22,7 +22,7 @@ - + diff --git a/AzureBot/AzureBot.csproj b/AzureBot/AzureBot.csproj index bfd9b8e..79b9451 100644 --- a/AzureBot/AzureBot.csproj +++ b/AzureBot/AzureBot.csproj @@ -81,7 +81,7 @@ - ..\packages\AuthBot.3.6.0-alpha\lib\net40\AuthBot.dll + ..\packages\AuthBot.3.6.1-alpha\lib\net40\AuthBot.dll True @@ -166,7 +166,7 @@ True - ..\packages\Microsoft.Rest.ClientRuntime.2.3.2\lib\net45\Microsoft.Rest.ClientRuntime.dll + ..\packages\Microsoft.Rest.ClientRuntime.2.3.5\lib\net45\Microsoft.Rest.ClientRuntime.dll True diff --git a/AzureBot/packages.config b/AzureBot/packages.config index a4e9bf7..de09b3c 100644 --- a/AzureBot/packages.config +++ b/AzureBot/packages.config @@ -1,6 +1,6 @@  - + @@ -27,7 +27,7 @@ - + From 04caaf257a9931801321b2be412a7f0a9b7c5b85 Mon Sep 17 00:00:00 2001 From: Thiago Almeida Date: Tue, 7 Mar 2017 12:14:59 -0800 Subject: [PATCH 06/22] Downgrading Autofac --- AzureBot.Services.Common/AzureBot.Services.Common.csproj | 4 ++-- AzureBot.Services.Common/app.config | 2 +- AzureBot.Services.Common/packages.config | 2 +- .../AzureBot.Services.ResourceGroup.csproj | 6 +++--- AzureBot.Services.ResourceGroups/app.config | 2 +- AzureBot.Services.ResourceGroups/packages.config | 4 ++-- .../AzureBot.Services.Automation.csproj | 6 +++--- AzureBot.Services.Runbooks/app.config | 2 +- AzureBot.Services.Runbooks/packages.config | 4 ++-- AzureBot.Services.VMs/AzureBot.Services.VM.csproj | 6 +++--- AzureBot.Services.VMs/app.config | 2 +- AzureBot.Services.VMs/packages.config | 4 ++-- AzureBot/AzureBot.csproj | 6 +++--- AzureBot/Web.config | 4 ++-- AzureBot/packages.config | 4 ++-- 15 files changed, 29 insertions(+), 29 deletions(-) diff --git a/AzureBot.Services.Common/AzureBot.Services.Common.csproj b/AzureBot.Services.Common/AzureBot.Services.Common.csproj index e7fb600..c297a5b 100644 --- a/AzureBot.Services.Common/AzureBot.Services.Common.csproj +++ b/AzureBot.Services.Common/AzureBot.Services.Common.csproj @@ -33,8 +33,8 @@ 4 - - ..\packages\Autofac.4.3.0\lib\net45\Autofac.dll + + ..\packages\Autofac.4.2.1\lib\net45\Autofac.dll True diff --git a/AzureBot.Services.Common/app.config b/AzureBot.Services.Common/app.config index 4288ac9..e6bcb31 100644 --- a/AzureBot.Services.Common/app.config +++ b/AzureBot.Services.Common/app.config @@ -8,7 +8,7 @@ - + diff --git a/AzureBot.Services.Common/packages.config b/AzureBot.Services.Common/packages.config index a9a13c1..036cd96 100644 --- a/AzureBot.Services.Common/packages.config +++ b/AzureBot.Services.Common/packages.config @@ -1,6 +1,6 @@  - + diff --git a/AzureBot.Services.ResourceGroups/AzureBot.Services.ResourceGroup.csproj b/AzureBot.Services.ResourceGroups/AzureBot.Services.ResourceGroup.csproj index d9a9534..227eeab 100644 --- a/AzureBot.Services.ResourceGroups/AzureBot.Services.ResourceGroup.csproj +++ b/AzureBot.Services.ResourceGroups/AzureBot.Services.ResourceGroup.csproj @@ -34,11 +34,11 @@ - ..\packages\AuthBot.3.6.1-alpha\lib\net40\AuthBot.dll + ..\packages\AuthBot.3.6.0-alpha\lib\net40\AuthBot.dll True - - ..\packages\Autofac.4.3.0\lib\net45\Autofac.dll + + ..\packages\Autofac.4.2.1\lib\net45\Autofac.dll True diff --git a/AzureBot.Services.ResourceGroups/app.config b/AzureBot.Services.ResourceGroups/app.config index bc72c11..b865612 100644 --- a/AzureBot.Services.ResourceGroups/app.config +++ b/AzureBot.Services.ResourceGroups/app.config @@ -12,7 +12,7 @@ - + diff --git a/AzureBot.Services.ResourceGroups/packages.config b/AzureBot.Services.ResourceGroups/packages.config index 6d3483f..a4b482c 100644 --- a/AzureBot.Services.ResourceGroups/packages.config +++ b/AzureBot.Services.ResourceGroups/packages.config @@ -1,7 +1,7 @@  - - + + diff --git a/AzureBot.Services.Runbooks/AzureBot.Services.Automation.csproj b/AzureBot.Services.Runbooks/AzureBot.Services.Automation.csproj index 1a96a45..6eb08ba 100644 --- a/AzureBot.Services.Runbooks/AzureBot.Services.Automation.csproj +++ b/AzureBot.Services.Runbooks/AzureBot.Services.Automation.csproj @@ -34,11 +34,11 @@ - ..\packages\AuthBot.3.6.1-alpha\lib\net40\AuthBot.dll + ..\packages\AuthBot.3.6.0-alpha\lib\net40\AuthBot.dll True - - ..\packages\Autofac.4.3.0\lib\net45\Autofac.dll + + ..\packages\Autofac.4.2.1\lib\net45\Autofac.dll True diff --git a/AzureBot.Services.Runbooks/app.config b/AzureBot.Services.Runbooks/app.config index bc72c11..b865612 100644 --- a/AzureBot.Services.Runbooks/app.config +++ b/AzureBot.Services.Runbooks/app.config @@ -12,7 +12,7 @@ - + diff --git a/AzureBot.Services.Runbooks/packages.config b/AzureBot.Services.Runbooks/packages.config index ed71f45..95ce2ad 100644 --- a/AzureBot.Services.Runbooks/packages.config +++ b/AzureBot.Services.Runbooks/packages.config @@ -1,7 +1,7 @@  - - + + diff --git a/AzureBot.Services.VMs/AzureBot.Services.VM.csproj b/AzureBot.Services.VMs/AzureBot.Services.VM.csproj index c3a5f70..a2330f7 100644 --- a/AzureBot.Services.VMs/AzureBot.Services.VM.csproj +++ b/AzureBot.Services.VMs/AzureBot.Services.VM.csproj @@ -34,11 +34,11 @@ - ..\packages\AuthBot.3.6.1-alpha\lib\net40\AuthBot.dll + ..\packages\AuthBot.3.6.0-alpha\lib\net40\AuthBot.dll True - - ..\packages\Autofac.4.3.0\lib\net45\Autofac.dll + + ..\packages\Autofac.4.2.1\lib\net45\Autofac.dll True diff --git a/AzureBot.Services.VMs/app.config b/AzureBot.Services.VMs/app.config index bc72c11..b865612 100644 --- a/AzureBot.Services.VMs/app.config +++ b/AzureBot.Services.VMs/app.config @@ -12,7 +12,7 @@ - + diff --git a/AzureBot.Services.VMs/packages.config b/AzureBot.Services.VMs/packages.config index e9a6bc7..0be5806 100644 --- a/AzureBot.Services.VMs/packages.config +++ b/AzureBot.Services.VMs/packages.config @@ -1,7 +1,7 @@  - - + + diff --git a/AzureBot/AzureBot.csproj b/AzureBot/AzureBot.csproj index 79b9451..48bb252 100644 --- a/AzureBot/AzureBot.csproj +++ b/AzureBot/AzureBot.csproj @@ -81,11 +81,11 @@ - ..\packages\AuthBot.3.6.1-alpha\lib\net40\AuthBot.dll + ..\packages\AuthBot.3.6.0-alpha\lib\net40\AuthBot.dll True - - ..\packages\Autofac.4.3.0\lib\net45\Autofac.dll + + ..\packages\Autofac.4.2.1\lib\net45\Autofac.dll True diff --git a/AzureBot/Web.config b/AzureBot/Web.config index d573520..9ed0215 100644 --- a/AzureBot/Web.config +++ b/AzureBot/Web.config @@ -17,7 +17,7 @@ - + @@ -61,7 +61,7 @@ - + diff --git a/AzureBot/packages.config b/AzureBot/packages.config index de09b3c..6100736 100644 --- a/AzureBot/packages.config +++ b/AzureBot/packages.config @@ -1,7 +1,7 @@  - - + + From f8b7cd3e998232b5ae117ccbe13a0e329797975e Mon Sep 17 00:00:00 2001 From: Thiago Almeida Date: Tue, 7 Mar 2017 12:30:43 -0800 Subject: [PATCH 07/22] Downgrading Bot.Builder --- .../AzureBot.Services.Common.csproj | 12 ++++-------- AzureBot.Services.Common/packages.config | 2 +- .../AzureBot.Services.ResourceGroup.csproj | 12 ++++-------- AzureBot.Services.ResourceGroups/app.config | 4 ++-- AzureBot.Services.ResourceGroups/packages.config | 2 +- .../AzureBot.Services.Automation.csproj | 12 ++++-------- AzureBot.Services.Runbooks/packages.config | 2 +- AzureBot.Services.VMs/AzureBot.Services.VM.csproj | 12 ++++-------- AzureBot.Services.VMs/packages.config | 2 +- AzureBot/AzureBot.csproj | 12 ++++-------- AzureBot/packages.config | 2 +- 11 files changed, 27 insertions(+), 47 deletions(-) diff --git a/AzureBot.Services.Common/AzureBot.Services.Common.csproj b/AzureBot.Services.Common/AzureBot.Services.Common.csproj index c297a5b..c4a9fa3 100644 --- a/AzureBot.Services.Common/AzureBot.Services.Common.csproj +++ b/AzureBot.Services.Common/AzureBot.Services.Common.csproj @@ -57,16 +57,12 @@ ..\packages\Microsoft.Azure.Management.Resources.2.20.0-preview\lib\net40\Microsoft.Azure.ResourceManager.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.dll + + ..\packages\Microsoft.Bot.Builder.3.5.0\lib\net46\Microsoft.Bot.Builder.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.Autofac.dll - True - - - ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Connector.dll + + ..\packages\Microsoft.Bot.Builder.3.5.0\lib\net46\Microsoft.Bot.Connector.dll True diff --git a/AzureBot.Services.Common/packages.config b/AzureBot.Services.Common/packages.config index 036cd96..623b6f5 100644 --- a/AzureBot.Services.Common/packages.config +++ b/AzureBot.Services.Common/packages.config @@ -11,7 +11,7 @@ - + diff --git a/AzureBot.Services.ResourceGroups/AzureBot.Services.ResourceGroup.csproj b/AzureBot.Services.ResourceGroups/AzureBot.Services.ResourceGroup.csproj index 227eeab..25217a7 100644 --- a/AzureBot.Services.ResourceGroups/AzureBot.Services.ResourceGroup.csproj +++ b/AzureBot.Services.ResourceGroups/AzureBot.Services.ResourceGroup.csproj @@ -61,16 +61,12 @@ ..\packages\Microsoft.Azure.Management.Resources.2.20.0-preview\lib\net40\Microsoft.Azure.ResourceManager.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.dll + + ..\packages\Microsoft.Bot.Builder.3.5.0\lib\net46\Microsoft.Bot.Builder.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.Autofac.dll - True - - - ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Connector.dll + + ..\packages\Microsoft.Bot.Builder.3.5.0\lib\net46\Microsoft.Bot.Connector.dll True diff --git a/AzureBot.Services.ResourceGroups/app.config b/AzureBot.Services.ResourceGroups/app.config index b865612..cdb033c 100644 --- a/AzureBot.Services.ResourceGroups/app.config +++ b/AzureBot.Services.ResourceGroups/app.config @@ -28,11 +28,11 @@ - + - + diff --git a/AzureBot.Services.ResourceGroups/packages.config b/AzureBot.Services.ResourceGroups/packages.config index a4b482c..9812c84 100644 --- a/AzureBot.Services.ResourceGroups/packages.config +++ b/AzureBot.Services.ResourceGroups/packages.config @@ -15,7 +15,7 @@ - + diff --git a/AzureBot.Services.Runbooks/AzureBot.Services.Automation.csproj b/AzureBot.Services.Runbooks/AzureBot.Services.Automation.csproj index 6eb08ba..0b44165 100644 --- a/AzureBot.Services.Runbooks/AzureBot.Services.Automation.csproj +++ b/AzureBot.Services.Runbooks/AzureBot.Services.Automation.csproj @@ -61,16 +61,12 @@ ..\packages\Microsoft.Azure.Management.Automation.2.0.1\lib\net40\Microsoft.Azure.Management.Automation.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.dll + + ..\packages\Microsoft.Bot.Builder.3.5.0\lib\net46\Microsoft.Bot.Builder.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.Autofac.dll - True - - - ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Connector.dll + + ..\packages\Microsoft.Bot.Builder.3.5.0\lib\net46\Microsoft.Bot.Connector.dll True diff --git a/AzureBot.Services.Runbooks/packages.config b/AzureBot.Services.Runbooks/packages.config index 95ce2ad..f6c0c66 100644 --- a/AzureBot.Services.Runbooks/packages.config +++ b/AzureBot.Services.Runbooks/packages.config @@ -15,7 +15,7 @@ - + diff --git a/AzureBot.Services.VMs/AzureBot.Services.VM.csproj b/AzureBot.Services.VMs/AzureBot.Services.VM.csproj index a2330f7..0d7e75b 100644 --- a/AzureBot.Services.VMs/AzureBot.Services.VM.csproj +++ b/AzureBot.Services.VMs/AzureBot.Services.VM.csproj @@ -61,16 +61,12 @@ ..\packages\Microsoft.Azure.Management.Compute.9.1.0\lib\net40\Microsoft.Azure.Management.Compute.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.dll + + ..\packages\Microsoft.Bot.Builder.3.5.0\lib\net46\Microsoft.Bot.Builder.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.Autofac.dll - True - - - ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Connector.dll + + ..\packages\Microsoft.Bot.Builder.3.5.0\lib\net46\Microsoft.Bot.Connector.dll True diff --git a/AzureBot.Services.VMs/packages.config b/AzureBot.Services.VMs/packages.config index 0be5806..3de7ae4 100644 --- a/AzureBot.Services.VMs/packages.config +++ b/AzureBot.Services.VMs/packages.config @@ -15,7 +15,7 @@ - + diff --git a/AzureBot/AzureBot.csproj b/AzureBot/AzureBot.csproj index 48bb252..b57e267 100644 --- a/AzureBot/AzureBot.csproj +++ b/AzureBot/AzureBot.csproj @@ -124,16 +124,12 @@ ..\packages\Microsoft.ApplicationInsights.TraceListener.2.1.0\lib\net45\Microsoft.ApplicationInsights.TraceListener.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.dll + + ..\packages\Microsoft.Bot.Builder.3.5.0\lib\net46\Microsoft.Bot.Builder.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.Autofac.dll - True - - - ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Connector.dll + + ..\packages\Microsoft.Bot.Builder.3.5.0\lib\net46\Microsoft.Bot.Connector.dll True diff --git a/AzureBot/packages.config b/AzureBot/packages.config index 6100736..0df9571 100644 --- a/AzureBot/packages.config +++ b/AzureBot/packages.config @@ -20,7 +20,7 @@ - + From 0d739885975a80f10af3c913aeca8a2992ef8946 Mon Sep 17 00:00:00 2001 From: Thiago Almeida Date: Tue, 7 Mar 2017 13:04:08 -0800 Subject: [PATCH 08/22] Fixing binding redirects --- AzureBot.Services.ResourceGroups/app.config | 2 +- AzureBot.Services.Runbooks/app.config | 6 +++--- AzureBot.Services.VMs/app.config | 6 +++--- AzureBot/Web.config | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/AzureBot.Services.ResourceGroups/app.config b/AzureBot.Services.ResourceGroups/app.config index cdb033c..189b95a 100644 --- a/AzureBot.Services.ResourceGroups/app.config +++ b/AzureBot.Services.ResourceGroups/app.config @@ -52,7 +52,7 @@ - + diff --git a/AzureBot.Services.Runbooks/app.config b/AzureBot.Services.Runbooks/app.config index b865612..189b95a 100644 --- a/AzureBot.Services.Runbooks/app.config +++ b/AzureBot.Services.Runbooks/app.config @@ -28,11 +28,11 @@ - + - + @@ -52,7 +52,7 @@ - + diff --git a/AzureBot.Services.VMs/app.config b/AzureBot.Services.VMs/app.config index b865612..189b95a 100644 --- a/AzureBot.Services.VMs/app.config +++ b/AzureBot.Services.VMs/app.config @@ -28,11 +28,11 @@ - + - + @@ -52,7 +52,7 @@ - + diff --git a/AzureBot/Web.config b/AzureBot/Web.config index 9ed0215..1352293 100644 --- a/AzureBot/Web.config +++ b/AzureBot/Web.config @@ -77,11 +77,11 @@ - + - + @@ -105,7 +105,7 @@ - + From 4e0f61dbc865845c37c315246aea7131830dcc30 Mon Sep 17 00:00:00 2001 From: Thiago Almeida Date: Tue, 7 Mar 2017 14:15:10 -0800 Subject: [PATCH 09/22] Updating packages --- .../AzureBot.Tests.ConsoleConversation.csproj | 2 +- AzureBot.ConsoleConversation/packages.config | 2 +- .../AzureBot.Services.Common.csproj | 14 +++++++++----- AzureBot.Services.Common/packages.config | 4 ++-- .../AzureBot.Services.ResourceGroup.csproj | 14 +++++++++----- AzureBot.Services.ResourceGroups/app.config | 6 +++--- AzureBot.Services.ResourceGroups/packages.config | 4 ++-- .../AzureBot.Services.Automation.csproj | 14 +++++++++----- AzureBot.Services.Runbooks/app.config | 6 +++--- AzureBot.Services.Runbooks/packages.config | 4 ++-- AzureBot.Services.VMs/AzureBot.Services.VM.csproj | 14 +++++++++----- AzureBot.Services.VMs/app.config | 6 +++--- AzureBot.Services.VMs/packages.config | 4 ++-- AzureBot.Tests/AzureBot.Tests.csproj | 2 +- AzureBot.Tests/packages.config | 2 +- AzureBot/AzureBot.csproj | 14 +++++++++----- AzureBot/Web.config | 6 +++--- AzureBot/packages.config | 4 ++-- 18 files changed, 71 insertions(+), 51 deletions(-) diff --git a/AzureBot.ConsoleConversation/AzureBot.Tests.ConsoleConversation.csproj b/AzureBot.ConsoleConversation/AzureBot.Tests.ConsoleConversation.csproj index e3e5d32..0ebd483 100644 --- a/AzureBot.ConsoleConversation/AzureBot.Tests.ConsoleConversation.csproj +++ b/AzureBot.ConsoleConversation/AzureBot.Tests.ConsoleConversation.csproj @@ -39,7 +39,7 @@ True - ..\packages\Microsoft.Rest.ClientRuntime.2.3.2\lib\net45\Microsoft.Rest.ClientRuntime.dll + ..\packages\Microsoft.Rest.ClientRuntime.2.3.4\lib\net45\Microsoft.Rest.ClientRuntime.dll True diff --git a/AzureBot.ConsoleConversation/packages.config b/AzureBot.ConsoleConversation/packages.config index ad53fdd..daecd56 100644 --- a/AzureBot.ConsoleConversation/packages.config +++ b/AzureBot.ConsoleConversation/packages.config @@ -1,6 +1,6 @@  - + \ No newline at end of file diff --git a/AzureBot.Services.Common/AzureBot.Services.Common.csproj b/AzureBot.Services.Common/AzureBot.Services.Common.csproj index c4a9fa3..76c0923 100644 --- a/AzureBot.Services.Common/AzureBot.Services.Common.csproj +++ b/AzureBot.Services.Common/AzureBot.Services.Common.csproj @@ -57,12 +57,16 @@ ..\packages\Microsoft.Azure.Management.Resources.2.20.0-preview\lib\net40\Microsoft.Azure.ResourceManager.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.0\lib\net46\Microsoft.Bot.Builder.dll + + ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.0\lib\net46\Microsoft.Bot.Connector.dll + + ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.Autofac.dll + True + + + ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Connector.dll True @@ -70,7 +74,7 @@ True - ..\packages\Microsoft.Rest.ClientRuntime.2.3.2\lib\net45\Microsoft.Rest.ClientRuntime.dll + ..\packages\Microsoft.Rest.ClientRuntime.2.3.4\lib\net45\Microsoft.Rest.ClientRuntime.dll True diff --git a/AzureBot.Services.Common/packages.config b/AzureBot.Services.Common/packages.config index 623b6f5..4737e75 100644 --- a/AzureBot.Services.Common/packages.config +++ b/AzureBot.Services.Common/packages.config @@ -11,10 +11,10 @@ - + - + diff --git a/AzureBot.Services.ResourceGroups/AzureBot.Services.ResourceGroup.csproj b/AzureBot.Services.ResourceGroups/AzureBot.Services.ResourceGroup.csproj index 25217a7..eba2cb4 100644 --- a/AzureBot.Services.ResourceGroups/AzureBot.Services.ResourceGroup.csproj +++ b/AzureBot.Services.ResourceGroups/AzureBot.Services.ResourceGroup.csproj @@ -61,12 +61,16 @@ ..\packages\Microsoft.Azure.Management.Resources.2.20.0-preview\lib\net40\Microsoft.Azure.ResourceManager.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.0\lib\net46\Microsoft.Bot.Builder.dll + + ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.0\lib\net46\Microsoft.Bot.Connector.dll + + ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.Autofac.dll + True + + + ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Connector.dll True @@ -98,7 +102,7 @@ True - ..\packages\Microsoft.Rest.ClientRuntime.2.3.5\lib\net45\Microsoft.Rest.ClientRuntime.dll + ..\packages\Microsoft.Rest.ClientRuntime.2.3.4\lib\net45\Microsoft.Rest.ClientRuntime.dll True diff --git a/AzureBot.Services.ResourceGroups/app.config b/AzureBot.Services.ResourceGroups/app.config index 189b95a..b865612 100644 --- a/AzureBot.Services.ResourceGroups/app.config +++ b/AzureBot.Services.ResourceGroups/app.config @@ -28,11 +28,11 @@ - + - + @@ -52,7 +52,7 @@ - + diff --git a/AzureBot.Services.ResourceGroups/packages.config b/AzureBot.Services.ResourceGroups/packages.config index 9812c84..331ecb6 100644 --- a/AzureBot.Services.ResourceGroups/packages.config +++ b/AzureBot.Services.ResourceGroups/packages.config @@ -15,14 +15,14 @@ - + - + diff --git a/AzureBot.Services.Runbooks/AzureBot.Services.Automation.csproj b/AzureBot.Services.Runbooks/AzureBot.Services.Automation.csproj index 0b44165..c062a25 100644 --- a/AzureBot.Services.Runbooks/AzureBot.Services.Automation.csproj +++ b/AzureBot.Services.Runbooks/AzureBot.Services.Automation.csproj @@ -61,12 +61,16 @@ ..\packages\Microsoft.Azure.Management.Automation.2.0.1\lib\net40\Microsoft.Azure.Management.Automation.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.0\lib\net46\Microsoft.Bot.Builder.dll + + ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.0\lib\net46\Microsoft.Bot.Connector.dll + + ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.Autofac.dll + True + + + ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Connector.dll True @@ -98,7 +102,7 @@ True - ..\packages\Microsoft.Rest.ClientRuntime.2.3.5\lib\net45\Microsoft.Rest.ClientRuntime.dll + ..\packages\Microsoft.Rest.ClientRuntime.2.3.4\lib\net45\Microsoft.Rest.ClientRuntime.dll True diff --git a/AzureBot.Services.Runbooks/app.config b/AzureBot.Services.Runbooks/app.config index 189b95a..b865612 100644 --- a/AzureBot.Services.Runbooks/app.config +++ b/AzureBot.Services.Runbooks/app.config @@ -28,11 +28,11 @@ - + - + @@ -52,7 +52,7 @@ - + diff --git a/AzureBot.Services.Runbooks/packages.config b/AzureBot.Services.Runbooks/packages.config index f6c0c66..b14e6d4 100644 --- a/AzureBot.Services.Runbooks/packages.config +++ b/AzureBot.Services.Runbooks/packages.config @@ -15,14 +15,14 @@ - + - + diff --git a/AzureBot.Services.VMs/AzureBot.Services.VM.csproj b/AzureBot.Services.VMs/AzureBot.Services.VM.csproj index 0d7e75b..fa54201 100644 --- a/AzureBot.Services.VMs/AzureBot.Services.VM.csproj +++ b/AzureBot.Services.VMs/AzureBot.Services.VM.csproj @@ -61,12 +61,16 @@ ..\packages\Microsoft.Azure.Management.Compute.9.1.0\lib\net40\Microsoft.Azure.Management.Compute.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.0\lib\net46\Microsoft.Bot.Builder.dll + + ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.0\lib\net46\Microsoft.Bot.Connector.dll + + ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.Autofac.dll + True + + + ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Connector.dll True @@ -98,7 +102,7 @@ True - ..\packages\Microsoft.Rest.ClientRuntime.2.3.5\lib\net45\Microsoft.Rest.ClientRuntime.dll + ..\packages\Microsoft.Rest.ClientRuntime.2.3.4\lib\net45\Microsoft.Rest.ClientRuntime.dll True diff --git a/AzureBot.Services.VMs/app.config b/AzureBot.Services.VMs/app.config index 189b95a..b865612 100644 --- a/AzureBot.Services.VMs/app.config +++ b/AzureBot.Services.VMs/app.config @@ -28,11 +28,11 @@ - + - + @@ -52,7 +52,7 @@ - + diff --git a/AzureBot.Services.VMs/packages.config b/AzureBot.Services.VMs/packages.config index 3de7ae4..121466c 100644 --- a/AzureBot.Services.VMs/packages.config +++ b/AzureBot.Services.VMs/packages.config @@ -15,14 +15,14 @@ - + - + diff --git a/AzureBot.Tests/AzureBot.Tests.csproj b/AzureBot.Tests/AzureBot.Tests.csproj index 305ca32..ee818b6 100644 --- a/AzureBot.Tests/AzureBot.Tests.csproj +++ b/AzureBot.Tests/AzureBot.Tests.csproj @@ -42,7 +42,7 @@ - ..\packages\Microsoft.Rest.ClientRuntime.2.3.2\lib\net45\Microsoft.Rest.ClientRuntime.dll + ..\packages\Microsoft.Rest.ClientRuntime.2.3.4\lib\net45\Microsoft.Rest.ClientRuntime.dll True diff --git a/AzureBot.Tests/packages.config b/AzureBot.Tests/packages.config index ad53fdd..daecd56 100644 --- a/AzureBot.Tests/packages.config +++ b/AzureBot.Tests/packages.config @@ -1,6 +1,6 @@  - + \ No newline at end of file diff --git a/AzureBot/AzureBot.csproj b/AzureBot/AzureBot.csproj index b57e267..1be0791 100644 --- a/AzureBot/AzureBot.csproj +++ b/AzureBot/AzureBot.csproj @@ -124,12 +124,16 @@ ..\packages\Microsoft.ApplicationInsights.TraceListener.2.1.0\lib\net45\Microsoft.ApplicationInsights.TraceListener.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.0\lib\net46\Microsoft.Bot.Builder.dll + + ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.0\lib\net46\Microsoft.Bot.Connector.dll + + ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.Autofac.dll + True + + + ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Connector.dll True @@ -162,7 +166,7 @@ True - ..\packages\Microsoft.Rest.ClientRuntime.2.3.5\lib\net45\Microsoft.Rest.ClientRuntime.dll + ..\packages\Microsoft.Rest.ClientRuntime.2.3.4\lib\net45\Microsoft.Rest.ClientRuntime.dll True diff --git a/AzureBot/Web.config b/AzureBot/Web.config index 1352293..9ed0215 100644 --- a/AzureBot/Web.config +++ b/AzureBot/Web.config @@ -77,11 +77,11 @@ - + - + @@ -105,7 +105,7 @@ - + diff --git a/AzureBot/packages.config b/AzureBot/packages.config index 0df9571..f0b23f6 100644 --- a/AzureBot/packages.config +++ b/AzureBot/packages.config @@ -20,14 +20,14 @@ - + - + From b79c03a10f441f9b31da57d99026c3872ae98183 Mon Sep 17 00:00:00 2001 From: Thiago Almeida Date: Tue, 7 Mar 2017 14:55:29 -0800 Subject: [PATCH 10/22] Latest package combination attempt --- .../AzureBot.Tests.ConsoleConversation.csproj | 2 +- AzureBot.ConsoleConversation/packages.config | 2 +- .../AzureBot.Services.Common.csproj | 20 ++++++++--------- AzureBot.Services.Common/app.config | 2 +- AzureBot.Services.Common/packages.config | 8 +++---- .../AzureBot.Services.ResourceGroup.csproj | 22 +++++++++---------- AzureBot.Services.ResourceGroups/app.config | 10 +++------ .../packages.config | 10 ++++----- .../AzureBot.Services.Automation.csproj | 22 +++++++++---------- AzureBot.Services.Runbooks/app.config | 10 +++------ AzureBot.Services.Runbooks/packages.config | 10 ++++----- .../AzureBot.Services.VM.csproj | 22 +++++++++---------- AzureBot.Services.VMs/app.config | 10 +++------ AzureBot.Services.VMs/packages.config | 10 ++++----- AzureBot.Tests/AzureBot.Tests.csproj | 2 +- AzureBot.Tests/packages.config | 2 +- AzureBot/AzureBot.csproj | 22 +++++++++---------- AzureBot/Web.config | 12 ++++------ AzureBot/packages.config | 10 ++++----- 19 files changed, 96 insertions(+), 112 deletions(-) diff --git a/AzureBot.ConsoleConversation/AzureBot.Tests.ConsoleConversation.csproj b/AzureBot.ConsoleConversation/AzureBot.Tests.ConsoleConversation.csproj index 0ebd483..5f61fa2 100644 --- a/AzureBot.ConsoleConversation/AzureBot.Tests.ConsoleConversation.csproj +++ b/AzureBot.ConsoleConversation/AzureBot.Tests.ConsoleConversation.csproj @@ -43,7 +43,7 @@ True - ..\packages\Newtonsoft.Json.9.0.2-beta1\lib\net45\Newtonsoft.Json.dll + ..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll True diff --git a/AzureBot.ConsoleConversation/packages.config b/AzureBot.ConsoleConversation/packages.config index daecd56..2777d80 100644 --- a/AzureBot.ConsoleConversation/packages.config +++ b/AzureBot.ConsoleConversation/packages.config @@ -2,5 +2,5 @@ - + \ No newline at end of file diff --git a/AzureBot.Services.Common/AzureBot.Services.Common.csproj b/AzureBot.Services.Common/AzureBot.Services.Common.csproj index 76c0923..73f7e20 100644 --- a/AzureBot.Services.Common/AzureBot.Services.Common.csproj +++ b/AzureBot.Services.Common/AzureBot.Services.Common.csproj @@ -33,8 +33,8 @@ 4 - - ..\packages\Autofac.4.2.1\lib\net45\Autofac.dll + + ..\packages\Autofac.4.3.0\lib\net45\Autofac.dll True @@ -57,16 +57,16 @@ ..\packages\Microsoft.Azure.Management.Resources.2.20.0-preview\lib\net40\Microsoft.Azure.ResourceManager.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.dll + + ..\packages\Microsoft.Bot.Builder.3.5.2\lib\net46\Microsoft.Bot.Builder.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.Autofac.dll + + ..\packages\Microsoft.Bot.Builder.3.5.2\lib\net46\Microsoft.Bot.Builder.Autofac.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Connector.dll + + ..\packages\Microsoft.Bot.Builder.3.5.2\lib\net46\Microsoft.Bot.Connector.dll True @@ -74,7 +74,7 @@ True - ..\packages\Microsoft.Rest.ClientRuntime.2.3.4\lib\net45\Microsoft.Rest.ClientRuntime.dll + ..\packages\Microsoft.Rest.ClientRuntime.2.3.5\lib\net45\Microsoft.Rest.ClientRuntime.dll True @@ -94,7 +94,7 @@ True - ..\packages\Newtonsoft.Json.9.0.2-beta1\lib\net45\Newtonsoft.Json.dll + ..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll True diff --git a/AzureBot.Services.Common/app.config b/AzureBot.Services.Common/app.config index e6bcb31..4288ac9 100644 --- a/AzureBot.Services.Common/app.config +++ b/AzureBot.Services.Common/app.config @@ -8,7 +8,7 @@ - + diff --git a/AzureBot.Services.Common/packages.config b/AzureBot.Services.Common/packages.config index 4737e75..6093d20 100644 --- a/AzureBot.Services.Common/packages.config +++ b/AzureBot.Services.Common/packages.config @@ -1,6 +1,6 @@  - + @@ -11,11 +11,11 @@ - + - + - + \ No newline at end of file diff --git a/AzureBot.Services.ResourceGroups/AzureBot.Services.ResourceGroup.csproj b/AzureBot.Services.ResourceGroups/AzureBot.Services.ResourceGroup.csproj index eba2cb4..41a71c0 100644 --- a/AzureBot.Services.ResourceGroups/AzureBot.Services.ResourceGroup.csproj +++ b/AzureBot.Services.ResourceGroups/AzureBot.Services.ResourceGroup.csproj @@ -34,11 +34,11 @@ - ..\packages\AuthBot.3.6.0-alpha\lib\net40\AuthBot.dll + ..\packages\AuthBot.3.6.1-alpha\lib\net40\AuthBot.dll True - - ..\packages\Autofac.4.2.1\lib\net45\Autofac.dll + + ..\packages\Autofac.4.3.0\lib\net45\Autofac.dll True @@ -61,16 +61,16 @@ ..\packages\Microsoft.Azure.Management.Resources.2.20.0-preview\lib\net40\Microsoft.Azure.ResourceManager.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.dll + + ..\packages\Microsoft.Bot.Builder.3.5.2\lib\net46\Microsoft.Bot.Builder.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.Autofac.dll + + ..\packages\Microsoft.Bot.Builder.3.5.2\lib\net46\Microsoft.Bot.Builder.Autofac.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Connector.dll + + ..\packages\Microsoft.Bot.Builder.3.5.2\lib\net46\Microsoft.Bot.Connector.dll True @@ -102,7 +102,7 @@ True - ..\packages\Microsoft.Rest.ClientRuntime.2.3.4\lib\net45\Microsoft.Rest.ClientRuntime.dll + ..\packages\Microsoft.Rest.ClientRuntime.2.3.5\lib\net45\Microsoft.Rest.ClientRuntime.dll True @@ -126,7 +126,7 @@ True - ..\packages\Newtonsoft.Json.9.0.2-beta1\lib\net45\Newtonsoft.Json.dll + ..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll True diff --git a/AzureBot.Services.ResourceGroups/app.config b/AzureBot.Services.ResourceGroups/app.config index b865612..5139fc7 100644 --- a/AzureBot.Services.ResourceGroups/app.config +++ b/AzureBot.Services.ResourceGroups/app.config @@ -12,7 +12,7 @@ - + @@ -28,11 +28,11 @@ - + - + @@ -50,10 +50,6 @@ - - - - diff --git a/AzureBot.Services.ResourceGroups/packages.config b/AzureBot.Services.ResourceGroups/packages.config index 331ecb6..5f8b8df 100644 --- a/AzureBot.Services.ResourceGroups/packages.config +++ b/AzureBot.Services.ResourceGroups/packages.config @@ -1,7 +1,7 @@  - - + + @@ -15,17 +15,17 @@ - + - + - + diff --git a/AzureBot.Services.Runbooks/AzureBot.Services.Automation.csproj b/AzureBot.Services.Runbooks/AzureBot.Services.Automation.csproj index c062a25..db06fc1 100644 --- a/AzureBot.Services.Runbooks/AzureBot.Services.Automation.csproj +++ b/AzureBot.Services.Runbooks/AzureBot.Services.Automation.csproj @@ -34,11 +34,11 @@ - ..\packages\AuthBot.3.6.0-alpha\lib\net40\AuthBot.dll + ..\packages\AuthBot.3.6.1-alpha\lib\net40\AuthBot.dll True - - ..\packages\Autofac.4.2.1\lib\net45\Autofac.dll + + ..\packages\Autofac.4.3.0\lib\net45\Autofac.dll True @@ -61,16 +61,16 @@ ..\packages\Microsoft.Azure.Management.Automation.2.0.1\lib\net40\Microsoft.Azure.Management.Automation.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.dll + + ..\packages\Microsoft.Bot.Builder.3.5.2\lib\net46\Microsoft.Bot.Builder.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.Autofac.dll + + ..\packages\Microsoft.Bot.Builder.3.5.2\lib\net46\Microsoft.Bot.Builder.Autofac.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Connector.dll + + ..\packages\Microsoft.Bot.Builder.3.5.2\lib\net46\Microsoft.Bot.Connector.dll True @@ -102,7 +102,7 @@ True - ..\packages\Microsoft.Rest.ClientRuntime.2.3.4\lib\net45\Microsoft.Rest.ClientRuntime.dll + ..\packages\Microsoft.Rest.ClientRuntime.2.3.5\lib\net45\Microsoft.Rest.ClientRuntime.dll True @@ -126,7 +126,7 @@ True - ..\packages\Newtonsoft.Json.9.0.2-beta1\lib\net45\Newtonsoft.Json.dll + ..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll True diff --git a/AzureBot.Services.Runbooks/app.config b/AzureBot.Services.Runbooks/app.config index b865612..5139fc7 100644 --- a/AzureBot.Services.Runbooks/app.config +++ b/AzureBot.Services.Runbooks/app.config @@ -12,7 +12,7 @@ - + @@ -28,11 +28,11 @@ - + - + @@ -50,10 +50,6 @@ - - - - diff --git a/AzureBot.Services.Runbooks/packages.config b/AzureBot.Services.Runbooks/packages.config index b14e6d4..696384b 100644 --- a/AzureBot.Services.Runbooks/packages.config +++ b/AzureBot.Services.Runbooks/packages.config @@ -1,7 +1,7 @@  - - + + @@ -15,17 +15,17 @@ - + - + - + diff --git a/AzureBot.Services.VMs/AzureBot.Services.VM.csproj b/AzureBot.Services.VMs/AzureBot.Services.VM.csproj index fa54201..f264b27 100644 --- a/AzureBot.Services.VMs/AzureBot.Services.VM.csproj +++ b/AzureBot.Services.VMs/AzureBot.Services.VM.csproj @@ -34,11 +34,11 @@ - ..\packages\AuthBot.3.6.0-alpha\lib\net40\AuthBot.dll + ..\packages\AuthBot.3.6.1-alpha\lib\net40\AuthBot.dll True - - ..\packages\Autofac.4.2.1\lib\net45\Autofac.dll + + ..\packages\Autofac.4.3.0\lib\net45\Autofac.dll True @@ -61,16 +61,16 @@ ..\packages\Microsoft.Azure.Management.Compute.9.1.0\lib\net40\Microsoft.Azure.Management.Compute.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.dll + + ..\packages\Microsoft.Bot.Builder.3.5.2\lib\net46\Microsoft.Bot.Builder.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.Autofac.dll + + ..\packages\Microsoft.Bot.Builder.3.5.2\lib\net46\Microsoft.Bot.Builder.Autofac.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Connector.dll + + ..\packages\Microsoft.Bot.Builder.3.5.2\lib\net46\Microsoft.Bot.Connector.dll True @@ -102,7 +102,7 @@ True - ..\packages\Microsoft.Rest.ClientRuntime.2.3.4\lib\net45\Microsoft.Rest.ClientRuntime.dll + ..\packages\Microsoft.Rest.ClientRuntime.2.3.5\lib\net45\Microsoft.Rest.ClientRuntime.dll True @@ -126,7 +126,7 @@ True - ..\packages\Newtonsoft.Json.9.0.2-beta1\lib\net45\Newtonsoft.Json.dll + ..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll True diff --git a/AzureBot.Services.VMs/app.config b/AzureBot.Services.VMs/app.config index b865612..5139fc7 100644 --- a/AzureBot.Services.VMs/app.config +++ b/AzureBot.Services.VMs/app.config @@ -12,7 +12,7 @@ - + @@ -28,11 +28,11 @@ - + - + @@ -50,10 +50,6 @@ - - - - diff --git a/AzureBot.Services.VMs/packages.config b/AzureBot.Services.VMs/packages.config index 121466c..0cb5cf8 100644 --- a/AzureBot.Services.VMs/packages.config +++ b/AzureBot.Services.VMs/packages.config @@ -1,7 +1,7 @@  - - + + @@ -15,17 +15,17 @@ - + - + - + diff --git a/AzureBot.Tests/AzureBot.Tests.csproj b/AzureBot.Tests/AzureBot.Tests.csproj index ee818b6..040b3d0 100644 --- a/AzureBot.Tests/AzureBot.Tests.csproj +++ b/AzureBot.Tests/AzureBot.Tests.csproj @@ -46,7 +46,7 @@ True - ..\packages\Newtonsoft.Json.9.0.2-beta1\lib\net45\Newtonsoft.Json.dll + ..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll True diff --git a/AzureBot.Tests/packages.config b/AzureBot.Tests/packages.config index daecd56..2777d80 100644 --- a/AzureBot.Tests/packages.config +++ b/AzureBot.Tests/packages.config @@ -2,5 +2,5 @@ - + \ No newline at end of file diff --git a/AzureBot/AzureBot.csproj b/AzureBot/AzureBot.csproj index 1be0791..e93528f 100644 --- a/AzureBot/AzureBot.csproj +++ b/AzureBot/AzureBot.csproj @@ -81,11 +81,11 @@ - ..\packages\AuthBot.3.6.0-alpha\lib\net40\AuthBot.dll + ..\packages\AuthBot.3.6.1-alpha\lib\net40\AuthBot.dll True - - ..\packages\Autofac.4.2.1\lib\net45\Autofac.dll + + ..\packages\Autofac.4.3.0\lib\net45\Autofac.dll True @@ -124,16 +124,16 @@ ..\packages\Microsoft.ApplicationInsights.TraceListener.2.1.0\lib\net45\Microsoft.ApplicationInsights.TraceListener.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.dll + + ..\packages\Microsoft.Bot.Builder.3.5.2\lib\net46\Microsoft.Bot.Builder.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Builder.Autofac.dll + + ..\packages\Microsoft.Bot.Builder.3.5.2\lib\net46\Microsoft.Bot.Builder.Autofac.dll True - - ..\packages\Microsoft.Bot.Builder.3.5.3\lib\net46\Microsoft.Bot.Connector.dll + + ..\packages\Microsoft.Bot.Builder.3.5.2\lib\net46\Microsoft.Bot.Connector.dll True @@ -166,7 +166,7 @@ True - ..\packages\Microsoft.Rest.ClientRuntime.2.3.4\lib\net45\Microsoft.Rest.ClientRuntime.dll + ..\packages\Microsoft.Rest.ClientRuntime.2.3.5\lib\net45\Microsoft.Rest.ClientRuntime.dll True @@ -190,7 +190,7 @@ True - ..\packages\Newtonsoft.Json.9.0.2-beta1\lib\net45\Newtonsoft.Json.dll + ..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll True diff --git a/AzureBot/Web.config b/AzureBot/Web.config index 9ed0215..dcef9fb 100644 --- a/AzureBot/Web.config +++ b/AzureBot/Web.config @@ -17,7 +17,7 @@ - + @@ -61,7 +61,7 @@ - + @@ -77,11 +77,11 @@ - + - + @@ -103,10 +103,6 @@ - - - - diff --git a/AzureBot/packages.config b/AzureBot/packages.config index f0b23f6..c400acc 100644 --- a/AzureBot/packages.config +++ b/AzureBot/packages.config @@ -1,7 +1,7 @@  - - + + @@ -20,17 +20,17 @@ - + - + - + From 6c7139136b9a92217d06cb537605ff755664432c Mon Sep 17 00:00:00 2001 From: Thiago Almeida Date: Tue, 7 Mar 2017 15:43:20 -0800 Subject: [PATCH 11/22] Fixing app.config for console --- AzureBot.ConsoleConversation/App.config | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/AzureBot.ConsoleConversation/App.config b/AzureBot.ConsoleConversation/App.config index 8d41ec4..64cd410 100644 --- a/AzureBot.ConsoleConversation/App.config +++ b/AzureBot.ConsoleConversation/App.config @@ -2,12 +2,12 @@ - - + + - + - + From 86aaa854ec158a05808480570179706b2805194e Mon Sep 17 00:00:00 2001 From: Thiago Almeida Date: Thu, 9 Mar 2017 08:19:14 -0800 Subject: [PATCH 12/22] Updating dialog factory, removing dll look up --- AzureBot.ConsoleConversation/Program.cs | 12 +++++++++++- .../Dialogs/AzureBotLuisDialog.cs | 6 ------ .../Dialogs/ResourceGroupDialog.cs | 4 +++- AzureBot/Dialogs/DialogFactory.cs | 16 ++++++++++------ 4 files changed, 24 insertions(+), 14 deletions(-) diff --git a/AzureBot.ConsoleConversation/Program.cs b/AzureBot.ConsoleConversation/Program.cs index 7444f11..ef73859 100644 --- a/AzureBot.ConsoleConversation/Program.cs +++ b/AzureBot.ConsoleConversation/Program.cs @@ -69,7 +69,17 @@ internal static async Task ReadBotMessagesAsync() foreach (Activity activity in activitiesText) { - Console.WriteLine(activity.Text); + if (!string.IsNullOrEmpty(activity.Text.Trim())) + { + Console.WriteLine(activity.Text); + } + else + { + foreach (Attachment attachment in activity.Attachments) + { + Console.WriteLine(attachment.Content); + } + } Console.Write("Command > "); } await Task.Delay(TimeSpan.FromSeconds(1)).ConfigureAwait(false); diff --git a/AzureBot.Services.Common/Dialogs/AzureBotLuisDialog.cs b/AzureBot.Services.Common/Dialogs/AzureBotLuisDialog.cs index 7859dfc..583577c 100644 --- a/AzureBot.Services.Common/Dialogs/AzureBotLuisDialog.cs +++ b/AzureBot.Services.Common/Dialogs/AzureBotLuisDialog.cs @@ -12,7 +12,6 @@ public class AzureBotLuisDialog : LuisDialog { public async Task CanHandle(string query) { - var tasks = services.Select(s => s.QueryAsync(query, CancellationToken.None)).ToArray(); var results = await Task.WhenAll(tasks); @@ -23,11 +22,6 @@ public async Task CanHandle(string query) var winner = this.BestResultFrom(winners); return winner != null && winner.BestIntent.Intent != "None"; - - //var tasks = services.Select(s => s.QueryAsync(query, CancellationToken.None)); - //var winner = BestResultFrom(await Task.WhenAll(tasks)); - //return winner != null && winner.BestIntent.Intent != "None"; - } } } \ No newline at end of file diff --git a/AzureBot.Services.ResourceGroups/Dialogs/ResourceGroupDialog.cs b/AzureBot.Services.ResourceGroups/Dialogs/ResourceGroupDialog.cs index 793c1cc..410b3c8 100644 --- a/AzureBot.Services.ResourceGroups/Dialogs/ResourceGroupDialog.cs +++ b/AzureBot.Services.ResourceGroups/Dialogs/ResourceGroupDialog.cs @@ -1,6 +1,7 @@ using AuthBot; using AzureBot.Domain; using Microsoft.Bot.Builder.Dialogs; +using Microsoft.Bot.Builder.Luis; using System; using System.Collections.Generic; using System.Configuration; @@ -11,7 +12,8 @@ namespace AzureBot.Dialogs { [Serializable] - class ResourceGroupDialog : AzureBotLuisDialog + [LuisModel("77ae3bf7-695c-4cea-af77-31b1ba9d5940", "0e64d2ae951547f692182b4ae74262cb")] + public class ResourceGroupDialog : AzureBotLuisDialog { private static Lazy resourceId = new Lazy(() => ConfigurationManager.AppSettings["ActiveDirectory.ResourceId"]); diff --git a/AzureBot/Dialogs/DialogFactory.cs b/AzureBot/Dialogs/DialogFactory.cs index 96c672f..3daa86c 100644 --- a/AzureBot/Dialogs/DialogFactory.cs +++ b/AzureBot/Dialogs/DialogFactory.cs @@ -25,19 +25,23 @@ public async Task> Create(string query) } return null; } - private void EnsureResourceDialogs() { - if (ResourceDialogs == null || !ResourceDialogs.Any()) + if (ResourceDialogs == null || (ResourceDialogs.Count != 3)) { lock (resoucelock) { - if (ResourceDialogs == null || !ResourceDialogs.Any()) + if (ResourceDialogs == null) + { + ResourceDialogs = new List>(); + } + else if (ResourceDialogs.Count != 3) { - var type = typeof(AzureBotLuisDialog); - var assemblies=AppDomain.CurrentDomain.GetAssemblies().Where(a=>a.FullName.StartsWith("AzureBot.Services")).ToList(); - ResourceDialogs = assemblies.SelectMany(a => a.GetTypes()).Where(a => type.IsAssignableFrom(a)).Select(a=> (AzureBotLuisDialog)Activator.CreateInstance(a)).ToList(); + ResourceDialogs.Clear(); } + ResourceDialogs.Add((AzureBotLuisDialog)Activator.CreateInstance(typeof(AutomationDialog))); + ResourceDialogs.Add((AzureBotLuisDialog)Activator.CreateInstance(typeof(ResourceGroupDialog))); + ResourceDialogs.Add((AzureBotLuisDialog)Activator.CreateInstance(typeof(VMDialog))); } } } From 4e16306aa77bb1f4a3d075d06f9f61127e555a7d Mon Sep 17 00:00:00 2001 From: Thiago Almeida Date: Tue, 14 Mar 2017 08:28:10 -0700 Subject: [PATCH 13/22] Adding a reset command to the bot --- AzureBot/Dialogs/RootDialog.cs | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/AzureBot/Dialogs/RootDialog.cs b/AzureBot/Dialogs/RootDialog.cs index 288e73c..d8ae903 100644 --- a/AzureBot/Dialogs/RootDialog.cs +++ b/AzureBot/Dialogs/RootDialog.cs @@ -42,11 +42,22 @@ public async Task None(IDialogContext context, LuisResult result) } else { - string message = $"Sorry, I did not understand '{result.Query}'. Type 'help' if you need assistance."; - - await context.PostAsync(message); - - context.Wait(MessageReceived); + if (new[] { "cancel", "reset", "restart", "kill", "undo", "start over" }.Any(c => result.Query.Contains(c))) + { + context.Reset(); + context.ConversationData.Clear(); + context.UserData.Clear(); + context.PrivateConversationData.Clear(); + await context.FlushAsync(CancellationToken.None); + await context.PostAsync($"Alright, I've reset everything, let's try again."); + await this.Help(context, new LuisResult()); + } + else + { + string message = $"Sorry, I did not understand '{result.Query}'. Type 'help' if you need assistance."; + await context.PostAsync(message); + context.Wait(MessageReceived); + } } } From 7ddcac260f2f2a898242d4087a3cf0faedf13394 Mon Sep 17 00:00:00 2001 From: Thiago Almeida Date: Wed, 15 Mar 2017 10:21:43 -0700 Subject: [PATCH 14/22] Updating LUIS api key --- AzureBot.Services.ResourceGroups/Dialogs/ResourceGroupDialog.cs | 2 +- AzureBot.Services.Runbooks/Dialogs/AutomationDialog.cs | 2 +- AzureBot.Services.VMs/Dialogs/VMDialog.cs | 2 +- AzureBot/Dialogs/RootDialog.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/AzureBot.Services.ResourceGroups/Dialogs/ResourceGroupDialog.cs b/AzureBot.Services.ResourceGroups/Dialogs/ResourceGroupDialog.cs index 410b3c8..1d70704 100644 --- a/AzureBot.Services.ResourceGroups/Dialogs/ResourceGroupDialog.cs +++ b/AzureBot.Services.ResourceGroups/Dialogs/ResourceGroupDialog.cs @@ -12,7 +12,7 @@ namespace AzureBot.Dialogs { [Serializable] - [LuisModel("77ae3bf7-695c-4cea-af77-31b1ba9d5940", "0e64d2ae951547f692182b4ae74262cb")] + [LuisModel("77ae3bf7-695c-4cea-af77-31b1ba9d5940", "110c81d75bdb4f918a991696cd09f66b")] public class ResourceGroupDialog : AzureBotLuisDialog { private static Lazy resourceId = new Lazy(() => ConfigurationManager.AppSettings["ActiveDirectory.ResourceId"]); diff --git a/AzureBot.Services.Runbooks/Dialogs/AutomationDialog.cs b/AzureBot.Services.Runbooks/Dialogs/AutomationDialog.cs index 9247fee..49fae03 100644 --- a/AzureBot.Services.Runbooks/Dialogs/AutomationDialog.cs +++ b/AzureBot.Services.Runbooks/Dialogs/AutomationDialog.cs @@ -17,7 +17,7 @@ namespace AzureBot.Dialogs { - [LuisModel("6ca45971-e419-4e43-8ba4-71fb486d3ffc", "0e64d2ae951547f692182b4ae74262cb")] + [LuisModel("6ca45971-e419-4e43-8ba4-71fb486d3ffc", "110c81d75bdb4f918a991696cd09f66b")] [Serializable] public class AutomationDialog : AzureBotLuisDialog { diff --git a/AzureBot.Services.VMs/Dialogs/VMDialog.cs b/AzureBot.Services.VMs/Dialogs/VMDialog.cs index 9354729..c19199f 100644 --- a/AzureBot.Services.VMs/Dialogs/VMDialog.cs +++ b/AzureBot.Services.VMs/Dialogs/VMDialog.cs @@ -18,7 +18,7 @@ namespace AzureBot.Dialogs { - [LuisModel("836166b9-d8c1-4185-9515-0ebfbf3226dc", "0e64d2ae951547f692182b4ae74262cb")] + [LuisModel("836166b9-d8c1-4185-9515-0ebfbf3226dc", "110c81d75bdb4f918a991696cd09f66b")] [Serializable] public class VMDialog : AzureBotLuisDialog { diff --git a/AzureBot/Dialogs/RootDialog.cs b/AzureBot/Dialogs/RootDialog.cs index d8ae903..b3f189e 100644 --- a/AzureBot/Dialogs/RootDialog.cs +++ b/AzureBot/Dialogs/RootDialog.cs @@ -14,7 +14,7 @@ using System.Threading; using System.Threading.Tasks; - [LuisModel("d2129bee-5d15-4c78-be3b-2005e3c08cd4", "0e64d2ae951547f692182b4ae74262cb")] + [LuisModel("d2129bee-5d15-4c78-be3b-2005e3c08cd4", "110c81d75bdb4f918a991696cd09f66b")] [Serializable] public class RootDialog : AzureBotLuisDialog { From eaa4ad0cbf0c2778145fd8dec861d081502dacbc Mon Sep 17 00:00:00 2001 From: Thiago Almeida Date: Thu, 30 Mar 2017 08:15:06 -0700 Subject: [PATCH 15/22] Adding favicon to stop 404s --- AzureBot/AzureBot.csproj | 1 + AzureBot/Dialogs/RootDialog.cs | 1 - AzureBot/favicon.ico | Bin 0 -> 1150 bytes 3 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 AzureBot/favicon.ico diff --git a/AzureBot/AzureBot.csproj b/AzureBot/AzureBot.csproj index e93528f..79454cd 100644 --- a/AzureBot/AzureBot.csproj +++ b/AzureBot/AzureBot.csproj @@ -43,6 +43,7 @@ + diff --git a/AzureBot/Dialogs/RootDialog.cs b/AzureBot/Dialogs/RootDialog.cs index b3f189e..7c08800 100644 --- a/AzureBot/Dialogs/RootDialog.cs +++ b/AzureBot/Dialogs/RootDialog.cs @@ -83,7 +83,6 @@ public async Task Help(IDialogContext context, LuisResult result) message += $"By using me, you agree to the Microsoft Privacy Statement and Microsoft Services Agreement on http://aka.ms/AzureBot \n\n"; message += $"Please type **login** to interact with me for the first time."; } - await context.PostAsync(message); diff --git a/AzureBot/favicon.ico b/AzureBot/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..d642fbcb8723b985c076f24fc50ad1ae80cc1d58 GIT binary patch literal 1150 zcmZQzU<5(|0R|wcz>vYhz#zuJz@P!dKp~(AL>x#lFaYJy!SxD;|HBRcCjfrEx$_2> zp9yG1k;Z1moi3$|$QY#N*V}s^ua`5R=ml{Q`dPnXNTLZ`D`WVFCiMSWIny7I86W^N z>;J#MDC(}4v-}3h{d{@#Bf5T&_>CHlpD?{}8jD*o^p+vg4YK_(Gj7)Ny+PN5O&v%* z&~I?1F#RC Date: Thu, 30 Mar 2017 15:48:32 -0700 Subject: [PATCH 16/22] Updating cancellation tokens and root dialog --- .../Dialogs/AzureBotLuisDialog.cs | 4 +- .../SubscriptionDomain.cs | 4 +- AzureBot/Controllers/MessagesController.cs | 1 + AzureBot/Dialogs/DialogFactory.cs | 5 +- AzureBot/Dialogs/RootDialog.cs | 58 ++++++------------- 5 files changed, 25 insertions(+), 47 deletions(-) diff --git a/AzureBot.Services.Common/Dialogs/AzureBotLuisDialog.cs b/AzureBot.Services.Common/Dialogs/AzureBotLuisDialog.cs index 583577c..e83e85a 100644 --- a/AzureBot.Services.Common/Dialogs/AzureBotLuisDialog.cs +++ b/AzureBot.Services.Common/Dialogs/AzureBotLuisDialog.cs @@ -10,9 +10,9 @@ namespace AzureBot [Serializable] public class AzureBotLuisDialog : LuisDialog { - public async Task CanHandle(string query) + public async Task CanHandle(string query, CancellationToken cancellationToken) { - var tasks = services.Select(s => s.QueryAsync(query, CancellationToken.None)).ToArray(); + var tasks = services.Select(async(s) => await s.QueryAsync(query, cancellationToken)).ToArray(); var results = await Task.WhenAll(tasks); var winners = from result in results.Select((value, index) => new { value, index }) diff --git a/AzureBot.Services.Common/SubscriptionDomain.cs b/AzureBot.Services.Common/SubscriptionDomain.cs index ffcd113..6550071 100644 --- a/AzureBot.Services.Common/SubscriptionDomain.cs +++ b/AzureBot.Services.Common/SubscriptionDomain.cs @@ -26,13 +26,13 @@ public static class Subscription } } - public static async Task GetSubscription(string accessToken, string subscriptionId) + public static async Task GetSubscription(string accessToken, string subscriptionId, CancellationToken cancellationToken) { var credentials = new TokenCloudCredentials(accessToken); using (SubscriptionClient client = new SubscriptionClient(credentials)) { - var subscriptionsResult = await client.Subscriptions.GetAsync(subscriptionId, CancellationToken.None); + var subscriptionsResult = await client.Subscriptions.GetAsync(subscriptionId, cancellationToken); return new Models.Subscription { SubscriptionId = subscriptionsResult.Subscription.SubscriptionId, diff --git a/AzureBot/Controllers/MessagesController.cs b/AzureBot/Controllers/MessagesController.cs index 4749950..44368ab 100644 --- a/AzureBot/Controllers/MessagesController.cs +++ b/AzureBot/Controllers/MessagesController.cs @@ -22,6 +22,7 @@ public virtual async Task Post([FromBody] Activity activity switch (activity.GetActivityType()) { case ActivityTypes.Message: + case ActivityTypes.ConversationUpdate: await Conversation.SendAsync(activity, () => new RootDialog()); break; default: diff --git a/AzureBot/Dialogs/DialogFactory.cs b/AzureBot/Dialogs/DialogFactory.cs index 3daa86c..13db935 100644 --- a/AzureBot/Dialogs/DialogFactory.cs +++ b/AzureBot/Dialogs/DialogFactory.cs @@ -4,6 +4,7 @@ using System.Reflection; using Microsoft.Bot.Builder.Dialogs; using System.Threading.Tasks; +using System.Threading; namespace AzureBot.Dialogs { @@ -12,13 +13,13 @@ public class DialogFactory private static object resoucelock= new object(); private static List> ResourceDialogs { get; set; } - public async Task> Create(string query) + public async Task> Create(string query, CancellationToken cancellationToken) { query = query.ToLowerInvariant(); EnsureResourceDialogs(); foreach (var resourceDialog in ResourceDialogs) { - if (await resourceDialog.CanHandle(query)) + if (await resourceDialog.CanHandle(query, cancellationToken)) { return resourceDialog; } diff --git a/AzureBot/Dialogs/RootDialog.cs b/AzureBot/Dialogs/RootDialog.cs index 7c08800..5c48002 100644 --- a/AzureBot/Dialogs/RootDialog.cs +++ b/AzureBot/Dialogs/RootDialog.cs @@ -26,7 +26,7 @@ public class RootDialog : AzureBotLuisDialog public async Task None(IDialogContext context, LuisResult result) { var factory = new DialogFactory(); - AzureBotLuisDialog dialog = await factory.Create(result.Query); + AzureBotLuisDialog dialog = await factory.Create(result.Query, context.CancellationToken); if (dialog != null) { @@ -38,26 +38,13 @@ public async Task None(IDialogContext context, LuisResult result) { return; } - await context.Forward(dialog, this.ResumeAfterForward, message, CancellationToken.None); + await context.Forward(dialog, this.ResumeAfterForward, message, context.CancellationToken); } else { - if (new[] { "cancel", "reset", "restart", "kill", "undo", "start over" }.Any(c => result.Query.Contains(c))) - { - context.Reset(); - context.ConversationData.Clear(); - context.UserData.Clear(); - context.PrivateConversationData.Clear(); - await context.FlushAsync(CancellationToken.None); - await context.PostAsync($"Alright, I've reset everything, let's try again."); - await this.Help(context, new LuisResult()); - } - else - { - string message = $"Sorry, I did not understand '{result.Query}'. Type 'help' if you need assistance."; - await context.PostAsync(message); - context.Wait(MessageReceived); - } + string message = $"Sorry, I did not understand '{result.Query}'. Type 'help' if you need assistance."; + await context.PostAsync(message); + context.Wait(MessageReceived); } } @@ -94,17 +81,24 @@ protected override async Task MessageReceived(IDialogContext context, IAwaitable var message = await item; //No way to get the message in the LuisIntent methods so saving it here - userToBot = message.Text.ToLowerInvariant(); + if (message.Type != ActivityTypes.Message || message == null || string.IsNullOrEmpty(message.Text)) + { + await this.Help(context, new LuisResult()); + return; + } + else + { + userToBot = message.Text.ToLowerInvariant(); + } if (!serviceUrlSet) { context.PrivateConversationData.SetValue("ServiceUrl", message.ServiceUrl); serviceUrlSet = true; } - if (userToBot.Contains("help") || message.Type != ActivityTypes.Message) + if (userToBot.Contains("help")) { await base.MessageReceived(context, item); - return; } @@ -114,7 +108,7 @@ protected override async Task MessageReceived(IDialogContext context, IAwaitable { if (userToBot.Contains("login")) { - await context.Forward(new AzureAuthDialog(resourceId.Value), this.ResumeAfterAuth, message, CancellationToken.None); + await context.Forward(new AzureAuthDialog(resourceId.Value), this.ResumeAfterAuth, message, context.CancellationToken); } else { @@ -170,7 +164,7 @@ public async Task GetCurrentSubscriptionAsync(IDialogContext context, LuisResult var subscriptionId = context.GetSubscriptionId(); - var currentSubscription = await Domain.Subscription.GetSubscription(accessToken, subscriptionId); + var currentSubscription = await Domain.Subscription.GetSubscription(accessToken, subscriptionId, context.CancellationToken); await context.PostAsync($"Your current subscription is '{currentSubscription.DisplayName}'."); @@ -238,24 +232,6 @@ public async Task Logout(IDialogContext context, LuisResult result) context.Wait(this.MessageReceived); } - //[LuisIntent("DetermineResource")] - //public async Task DetermineResourceAsync(IDialogContext context, LuisResult result) - //{ - // var accessToken = await context.GetAccessToken(resourceId.Value); - // if (string.IsNullOrEmpty(accessToken)) - // { - // return; - // } - - // var factory = new DialogFactory(); - // var message = context.MakeMessage(); - // message.Text = userToBot; - - // var dialog = factory.Create(result.Query); - - // await context.Forward(dialog, this.ResumeAfterForward, message, CancellationToken.None); - //} - private async Task ResumeAfterForward(IDialogContext context, IAwaitable result) { var message = await result; From 190bc39a9940c55a194dda7b507cac81e812f842 Mon Sep 17 00:00:00 2001 From: Thiago Almeida Date: Fri, 31 Mar 2017 08:29:14 -0700 Subject: [PATCH 17/22] Adding option to reset the stack and user state --- AzureBot/Controllers/MessagesController.cs | 13 ++++++++++++- AzureBot/Web.config | 15 +++++++-------- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/AzureBot/Controllers/MessagesController.cs b/AzureBot/Controllers/MessagesController.cs index 44368ab..4ac7034 100644 --- a/AzureBot/Controllers/MessagesController.cs +++ b/AzureBot/Controllers/MessagesController.cs @@ -3,11 +3,13 @@ using Dialogs; using Microsoft.Bot.Builder.Dialogs; using Microsoft.Bot.Connector; - using System; using System.Diagnostics; + using System.Linq; using System.Net.Http; + using System.Threading; using System.Threading.Tasks; using System.Web.Http; + [BotAuthentication] public class MessagesController : ApiController { @@ -23,6 +25,15 @@ public virtual async Task Post([FromBody] Activity activity { case ActivityTypes.Message: case ActivityTypes.ConversationUpdate: + + if (!string.IsNullOrEmpty(activity.Text) && + new[] { "cancel", "reset", "start over", "/deleteprofile" }.Any(c => activity.Text.Contains(c))) + { + StateClient stateClient = activity.GetStateClient(); + await stateClient.BotState.DeleteStateForUserAsync(activity.ChannelId, + activity.From.Id, + CancellationToken.None); + } await Conversation.SendAsync(activity, () => new RootDialog()); break; default: diff --git a/AzureBot/Web.config b/AzureBot/Web.config index dcef9fb..f82cbeb 100644 --- a/AzureBot/Web.config +++ b/AzureBot/Web.config @@ -5,18 +5,17 @@ --> - - - - + + + - - - - + + + + From acfc72dd2faa8c34d28010d66cf7b5dafa583339 Mon Sep 17 00:00:00 2001 From: Thiago Almeida Date: Mon, 12 Jun 2017 14:17:36 -0700 Subject: [PATCH 18/22] Fixing web.confing --- AzureBot/Web.config | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/AzureBot/Web.config b/AzureBot/Web.config index f82cbeb..dcef9fb 100644 --- a/AzureBot/Web.config +++ b/AzureBot/Web.config @@ -5,17 +5,18 @@ --> - - - + + + + - - - - + + + + From 3585f4aa18afba91a3108b09921c8cc2f9149241 Mon Sep 17 00:00:00 2001 From: Thiago Almeida Date: Fri, 23 Jun 2017 07:55:02 -0700 Subject: [PATCH 19/22] Updating LUIS files with latest --- AzureBot/LuisModel/AzureBot-Automation.json | 3040 ++++++------- .../LuisModel/AzureBot-ResourceGroups.json | 2732 ++++++------ AzureBot/LuisModel/AzureBot-Root.json | 3901 +++++++---------- AzureBot/LuisModel/AzureBot-VMs.json | 3612 ++++++++------- 4 files changed, 6402 insertions(+), 6883 deletions(-) diff --git a/AzureBot/LuisModel/AzureBot-Automation.json b/AzureBot/LuisModel/AzureBot-Automation.json index 7e11c6c..c0427f2 100644 --- a/AzureBot/LuisModel/AzureBot-Automation.json +++ b/AzureBot/LuisModel/AzureBot-Automation.json @@ -1,1614 +1,1428 @@ -{ - "luis_schema_version": "1.3.0", - "name": "AzureBot-Automation", - "desc": "A bot that can interact with Azure", - "culture": "en-us", - "intents": [ - { - "name": "ListAutomationAccounts" - }, - { - "name": "ListRunbooks" - }, - { - "name": "None" - }, - { - "name": "RunRunbook" - }, - { - "name": "ShowJobOutput" - }, - { - "name": "ShowRunbookDescription" - }, - { - "name": "StatusJob" - } - ], - "entities": [ - { - "name": "AutomationAccount" - }, - { - "name": "Job" - }, - { - "name": "Runbook" - } - ], - "composites": [], - "bing_entities": [ - "number", - "ordinal" - ], - "actions": [ - { - "actionName": "ShowRunbookDescription", - "intentName": "ShowRunbookDescription", - "actionParameters": [ - { - "parameterName": "runbookName", - "entityName": "Runbook", - "required": false - } - ] - }, - { - "actionName": "RunRunbook", - "intentName": "RunRunbook", - "actionParameters": [ - { - "parameterName": "runbookName", - "entityName": "Runbook", - "required": false - }, - { - "parameterName": "automationAccountName", - "entityName": "AutomationAccount", - "required": false - } - ] - }, - { - "actionName": "StatusJob", - "intentName": "StatusJob", - "actionParameters": [] - }, - { - "actionName": "ShowJobOutput", - "intentName": "ShowJobOutput", - "actionParameters": [ - { - "parameterName": "jobId", - "entityName": "Job", - "required": false - } - ] - } - ], - "model_features": [ - { - "name": "RunbookSynonyms", - "mode": true, - "words": "runbook,run book", - "activated": true - }, - { - "name": "ShowList", - "mode": true, - "words": "show,list", - "activated": true - } - ], - "regex_features": [], - "utterances": [ - { - "text": "user subscription 5", - "intent": "None", - "entities": [] - }, - { - "text": "stop vm abancc23", - "intent": "None", - "entities": [] - }, - { - "text": "delete virtual machine", - "intent": "None", - "entities": [] - }, - { - "text": "what subscription am i using", - "intent": "None", - "entities": [] - }, - { - "text": "switch sub to dev-internal2", - "intent": "None", - "entities": [] - }, - { - "text": "select subscription 12345", - "intent": "None", - "entities": [] - }, - { - "text": "show job1 output", - "intent": "ShowJobOutput", - "entities": [ - { - "entity": "Job", - "startPos": 1, - "endPos": 1 - } - ] - }, - { - "text": "remove vm", - "intent": "None", - "entities": [] - }, - { - "text": "what is my current subscription", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook psrunbook from accountthatdoesntexists automation account", - "intent": "RunRunbook", - "entities": [ - { - "entity": "AutomationAccount", - "startPos": 4, - "endPos": 4 - }, - { - "entity": "Runbook", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "switch subscription to x312345", - "intent": "None", - "entities": [] - }, - { - "text": "hi", - "intent": "None", - "entities": [] - }, - { - "text": "use subscription", - "intent": "None", - "entities": [] - }, - { - "text": "create virtual machine xysz", - "intent": "None", - "entities": [] - }, - { - "text": "create vm xyzs", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook psrunbook from non-existentaccount automation account", - "intent": "RunRunbook", - "entities": [ - { - "entity": "AutomationAccount", - "startPos": 4, - "endPos": 6 - }, - { - "entity": "Runbook", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "list subs", - "intent": "None", - "entities": [] - }, - { - "text": "stop abancc23 vm", - "intent": "None", - "entities": [] - }, - { - "text": "start vm encta02", - "intent": "None", - "entities": [] - }, - { - "text": "select subscription onetwo", - "intent": "None", - "entities": [] - }, - { - "text": "what's my current subscription", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook psrunbook from testez automation account", - "intent": "RunRunbook", - "entities": [ - { - "entity": "AutomationAccount", - "startPos": 4, - "endPos": 4 - }, - { - "entity": "Runbook", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "current subscription", - "intent": "None", - "entities": [] - }, - { - "text": "hello", - "intent": "None", - "entities": [] - }, - { - "text": "use the ximbustestcloud subscription", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook", - "intent": "RunRunbook", - "entities": [] - }, - { - "text": "remove virtual machine xxxx", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown dev012qa1 virtual machine", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown x34-prod virtual machine", - "intent": "None", - "entities": [] - }, - { - "text": "what's subscription am i using?", - "intent": "None", - "entities": [] - }, - { - "text": "select the azure training kit subscription", - "intent": "None", - "entities": [] - }, - { - "text": "select the develop01 subscription", - "intent": "None", - "entities": [] - }, - { - "text": "use subscription pepep", - "intent": "None", - "entities": [] - }, - { - "text": "remove vm xyasda", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook psrunbook from non-existent-account automation account", - "intent": "RunRunbook", - "entities": [ - { - "entity": "AutomationAccount", - "startPos": 4, - "endPos": 8 - }, - { - "entity": "Runbook", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "what is my current subscription?", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook aadscdemo-get-wunderlistuser from stefstrauto automation account", - "intent": "RunRunbook", - "entities": [ - { - "entity": "AutomationAccount", - "startPos": 8, - "endPos": 8 - }, - { - "entity": "Runbook", - "startPos": 2, - "endPos": 6 - } - ] - }, - { - "text": "run runbook hello-world from autdevqa automation account", - "intent": "RunRunbook", - "entities": [ - { - "entity": "AutomationAccount", - "startPos": 6, - "endPos": 6 - }, - { - "entity": "Runbook", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "stop vm", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown pilea-dev vm", - "intent": "None", - "entities": [] - }, - { - "text": "delete vm xxxx", - "intent": "None", - "entities": [] - }, - { - "text": "what's my current subscription?", - "intent": "None", - "entities": [] - }, - { - "text": "change to subscription ximbus deployment test", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown server05 vm", - "intent": "None", - "entities": [] - }, - { - "text": "start run book cleanup-demos-msdn100", - "intent": "RunRunbook", - "entities": [ - { - "entity": "Runbook", - "startPos": 3, - "endPos": 7 - } - ] - }, - { - "text": "use subscription dev-test", - "intent": "None", - "entities": [] - }, - { - "text": "select subscription qa", - "intent": "None", - "entities": [] - }, - { - "text": "use the ximbustestlab subcription", - "intent": "None", - "entities": [] - }, - { - "text": "remove vm xxxx", - "intent": "None", - "entities": [] - }, - { - "text": "my jobs", - "intent": "StatusJob", - "entities": [] - }, - { - "text": "select the third subscription", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook prod-dev from qa-internal-2 automation account", - "intent": "RunRunbook", - "entities": [ - { - "entity": "AutomationAccount", - "startPos": 6, - "endPos": 10 - }, - { - "entity": "Runbook", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "start vm", - "intent": "None", - "entities": [] - }, - { - "text": "stop server01 vm", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook cleanup-demos-msdn100", - "intent": "RunRunbook", - "entities": [ - { - "entity": "Runbook", - "startPos": 2, - "endPos": 6 - } - ] - }, - { - "text": "change to subscription media service private prod", - "intent": "None", - "entities": [] - }, - { - "text": "stop server03 virtual machine", - "intent": "None", - "entities": [] - }, - { - "text": "select the acom-test subscription", - "intent": "None", - "entities": [] - }, - { - "text": "signout", - "intent": "None", - "entities": [] - }, - { - "text": "start run book restore-azuredb", - "intent": "RunRunbook", - "entities": [ - { - "entity": "Runbook", - "startPos": 3, - "endPos": 5 - } - ] - }, - { - "text": "give me the status of a job", - "intent": "StatusJob", - "entities": [] - }, - { - "text": "use subscription production", - "intent": "None", - "entities": [] - }, - { - "text": "use the xxx subscription", - "intent": "None", - "entities": [] - }, - { - "text": "status job", - "intent": "StatusJob", - "entities": [] - }, - { - "text": "start the third one", - "intent": "None", - "entities": [] - }, - { - "text": "start the x runbook", - "intent": "RunRunbook", - "entities": [ - { - "entity": "Runbook", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "show me the job status", - "intent": "StatusJob", - "entities": [] - }, - { - "text": "list my virtual machines", - "intent": "None", - "entities": [] - }, - { - "text": "start dev-vm1 virtual machine", - "intent": "None", - "entities": [] - }, - { - "text": "stop qa-dev-01 virtual machine", - "intent": "None", - "entities": [] - }, - { - "text": "list my automation accounts", - "intent": "ListAutomationAccounts", - "entities": [] - }, - { - "text": "use the devtest subscription", - "intent": "None", - "entities": [] - }, - { - "text": "start vm server01", - "intent": "None", - "entities": [] - }, - { - "text": "job status", - "intent": "StatusJob", - "entities": [] - }, - { - "text": "start runbook hello-world", - "intent": "RunRunbook", - "entities": [ - { - "entity": "Runbook", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "use subscription manifold-test", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook restore-resourcegroups", - "intent": "RunRunbook", - "entities": [ - { - "entity": "Runbook", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "change to the acom-test subscription", - "intent": "None", - "entities": [] - }, - { - "text": "use the second one", - "intent": "None", - "entities": [] - }, - { - "text": "run the configurevm runbook", - "intent": "RunRunbook", - "entities": [ - { - "entity": "Runbook", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "switch subscription to powerbi pre-prod", - "intent": "None", - "entities": [] - }, - { - "text": "start run book restore-resourcegroups", - "intent": "RunRunbook", - "entities": [ - { - "entity": "Runbook", - "startPos": 3, - "endPos": 5 - } - ] - }, - { - "text": "select subscription wenham-qa", - "intent": "None", - "entities": [] - }, - { - "text": "runbook status", - "intent": "StatusJob", - "entities": [] - }, - { - "text": "start virtual machine newserver01", - "intent": "None", - "entities": [] - }, - { - "text": "list automation accounts", - "intent": "ListAutomationAccounts", - "entities": [] - }, - { - "text": "show me the status of a job", - "intent": "StatusJob", - "entities": [] - }, - { - "text": "what are the virtual machines?", - "intent": "None", - "entities": [] - }, - { - "text": "list vms", - "intent": "None", - "entities": [] - }, - { - "text": "stop pilea-dev vm", - "intent": "None", - "entities": [] - }, - { - "text": "switch to the dev-test subscription", - "intent": "None", - "entities": [] - }, - { - "text": "start server02 virtual machine", - "intent": "None", - "entities": [] - }, - { - "text": "what's the subscription am i using", - "intent": "None", - "entities": [] - }, - { - "text": "use subscription pepe", - "intent": "None", - "entities": [] - }, - { - "text": "change subscription to wacom devtest", - "intent": "None", - "entities": [] - }, - { - "text": "start server01 vm", - "intent": "None", - "entities": [] - }, - { - "text": "stop vm integration-server", - "intent": "None", - "entities": [] - }, - { - "text": "switch sub to acom pre-prod", - "intent": "None", - "entities": [] - }, - { - "text": "start the xxy virtual machine", - "intent": "None", - "entities": [] - }, - { - "text": "start pilea-qa vm", - "intent": "None", - "entities": [] - }, - { - "text": "can you please list my virtual machines", - "intent": "None", - "entities": [] - }, - { - "text": "select dev-test subscription", - "intent": "None", - "entities": [] - }, - { - "text": "use the staging subscription", - "intent": "None", - "entities": [] - }, - { - "text": "list virtual machines", - "intent": "None", - "entities": [] - }, - { - "text": "use subscription devdev", - "intent": "None", - "entities": [] - }, - { - "text": "start vm server-01", - "intent": "None", - "entities": [] - }, - { - "text": "what is the subscription am i using?", - "intent": "None", - "entities": [] - }, - { - "text": "start vm pilea-vm", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown vm 1234", - "intent": "None", - "entities": [] - }, - { - "text": "change sub to devtest", - "intent": "None", - "entities": [] - }, - { - "text": "enumerate vms", - "intent": "None", - "entities": [] - }, - { - "text": "stop vm cloudsvr", - "intent": "None", - "entities": [] - }, - { - "text": "stop vm winservervm", - "intent": "None", - "entities": [] - }, - { - "text": "stop virtual machine pilea-vm", - "intent": "None", - "entities": [] - }, - { - "text": "use the staging-01 subscription", - "intent": "None", - "entities": [] - }, - { - "text": "launch the 12314 runbook", - "intent": "RunRunbook", - "entities": [ - { - "entity": "Runbook", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "logoff", - "intent": "None", - "entities": [] - }, - { - "text": "stop virtual machine 12345", - "intent": "None", - "entities": [] - }, - { - "text": "stop the abancc23 vm", - "intent": "None", - "entities": [] - }, - { - "text": "choose the falkfajsfk subscription", - "intent": "None", - "entities": [] - }, - { - "text": "choose subscription qa-internal", - "intent": "None", - "entities": [] - }, - { - "text": "run runbook", - "intent": "RunRunbook", - "entities": [] - }, - { - "text": "stop the jauakaka virtual machine", - "intent": "None", - "entities": [] - }, - { - "text": "create vm", - "intent": "None", - "entities": [] - }, - { - "text": "list all vms", - "intent": "None", - "entities": [] - }, - { - "text": "use the dev-test subscription", - "intent": "None", - "entities": [] - }, - { - "text": "start virtual machine pilea-vm", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown vm pilea-vm", - "intent": "None", - "entities": [] - }, - { - "text": "change subscription to x2331atest", - "intent": "None", - "entities": [] - }, - { - "text": "select the first subscription", - "intent": "None", - "entities": [] - }, - { - "text": "start vm cloudsvr", - "intent": "None", - "entities": [] - }, - { - "text": "change my subscription", - "intent": "None", - "entities": [] - }, - { - "text": "launch runbook testbk01", - "intent": "RunRunbook", - "entities": [ - { - "entity": "Runbook", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "start run book", - "intent": "RunRunbook", - "entities": [] - }, - { - "text": "what's the subscription am i using?", - "intent": "None", - "entities": [] - }, - { - "text": "logout", - "intent": "None", - "entities": [] - }, - { - "text": "stop the pilea-vm virtual machine", - "intent": "None", - "entities": [] - }, - { - "text": "run the deded azure runbook", - "intent": "RunRunbook", - "entities": [ - { - "entity": "Runbook", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "start vm 234afsfs", - "intent": "None", - "entities": [] - }, - { - "text": "run the oapapap runbook", - "intent": "RunRunbook", - "entities": [ - { - "entity": "Runbook", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "help", - "intent": "None", - "entities": [] - }, - { - "text": "stop the cloudsvr vm", - "intent": "None", - "entities": [] - }, - { - "text": "use subscription q-internal", - "intent": "None", - "entities": [] - }, - { - "text": "stop the server01 vm", - "intent": "None", - "entities": [] - }, - { - "text": "stop the qweruw vm", - "intent": "None", - "entities": [] - }, - { - "text": "show all subscriptions", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown virtual machine", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown vm 12345", - "intent": "None", - "entities": [] - }, - { - "text": "use sub qadev1", - "intent": "None", - "entities": [] - }, - { - "text": "start azure runbook mybook", - "intent": "RunRunbook", - "entities": [ - { - "entity": "Runbook", - "startPos": 3, - "endPos": 3 - } - ] - }, - { - "text": "sign out", - "intent": "None", - "entities": [] - }, - { - "text": "start the abcdef23 vm", - "intent": "None", - "entities": [] - }, - { - "text": "run runbook test01", - "intent": "RunRunbook", - "entities": [ - { - "entity": "Runbook", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "start the cloudsvr vm", - "intent": "None", - "entities": [] - }, - { - "text": "start the pilea-vm virtual machine", - "intent": "None", - "entities": [] - }, - { - "text": "which are my subscriptions?", - "intent": "None", - "entities": [] - }, - { - "text": "stop vm osisksks214", - "intent": "None", - "entities": [] - }, - { - "text": "show subscriptions", - "intent": "None", - "entities": [] - }, - { - "text": "switch subscription to qaprod", - "intent": "None", - "entities": [] - }, - { - "text": "start the pilea vm", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown vm", - "intent": "None", - "entities": [] - }, - { - "text": "start the yyyy virtual machine", - "intent": "None", - "entities": [] - }, - { - "text": "log off", - "intent": "None", - "entities": [] - }, - { - "text": "stop virtual machine zaraza", - "intent": "None", - "entities": [] - }, - { - "text": "stop the pilea-vm vm", - "intent": "None", - "entities": [] - }, - { - "text": "list vm", - "intent": "None", - "entities": [] - }, - { - "text": "run azure runbook jujujuj", - "intent": "RunRunbook", - "entities": [ - { - "entity": "Runbook", - "startPos": 3, - "endPos": 3 - } - ] - }, - { - "text": "start runbook 0101011", - "intent": "RunRunbook", - "entities": [ - { - "entity": "Runbook", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "start the pilea-vm vm", - "intent": "None", - "entities": [] - }, - { - "text": "show me the subscriptions", - "intent": "None", - "entities": [] - }, - { - "text": "stop the pilea vm", - "intent": "None", - "entities": [] - }, - { - "text": "list the vms", - "intent": "None", - "entities": [] - }, - { - "text": "start virtual machine xxxx", - "intent": "None", - "entities": [] - }, - { - "text": "stop vm x0324aa", - "intent": "None", - "entities": [] - }, - { - "text": "what's my currrent subscription?", - "intent": "None", - "entities": [] - }, - { - "text": "5", - "intent": "None", - "entities": [] - }, - { - "text": "switch sub to devtest", - "intent": "None", - "entities": [] - }, - { - "text": "start vm \"pilea-vm\"", - "intent": "None", - "entities": [] - }, - { - "text": "stop vm myserver", - "intent": "None", - "entities": [] - }, - { - "text": "what is the subscription am i using", - "intent": "None", - "entities": [] - }, - { - "text": "stop vm pilea-vm", - "intent": "None", - "entities": [] - }, - { - "text": "start the alalala runbook", - "intent": "RunRunbook", - "entities": [ - { - "entity": "Runbook", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "list the virtual machines", - "intent": "None", - "entities": [] - }, - { - "text": "start vm server1", - "intent": "None", - "entities": [] - }, - { - "text": "start virtual machine kajakakxd", - "intent": "None", - "entities": [] - }, - { - "text": "log out", - "intent": "None", - "entities": [] - }, - { - "text": "show me all virtual machines", - "intent": "None", - "entities": [] - }, - { - "text": "start vm myserver", - "intent": "None", - "entities": [] - }, - { - "text": "help me", - "intent": "None", - "entities": [] - }, - { - "text": "show vms", - "intent": "None", - "entities": [] - }, - { - "text": "list subscriptions", - "intent": "None", - "entities": [] - }, - { - "text": "list my subs", - "intent": "None", - "entities": [] - }, - { - "text": "delete vm", - "intent": "None", - "entities": [] - }, - { - "text": "test", - "intent": "None", - "entities": [] - }, - { - "text": "list my runbooks", - "intent": "ListRunbooks", - "entities": [] - }, - { - "text": "list runbooks", - "intent": "ListRunbooks", - "entities": [] - }, - { - "text": "show runbooks", - "intent": "ListRunbooks", - "entities": [] - }, - { - "text": "show me my runbooks", - "intent": "ListRunbooks", - "entities": [] - }, - { - "text": "show job15 output", - "intent": "ShowJobOutput", - "entities": [ - { - "entity": "Job", - "startPos": 1, - "endPos": 1 - } - ] - }, - { - "text": "show runbook cleanup-demos-msdn100 description", - "intent": "ShowRunbookDescription", - "entities": [ - { - "entity": "Runbook", - "startPos": 2, - "endPos": 6 - } - ] - }, - { - "text": "start runbook cleanup-demos-msdn100 from devops-automation automation account", - "intent": "RunRunbook", - "entities": [ - { - "entity": "AutomationAccount", - "startPos": 8, - "endPos": 10 - }, - { - "entity": "Runbook", - "startPos": 2, - "endPos": 6 - } - ] - }, - { - "text": "show runbook psrunbook description", - "intent": "ShowRunbookDescription", - "entities": [ - { - "entity": "Runbook", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "show runbook write-helloworld description", - "intent": "ShowRunbookDescription", - "entities": [ - { - "entity": "Runbook", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "list runbook remove-resourcegroups description", - "intent": "ShowRunbookDescription", - "entities": [ - { - "entity": "Runbook", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "list job1 output", - "intent": "ShowJobOutput", - "entities": [ - { - "entity": "Job", - "startPos": 1, - "endPos": 1 - } - ] - }, - { - "text": "start cleanup-demos-msdn100 runbook", - "intent": "RunRunbook", - "entities": [ - { - "entity": "Runbook", - "startPos": 1, - "endPos": 4 - }, - { - "entity": "Runbook", - "startPos": 5, - "endPos": 5 - } - ] - }, - { - "text": "start runbook remove-resourcegroups", - "intent": "RunRunbook", - "entities": [ - { - "entity": "Runbook", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "start remove-resourcegroups runbook", - "intent": "RunRunbook", - "entities": [ - { - "entity": "Runbook", - "startPos": 1, - "endPos": 3 - } - ] - }, - { - "text": "start all virtual machines", - "intent": "None", - "entities": [] - }, - { - "text": "start all vms", - "intent": "None", - "entities": [] - }, - { - "text": "start all my virtual machines", - "intent": "None", - "entities": [] - }, - { - "text": "start all my vms", - "intent": "None", - "entities": [] - }, - { - "text": "stop all virtual machines", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown all virtual machines", - "intent": "None", - "entities": [] - }, - { - "text": "stop all vms", - "intent": "None", - "entities": [] - }, - { - "text": "stop all my virtual machines", - "intent": "None", - "entities": [] - }, - { - "text": "stop all my vms", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown all my virtual machines", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown all my vms", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook cleanup-all-my-resource-groups", - "intent": "RunRunbook", - "entities": [ - { - "entity": "Runbook", - "startPos": 2, - "endPos": 10 - } - ] - }, - { - "text": "start all vms from azurebot-development resource group", - "intent": "None", - "entities": [] - }, - { - "text": "show runbook aademo-helloworld description", - "intent": "ShowRunbookDescription", - "entities": [ - { - "entity": "Runbook", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "stop all vms from azurebot-development resource group", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown all vms from azurebot-development resource group", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown all vms from test-ez resource group", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown all vms from coreos1vm resource group", - "intent": "None", - "entities": [] - }, - { - "text": "start all vms from coreos1vm resource group", - "intent": "None", - "entities": [] - }, - { - "text": "stop all vms from coreos1vm resource group", - "intent": "None", - "entities": [] - }, - { - "text": "stop all vms from test-ez resource group", - "intent": "None", - "entities": [] - }, - { - "text": "start all vms from test-ez resource group", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown all vms from test-ez-rg resource group", - "intent": "None", - "entities": [] - }, - { - "text": "stop all vms from test-ez-rg resource group", - "intent": "None", - "entities": [] - }, - { - "text": "start all vms from test-ez-rg resource group", - "intent": "None", - "entities": [] - }, - { - "text": "show runbook description", - "intent": "ShowRunbookDescription", - "entities": [] - }, - { - "text": "list my resource groups", - "intent": "None", - "entities": [] - }, - { - "text": "what resource groups do i have?", - "intent": "None", - "entities": [] - }, - { - "text": "list my rgs", - "intent": "None", - "entities": [] - }, - { - "text": "what rgs do i have?", - "intent": "None", - "entities": [] - }, - { - "text": "list rgs", - "intent": "None", - "entities": [] - }, - { - "text": "list resource groups", - "intent": "None", - "entities": [] - }, - { - "text": "list subsctiptions", - "intent": "None", - "entities": [] - }, - { - "text": "start all vms from azrbot-development resource group", - "intent": "None", - "entities": [] - }, - { - "text": "select azurebotprod_event subscription", - "intent": "None", - "entities": [] - }, - { - "text": "select subscription azurebotprod_events", - "intent": "None", - "entities": [] - }, - { - "text": "start all vms from resource group azrbot-development", - "intent": "None", - "entities": [] - }, - { - "text": "select azurebotprod_events subscription", - "intent": "None", - "entities": [] - }, - { - "text": "switch azurebotprod_events subscription", - "intent": "None", - "entities": [] - }, - { - "text": "select azurebotvsts_events subscription", - "intent": "None", - "entities": [] - } - ] +{ + "luis_schema_version": "2.1.0", + "versionId": "0.1", + "name": "AzureBot-Automation", + "desc": "A bot that can interact with Azure", + "culture": "en-us", + "intents": [ + { + "name": "ListAutomationAccounts" + }, + { + "name": "ListRunbooks" + }, + { + "name": "None" + }, + { + "name": "RunRunbook" + }, + { + "name": "ShowJobOutput" + }, + { + "name": "ShowRunbookDescription" + }, + { + "name": "StatusJob" + } + ], + "entities": [ + { + "name": "AutomationAccount" + }, + { + "name": "Job" + }, + { + "name": "Runbook" + } + ], + "composites": [], + "closedLists": [], + "bing_entities": [ + "number", + "ordinal" + ], + "actions": [ + { + "actionName": "RunRunbook", + "intentName": "RunRunbook", + "channel": null, + "actionParameters": [ + { + "parameterName": "runbookName", + "entityName": "Runbook", + "required": false, + "question": null, + "phraseListFeatureName": null + }, + { + "parameterName": "automationAccountName", + "entityName": "AutomationAccount", + "required": false, + "question": null, + "phraseListFeatureName": null + } + ] + }, + { + "actionName": "ShowJobOutput", + "intentName": "ShowJobOutput", + "channel": null, + "actionParameters": [ + { + "parameterName": "jobId", + "entityName": "Job", + "required": false, + "question": null, + "phraseListFeatureName": null + } + ] + }, + { + "actionName": "ShowRunbookDescription", + "intentName": "ShowRunbookDescription", + "channel": null, + "actionParameters": [ + { + "parameterName": "runbookName", + "entityName": "Runbook", + "required": false, + "question": null, + "phraseListFeatureName": null + } + ] + }, + { + "actionName": "StatusJob", + "intentName": "StatusJob", + "channel": null, + "actionParameters": [] + } + ], + "model_features": [ + { + "name": "RunbookSynonyms", + "mode": true, + "words": "runbook,run book", + "activated": true + }, + { + "name": "ShowList", + "mode": true, + "words": "show,list", + "activated": true + } + ], + "regex_features": [], + "utterances": [ + { + "text": "hello", + "intent": "None", + "entities": [] + }, + { + "text": "hi", + "intent": "None", + "entities": [] + }, + { + "text": "test", + "intent": "None", + "entities": [] + }, + { + "text": "help", + "intent": "None", + "entities": [] + }, + { + "text": "help me", + "intent": "None", + "entities": [] + }, + { + "text": "log out", + "intent": "None", + "entities": [] + }, + { + "text": "5", + "intent": "None", + "entities": [] + }, + { + "text": "log off", + "intent": "None", + "entities": [] + }, + { + "text": "sign out", + "intent": "None", + "entities": [] + }, + { + "text": "logout", + "intent": "None", + "entities": [] + }, + { + "text": "create vm", + "intent": "None", + "entities": [] + }, + { + "text": "logoff", + "intent": "None", + "entities": [] + }, + { + "text": "list virtual machines", + "intent": "None", + "entities": [] + }, + { + "text": "list vms", + "intent": "None", + "entities": [] + }, + { + "text": "list my virtual machines", + "intent": "None", + "entities": [] + }, + { + "text": "start vm", + "intent": "None", + "entities": [] + }, + { + "text": "stop vm", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook", + "intent": "RunRunbook", + "entities": [] + }, + { + "text": "remove vm", + "intent": "None", + "entities": [] + }, + { + "text": "delete vm", + "intent": "None", + "entities": [] + }, + { + "text": "list my subs", + "intent": "None", + "entities": [] + }, + { + "text": "list subscriptions", + "intent": "None", + "entities": [] + }, + { + "text": "show vms", + "intent": "None", + "entities": [] + }, + { + "text": "list my resource groups", + "intent": "None", + "entities": [] + }, + { + "text": "start vm myserver", + "intent": "None", + "entities": [] + }, + { + "text": "start vm server1", + "intent": "None", + "entities": [] + }, + { + "text": "start virtual machine xxxx", + "intent": "None", + "entities": [] + }, + { + "text": "start the yyyy virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "start the abcdef23 vm", + "intent": "None", + "entities": [] + }, + { + "text": "start vm 234afsfs", + "intent": "None", + "entities": [] + }, + { + "text": "start virtual machine kajakakxd", + "intent": "None", + "entities": [] + }, + { + "text": "stop vm x0324aa", + "intent": "None", + "entities": [] + }, + { + "text": "stop virtual machine zaraza", + "intent": "None", + "entities": [] + }, + { + "text": "stop vm osisksks214", + "intent": "None", + "entities": [] + }, + { + "text": "stop the qweruw vm", + "intent": "None", + "entities": [] + }, + { + "text": "stop the jauakaka virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "stop virtual machine 12345", + "intent": "None", + "entities": [] + }, + { + "text": "start the xxy virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "start virtual machine newserver01", + "intent": "None", + "entities": [] + }, + { + "text": "use the devtest subscription", + "intent": "None", + "entities": [] + }, + { + "text": "use subscription production", + "intent": "None", + "entities": [] + }, + { + "text": "select subscription qa", + "intent": "None", + "entities": [] + }, + { + "text": "select the develop01 subscription", + "intent": "None", + "entities": [] + }, + { + "text": "select subscription onetwo", + "intent": "None", + "entities": [] + }, + { + "text": "select subscription 12345", + "intent": "None", + "entities": [] + }, + { + "text": "choose subscription qa-internal", + "intent": "None", + "entities": [] + }, + { + "text": "choose the falkfajsfk subscription", + "intent": "None", + "entities": [] + }, + { + "text": "show me all virtual machines", + "intent": "None", + "entities": [] + }, + { + "text": "list the virtual machines", + "intent": "None", + "entities": [] + }, + { + "text": "list the vms", + "intent": "None", + "entities": [] + }, + { + "text": "list vm", + "intent": "None", + "entities": [] + }, + { + "text": "run runbook test01", + "intent": "RunRunbook", + "entities": [ + { + "entity": "Runbook", + "startPos": 12, + "endPos": 17 + } + ] + }, + { + "text": "run the oapapap runbook", + "intent": "RunRunbook", + "entities": [ + { + "entity": "Runbook", + "startPos": 8, + "endPos": 14 + } + ] + }, + { + "text": "launch runbook testbk01", + "intent": "RunRunbook", + "entities": [ + { + "entity": "Runbook", + "startPos": 15, + "endPos": 22 + } + ] + }, + { + "text": "launch the 12314 runbook", + "intent": "RunRunbook", + "entities": [ + { + "entity": "Runbook", + "startPos": 11, + "endPos": 15 + } + ] + }, + { + "text": "start the alalala runbook", + "intent": "RunRunbook", + "entities": [ + { + "entity": "Runbook", + "startPos": 10, + "endPos": 16 + } + ] + }, + { + "text": "start runbook 0101011", + "intent": "RunRunbook", + "entities": [ + { + "entity": "Runbook", + "startPos": 14, + "endPos": 20 + } + ] + }, + { + "text": "run azure runbook jujujuj", + "intent": "RunRunbook", + "entities": [ + { + "entity": "Runbook", + "startPos": 18, + "endPos": 24 + } + ] + }, + { + "text": "start azure runbook mybook", + "intent": "RunRunbook", + "entities": [ + { + "entity": "Runbook", + "startPos": 20, + "endPos": 25 + } + ] + }, + { + "text": "run the deded azure runbook", + "intent": "RunRunbook", + "entities": [ + { + "entity": "Runbook", + "startPos": 8, + "endPos": 12 + } + ] + }, + { + "text": "use the dev-test subscription", + "intent": "None", + "entities": [] + }, + { + "text": "enumerate vms", + "intent": "None", + "entities": [] + }, + { + "text": "use subscription devdev", + "intent": "None", + "entities": [] + }, + { + "text": "what are the virtual machines?", + "intent": "None", + "entities": [] + }, + { + "text": "start vm server01", + "intent": "None", + "entities": [] + }, + { + "text": "use the xxx subscription", + "intent": "None", + "entities": [] + }, + { + "text": "use subscription dev-test", + "intent": "None", + "entities": [] + }, + { + "text": "use subscription pepep", + "intent": "None", + "entities": [] + }, + { + "text": "stop abancc23 vm", + "intent": "None", + "entities": [] + }, + { + "text": "stop vm abancc23", + "intent": "None", + "entities": [] + }, + { + "text": "stop the server01 vm", + "intent": "None", + "entities": [] + }, + { + "text": "list all vms", + "intent": "None", + "entities": [] + }, + { + "text": "stop the abancc23 vm", + "intent": "None", + "entities": [] + }, + { + "text": "stop vm myserver", + "intent": "None", + "entities": [] + }, + { + "text": "show me the subscriptions", + "intent": "None", + "entities": [] + }, + { + "text": "show subscriptions", + "intent": "None", + "entities": [] + }, + { + "text": "which are my subscriptions?", + "intent": "None", + "entities": [] + }, + { + "text": "show all subscriptions", + "intent": "None", + "entities": [] + }, + { + "text": "select the first subscription", + "intent": "None", + "entities": [] + }, + { + "text": "use the staging-01 subscription", + "intent": "None", + "entities": [] + }, + { + "text": "use the staging subscription", + "intent": "None", + "entities": [] + }, + { + "text": "use subscription pepe", + "intent": "None", + "entities": [] + }, + { + "text": "run the configurevm runbook", + "intent": "RunRunbook", + "entities": [ + { + "entity": "Runbook", + "startPos": 8, + "endPos": 18 + } + ] + }, + { + "text": "start the x runbook", + "intent": "RunRunbook", + "entities": [ + { + "entity": "Runbook", + "startPos": 10, + "endPos": 10 + } + ] + }, + { + "text": "select the third subscription", + "intent": "None", + "entities": [] + }, + { + "text": "use the second one", + "intent": "None", + "entities": [] + }, + { + "text": "start the third one", + "intent": "None", + "entities": [] + }, + { + "text": "signout", + "intent": "None", + "entities": [] + }, + { + "text": "remove vm xxxx", + "intent": "None", + "entities": [] + }, + { + "text": "delete vm xxxx", + "intent": "None", + "entities": [] + }, + { + "text": "remove virtual machine xxxx", + "intent": "None", + "entities": [] + }, + { + "text": "remove vm xyasda", + "intent": "None", + "entities": [] + }, + { + "text": "create vm xyzs", + "intent": "None", + "entities": [] + }, + { + "text": "create virtual machine xysz", + "intent": "None", + "entities": [] + }, + { + "text": "delete virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "start run book", + "intent": "RunRunbook", + "entities": [] + }, + { + "text": "run runbook", + "intent": "RunRunbook", + "entities": [] + }, + { + "text": "start vm pilea-vm", + "intent": "None", + "entities": [] + }, + { + "text": "stop vm pilea-vm", + "intent": "None", + "entities": [] + }, + { + "text": "start the pilea-vm vm", + "intent": "None", + "entities": [] + }, + { + "text": "stop the pilea-vm vm", + "intent": "None", + "entities": [] + }, + { + "text": "start the pilea-vm virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "stop the pilea-vm virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "start virtual machine pilea-vm", + "intent": "None", + "entities": [] + }, + { + "text": "stop virtual machine pilea-vm", + "intent": "None", + "entities": [] + }, + { + "text": "start vm server-01", + "intent": "None", + "entities": [] + }, + { + "text": "stop vm integration-server", + "intent": "None", + "entities": [] + }, + { + "text": "switch to the dev-test subscription", + "intent": "None", + "entities": [] + }, + { + "text": "change to the acom-test subscription", + "intent": "None", + "entities": [] + }, + { + "text": "select the acom-test subscription", + "intent": "None", + "entities": [] + }, + { + "text": "select subscription wenham-qa", + "intent": "None", + "entities": [] + }, + { + "text": "use subscription manifold-test", + "intent": "None", + "entities": [] + }, + { + "text": "change to subscription ximbus deployment test", + "intent": "None", + "entities": [] + }, + { + "text": "use the ximbustestlab subcription", + "intent": "None", + "entities": [] + }, + { + "text": "use the ximbustestcloud subscription", + "intent": "None", + "entities": [] + }, + { + "text": "select the azure training kit subscription", + "intent": "None", + "entities": [] + }, + { + "text": "start vm encta02", + "intent": "None", + "entities": [] + }, + { + "text": "use subscription", + "intent": "None", + "entities": [] + }, + { + "text": "change my subscription", + "intent": "None", + "entities": [] + }, + { + "text": "stop vm winservervm", + "intent": "None", + "entities": [] + }, + { + "text": "can you please list my virtual machines", + "intent": "None", + "entities": [] + }, + { + "text": "start vm \"pilea-vm\"", + "intent": "None", + "entities": [] + }, + { + "text": "stop the pilea vm", + "intent": "None", + "entities": [] + }, + { + "text": "start the cloudsvr vm", + "intent": "None", + "entities": [] + }, + { + "text": "stop the cloudsvr vm", + "intent": "None", + "entities": [] + }, + { + "text": "start vm cloudsvr", + "intent": "None", + "entities": [] + }, + { + "text": "select dev-test subscription", + "intent": "None", + "entities": [] + }, + { + "text": "show me the status of a job", + "intent": "StatusJob", + "entities": [] + }, + { + "text": "job status", + "intent": "StatusJob", + "entities": [] + }, + { + "text": "status job", + "intent": "StatusJob", + "entities": [] + }, + { + "text": "my jobs", + "intent": "StatusJob", + "entities": [] + }, + { + "text": "runbook status", + "intent": "StatusJob", + "entities": [] + }, + { + "text": "show me the job status", + "intent": "StatusJob", + "entities": [] + }, + { + "text": "give me the status of a job", + "intent": "StatusJob", + "entities": [] + }, + { + "text": "what's my current subscription?", + "intent": "None", + "entities": [] + }, + { + "text": "what is my current subscription?", + "intent": "None", + "entities": [] + }, + { + "text": "what's subscription am i using?", + "intent": "None", + "entities": [] + }, + { + "text": "what's my current subscription", + "intent": "None", + "entities": [] + }, + { + "text": "what is my current subscription", + "intent": "None", + "entities": [] + }, + { + "text": "what subscription am i using", + "intent": "None", + "entities": [] + }, + { + "text": "what's the subscription am i using?", + "intent": "None", + "entities": [] + }, + { + "text": "what is the subscription am i using?", + "intent": "None", + "entities": [] + }, + { + "text": "what's the subscription am i using", + "intent": "None", + "entities": [] + }, + { + "text": "what is the subscription am i using", + "intent": "None", + "entities": [] + }, + { + "text": "what's my currrent subscription?", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown vm", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown vm 1234", + "intent": "None", + "entities": [] + }, + { + "text": "start server01 vm", + "intent": "None", + "entities": [] + }, + { + "text": "start pilea-qa vm", + "intent": "None", + "entities": [] + }, + { + "text": "start server02 virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "start dev-vm1 virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "stop server01 vm", + "intent": "None", + "entities": [] + }, + { + "text": "stop pilea-dev vm", + "intent": "None", + "entities": [] + }, + { + "text": "stop server03 virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown server05 vm", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown dev012qa1 virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown x34-prod virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "switch sub to dev-internal2", + "intent": "None", + "entities": [] + }, + { + "text": "switch subscription to qaprod", + "intent": "None", + "entities": [] + }, + { + "text": "use subscription q-internal", + "intent": "None", + "entities": [] + }, + { + "text": "change subscription to x2331atest", + "intent": "None", + "entities": [] + }, + { + "text": "switch sub to acom pre-prod", + "intent": "None", + "entities": [] + }, + { + "text": "change subscription to wacom devtest", + "intent": "None", + "entities": [] + }, + { + "text": "switch subscription to powerbi pre-prod", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook hello-world", + "intent": "RunRunbook", + "entities": [ + { + "entity": "Runbook", + "startPos": 14, + "endPos": 24 + } + ] + }, + { + "text": "start runbook cleanup-demos-msdn100", + "intent": "RunRunbook", + "entities": [ + { + "entity": "Runbook", + "startPos": 14, + "endPos": 34 + } + ] + }, + { + "text": "start run book restore-resourcegroups", + "intent": "RunRunbook", + "entities": [ + { + "entity": "Runbook", + "startPos": 15, + "endPos": 36 + } + ] + }, + { + "text": "start runbook restore-resourcegroups", + "intent": "RunRunbook", + "entities": [ + { + "entity": "Runbook", + "startPos": 14, + "endPos": 35 + } + ] + }, + { + "text": "start run book restore-azuredb", + "intent": "RunRunbook", + "entities": [ + { + "entity": "Runbook", + "startPos": 15, + "endPos": 29 + } + ] + }, + { + "text": "start run book cleanup-demos-msdn100", + "intent": "RunRunbook", + "entities": [ + { + "entity": "Runbook", + "startPos": 15, + "endPos": 35 + } + ] + }, + { + "text": "stop all vms", + "intent": "None", + "entities": [] + }, + { + "text": "list automation accounts", + "intent": "ListAutomationAccounts", + "entities": [] + }, + { + "text": "list my automation accounts", + "intent": "ListAutomationAccounts", + "entities": [] + }, + { + "text": "start runbook prod-dev from qa-internal-2 automation account", + "intent": "RunRunbook", + "entities": [ + { + "entity": "AutomationAccount", + "startPos": 28, + "endPos": 40 + }, + { + "entity": "Runbook", + "startPos": 14, + "endPos": 21 + } + ] + }, + { + "text": "run runbook hello-world from autdevqa automation account", + "intent": "RunRunbook", + "entities": [ + { + "entity": "AutomationAccount", + "startPos": 29, + "endPos": 36 + }, + { + "entity": "Runbook", + "startPos": 12, + "endPos": 22 + } + ] + }, + { + "text": "start runbook aadscdemo-get-wunderlistuser from stefstrauto automation account", + "intent": "RunRunbook", + "entities": [ + { + "entity": "AutomationAccount", + "startPos": 48, + "endPos": 58 + }, + { + "entity": "Runbook", + "startPos": 14, + "endPos": 41 + } + ] + }, + { + "text": "start runbook psrunbook from testez automation account", + "intent": "RunRunbook", + "entities": [ + { + "entity": "AutomationAccount", + "startPos": 29, + "endPos": 34 + }, + { + "entity": "Runbook", + "startPos": 14, + "endPos": 22 + } + ] + }, + { + "text": "start runbook psrunbook from non-existent-account automation account", + "intent": "RunRunbook", + "entities": [ + { + "entity": "AutomationAccount", + "startPos": 29, + "endPos": 48 + }, + { + "entity": "Runbook", + "startPos": 14, + "endPos": 22 + } + ] + }, + { + "text": "start runbook psrunbook from non-existentaccount automation account", + "intent": "RunRunbook", + "entities": [ + { + "entity": "AutomationAccount", + "startPos": 29, + "endPos": 47 + }, + { + "entity": "Runbook", + "startPos": 14, + "endPos": 22 + } + ] + }, + { + "text": "start runbook psrunbook from accountthatdoesntexists automation account", + "intent": "RunRunbook", + "entities": [ + { + "entity": "AutomationAccount", + "startPos": 29, + "endPos": 51 + }, + { + "entity": "Runbook", + "startPos": 14, + "endPos": 22 + } + ] + }, + { + "text": "show job1 output", + "intent": "ShowJobOutput", + "entities": [ + { + "entity": "Job", + "startPos": 5, + "endPos": 8 + } + ] + }, + { + "text": "list my runbooks", + "intent": "ListRunbooks", + "entities": [] + }, + { + "text": "list runbooks", + "intent": "ListRunbooks", + "entities": [] + }, + { + "text": "show runbooks", + "intent": "ListRunbooks", + "entities": [] + }, + { + "text": "show me my runbooks", + "intent": "ListRunbooks", + "entities": [] + }, + { + "text": "show job15 output", + "intent": "ShowJobOutput", + "entities": [ + { + "entity": "Job", + "startPos": 5, + "endPos": 9 + } + ] + }, + { + "text": "show runbook cleanup-demos-msdn100 description", + "intent": "ShowRunbookDescription", + "entities": [ + { + "entity": "Runbook", + "startPos": 13, + "endPos": 33 + } + ] + }, + { + "text": "start runbook cleanup-demos-msdn100 from devops-automation automation account", + "intent": "RunRunbook", + "entities": [ + { + "entity": "AutomationAccount", + "startPos": 41, + "endPos": 57 + }, + { + "entity": "Runbook", + "startPos": 14, + "endPos": 34 + } + ] + }, + { + "text": "show runbook psrunbook description", + "intent": "ShowRunbookDescription", + "entities": [ + { + "entity": "Runbook", + "startPos": 13, + "endPos": 21 + } + ] + }, + { + "text": "show runbook write-helloworld description", + "intent": "ShowRunbookDescription", + "entities": [ + { + "entity": "Runbook", + "startPos": 13, + "endPos": 28 + } + ] + }, + { + "text": "list runbook remove-resourcegroups description", + "intent": "ShowRunbookDescription", + "entities": [ + { + "entity": "Runbook", + "startPos": 13, + "endPos": 33 + } + ] + }, + { + "text": "list job1 output", + "intent": "ShowJobOutput", + "entities": [ + { + "entity": "Job", + "startPos": 5, + "endPos": 8 + } + ] + }, + { + "text": "start cleanup-demos-msdn100 runbook", + "intent": "RunRunbook", + "entities": [ + { + "entity": "Runbook", + "startPos": 6, + "endPos": 19 + }, + { + "entity": "Runbook", + "startPos": 20, + "endPos": 26 + } + ] + }, + { + "text": "start runbook remove-resourcegroups", + "intent": "RunRunbook", + "entities": [ + { + "entity": "Runbook", + "startPos": 14, + "endPos": 34 + } + ] + }, + { + "text": "start remove-resourcegroups runbook", + "intent": "RunRunbook", + "entities": [ + { + "entity": "Runbook", + "startPos": 6, + "endPos": 26 + } + ] + }, + { + "text": "start all my virtual machines", + "intent": "None", + "entities": [] + }, + { + "text": "start all my vms", + "intent": "None", + "entities": [] + }, + { + "text": "stop all virtual machines", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown all virtual machines", + "intent": "None", + "entities": [] + }, + { + "text": "stop all my virtual machines", + "intent": "None", + "entities": [] + }, + { + "text": "stop all my vms", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook cleanup-all-my-resource-groups", + "intent": "RunRunbook", + "entities": [ + { + "entity": "Runbook", + "startPos": 14, + "endPos": 43 + } + ] + }, + { + "text": "show runbook aademo-helloworld description", + "intent": "ShowRunbookDescription", + "entities": [ + { + "entity": "Runbook", + "startPos": 13, + "endPos": 29 + } + ] + }, + { + "text": "shutdown all vms from test-ez resource group", + "intent": "None", + "entities": [] + }, + { + "text": "start all vms from coreos1vm resource group", + "intent": "None", + "entities": [] + }, + { + "text": "show runbook description", + "intent": "ShowRunbookDescription", + "entities": [] + }, + { + "text": "list runbook", + "intent": "ListRunbooks", + "entities": [] + } + ] } \ No newline at end of file diff --git a/AzureBot/LuisModel/AzureBot-ResourceGroups.json b/AzureBot/LuisModel/AzureBot-ResourceGroups.json index 1cbdf66..518ab4e 100644 --- a/AzureBot/LuisModel/AzureBot-ResourceGroups.json +++ b/AzureBot/LuisModel/AzureBot-ResourceGroups.json @@ -1,1366 +1,1368 @@ -{ - "luis_schema_version": "1.3.0", - "name": "AzureBot-ResourceGroups", - "desc": "A bot that can interact with Azure", - "culture": "en-us", - "intents": [ - { - "name": "ListResourceGroups" - }, - { - "name": "None" - } - ], - "entities": [ - { - "name": "ResourceGroup" - } - ], - "composites": [], - "bing_entities": [ - "number", - "ordinal" - ], - "actions": [], - "model_features": [ - { - "name": "ShowList", - "mode": true, - "words": "show,list", - "activated": true - }, - { - "name": "RGSynonyms", - "mode": true, - "words": "resource group,RG,resource", - "activated": true - } - ], - "regex_features": [], - "utterances": [ - { - "text": "user subscription 5", - "intent": "None", - "entities": [] - }, - { - "text": "stop vm abancc23", - "intent": "None", - "entities": [] - }, - { - "text": "delete virtual machine", - "intent": "None", - "entities": [] - }, - { - "text": "what subscription am i using", - "intent": "None", - "entities": [] - }, - { - "text": "switch sub to dev-internal2", - "intent": "None", - "entities": [] - }, - { - "text": "select subscription 12345", - "intent": "None", - "entities": [] - }, - { - "text": "show job1 output", - "intent": "None", - "entities": [] - }, - { - "text": "remove vm", - "intent": "None", - "entities": [] - }, - { - "text": "what is my current subscription", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook psrunbook from accountthatdoesntexists automation account", - "intent": "None", - "entities": [] - }, - { - "text": "switch subscription to x312345", - "intent": "None", - "entities": [] - }, - { - "text": "hi", - "intent": "None", - "entities": [] - }, - { - "text": "use subscription", - "intent": "None", - "entities": [] - }, - { - "text": "create virtual machine xysz", - "intent": "None", - "entities": [] - }, - { - "text": "create vm xyzs", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook psrunbook from non-existentaccount automation account", - "intent": "None", - "entities": [] - }, - { - "text": "list subs", - "intent": "None", - "entities": [] - }, - { - "text": "stop abancc23 vm", - "intent": "None", - "entities": [] - }, - { - "text": "start vm encta02", - "intent": "None", - "entities": [] - }, - { - "text": "select subscription onetwo", - "intent": "None", - "entities": [] - }, - { - "text": "what's my current subscription", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook psrunbook from testez automation account", - "intent": "None", - "entities": [] - }, - { - "text": "current subscription", - "intent": "None", - "entities": [] - }, - { - "text": "hello", - "intent": "None", - "entities": [] - }, - { - "text": "use the ximbustestcloud subscription", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook", - "intent": "None", - "entities": [] - }, - { - "text": "remove virtual machine xxxx", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown dev012qa1 virtual machine", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown x34-prod virtual machine", - "intent": "None", - "entities": [] - }, - { - "text": "what's subscription am i using?", - "intent": "None", - "entities": [] - }, - { - "text": "select the azure training kit subscription", - "intent": "None", - "entities": [] - }, - { - "text": "select the develop01 subscription", - "intent": "None", - "entities": [] - }, - { - "text": "use subscription pepep", - "intent": "None", - "entities": [] - }, - { - "text": "remove vm xyasda", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook psrunbook from non-existent-account automation account", - "intent": "None", - "entities": [] - }, - { - "text": "what is my current subscription?", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook aadscdemo-get-wunderlistuser from stefstrauto automation account", - "intent": "None", - "entities": [] - }, - { - "text": "run runbook hello-world from autdevqa automation account", - "intent": "None", - "entities": [] - }, - { - "text": "stop vm", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown pilea-dev vm", - "intent": "None", - "entities": [] - }, - { - "text": "delete vm xxxx", - "intent": "None", - "entities": [] - }, - { - "text": "what's my current subscription?", - "intent": "None", - "entities": [] - }, - { - "text": "change to subscription ximbus deployment test", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown server05 vm", - "intent": "None", - "entities": [] - }, - { - "text": "start run book cleanup-demos-msdn100", - "intent": "None", - "entities": [] - }, - { - "text": "use subscription dev-test", - "intent": "None", - "entities": [] - }, - { - "text": "select subscription qa", - "intent": "None", - "entities": [] - }, - { - "text": "use the ximbustestlab subcription", - "intent": "None", - "entities": [] - }, - { - "text": "remove vm xxxx", - "intent": "None", - "entities": [] - }, - { - "text": "my jobs", - "intent": "None", - "entities": [] - }, - { - "text": "select the third subscription", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook prod-dev from qa-internal-2 automation account", - "intent": "None", - "entities": [] - }, - { - "text": "start vm", - "intent": "None", - "entities": [] - }, - { - "text": "stop server01 vm", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook cleanup-demos-msdn100", - "intent": "None", - "entities": [] - }, - { - "text": "change to subscription media service private prod", - "intent": "None", - "entities": [] - }, - { - "text": "stop server03 virtual machine", - "intent": "None", - "entities": [] - }, - { - "text": "select the acom-test subscription", - "intent": "None", - "entities": [] - }, - { - "text": "signout", - "intent": "None", - "entities": [] - }, - { - "text": "start run book restore-azuredb", - "intent": "None", - "entities": [] - }, - { - "text": "give me the status of a job", - "intent": "None", - "entities": [] - }, - { - "text": "use subscription production", - "intent": "None", - "entities": [] - }, - { - "text": "use the xxx subscription", - "intent": "None", - "entities": [] - }, - { - "text": "status job", - "intent": "None", - "entities": [] - }, - { - "text": "start the third one", - "intent": "None", - "entities": [] - }, - { - "text": "start the x runbook", - "intent": "None", - "entities": [] - }, - { - "text": "show me the job status", - "intent": "None", - "entities": [] - }, - { - "text": "start dev-vm1 virtual machine", - "intent": "None", - "entities": [] - }, - { - "text": "stop qa-dev-01 virtual machine", - "intent": "None", - "entities": [] - }, - { - "text": "list my virtual machines", - "intent": "None", - "entities": [] - }, - { - "text": "list my automation accounts", - "intent": "None", - "entities": [] - }, - { - "text": "use the devtest subscription", - "intent": "None", - "entities": [] - }, - { - "text": "start vm server01", - "intent": "None", - "entities": [] - }, - { - "text": "job status", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook hello-world", - "intent": "None", - "entities": [] - }, - { - "text": "use subscription manifold-test", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook restore-resourcegroups", - "intent": "None", - "entities": [] - }, - { - "text": "change to the acom-test subscription", - "intent": "None", - "entities": [] - }, - { - "text": "use the second one", - "intent": "None", - "entities": [] - }, - { - "text": "run the configurevm runbook", - "intent": "None", - "entities": [] - }, - { - "text": "switch subscription to powerbi pre-prod", - "intent": "None", - "entities": [] - }, - { - "text": "start run book restore-resourcegroups", - "intent": "None", - "entities": [] - }, - { - "text": "select subscription wenham-qa", - "intent": "None", - "entities": [] - }, - { - "text": "runbook status", - "intent": "None", - "entities": [] - }, - { - "text": "start virtual machine newserver01", - "intent": "None", - "entities": [] - }, - { - "text": "list automation accounts", - "intent": "None", - "entities": [] - }, - { - "text": "show me the status of a job", - "intent": "None", - "entities": [] - }, - { - "text": "what are the virtual machines?", - "intent": "None", - "entities": [] - }, - { - "text": "list vms", - "intent": "None", - "entities": [] - }, - { - "text": "stop pilea-dev vm", - "intent": "None", - "entities": [] - }, - { - "text": "switch to the dev-test subscription", - "intent": "None", - "entities": [] - }, - { - "text": "start server02 virtual machine", - "intent": "None", - "entities": [] - }, - { - "text": "what's the subscription am i using", - "intent": "None", - "entities": [] - }, - { - "text": "use subscription pepe", - "intent": "None", - "entities": [] - }, - { - "text": "change subscription to wacom devtest", - "intent": "None", - "entities": [] - }, - { - "text": "start server01 vm", - "intent": "None", - "entities": [] - }, - { - "text": "stop vm integration-server", - "intent": "None", - "entities": [] - }, - { - "text": "start the xxy virtual machine", - "intent": "None", - "entities": [] - }, - { - "text": "switch sub to acom pre-prod", - "intent": "None", - "entities": [] - }, - { - "text": "start pilea-qa vm", - "intent": "None", - "entities": [] - }, - { - "text": "can you please list my virtual machines", - "intent": "None", - "entities": [] - }, - { - "text": "select dev-test subscription", - "intent": "None", - "entities": [] - }, - { - "text": "use the staging subscription", - "intent": "None", - "entities": [] - }, - { - "text": "list virtual machines", - "intent": "None", - "entities": [] - }, - { - "text": "use subscription devdev", - "intent": "None", - "entities": [] - }, - { - "text": "start vm server-01", - "intent": "None", - "entities": [] - }, - { - "text": "what is the subscription am i using?", - "intent": "None", - "entities": [] - }, - { - "text": "start vm pilea-vm", - "intent": "None", - "entities": [] - }, - { - "text": "change sub to devtest", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown vm 1234", - "intent": "None", - "entities": [] - }, - { - "text": "enumerate vms", - "intent": "None", - "entities": [] - }, - { - "text": "stop vm cloudsvr", - "intent": "None", - "entities": [] - }, - { - "text": "stop vm winservervm", - "intent": "None", - "entities": [] - }, - { - "text": "stop virtual machine pilea-vm", - "intent": "None", - "entities": [] - }, - { - "text": "use the staging-01 subscription", - "intent": "None", - "entities": [] - }, - { - "text": "launch the 12314 runbook", - "intent": "None", - "entities": [] - }, - { - "text": "logoff", - "intent": "None", - "entities": [] - }, - { - "text": "stop virtual machine 12345", - "intent": "None", - "entities": [] - }, - { - "text": "stop the abancc23 vm", - "intent": "None", - "entities": [] - }, - { - "text": "choose the falkfajsfk subscription", - "intent": "None", - "entities": [] - }, - { - "text": "choose subscription qa-internal", - "intent": "None", - "entities": [] - }, - { - "text": "run runbook", - "intent": "None", - "entities": [] - }, - { - "text": "create vm", - "intent": "None", - "entities": [] - }, - { - "text": "stop the jauakaka virtual machine", - "intent": "None", - "entities": [] - }, - { - "text": "list all vms", - "intent": "None", - "entities": [] - }, - { - "text": "use the dev-test subscription", - "intent": "None", - "entities": [] - }, - { - "text": "start virtual machine pilea-vm", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown vm pilea-vm", - "intent": "None", - "entities": [] - }, - { - "text": "change subscription to x2331atest", - "intent": "None", - "entities": [] - }, - { - "text": "select the first subscription", - "intent": "None", - "entities": [] - }, - { - "text": "start vm cloudsvr", - "intent": "None", - "entities": [] - }, - { - "text": "change my subscription", - "intent": "None", - "entities": [] - }, - { - "text": "launch runbook testbk01", - "intent": "None", - "entities": [] - }, - { - "text": "what's the subscription am i using?", - "intent": "None", - "entities": [] - }, - { - "text": "start run book", - "intent": "None", - "entities": [] - }, - { - "text": "logout", - "intent": "None", - "entities": [] - }, - { - "text": "stop the pilea-vm virtual machine", - "intent": "None", - "entities": [] - }, - { - "text": "run the deded azure runbook", - "intent": "None", - "entities": [] - }, - { - "text": "start vm 234afsfs", - "intent": "None", - "entities": [] - }, - { - "text": "run the oapapap runbook", - "intent": "None", - "entities": [] - }, - { - "text": "help", - "intent": "None", - "entities": [] - }, - { - "text": "stop the cloudsvr vm", - "intent": "None", - "entities": [] - }, - { - "text": "use subscription q-internal", - "intent": "None", - "entities": [] - }, - { - "text": "stop the server01 vm", - "intent": "None", - "entities": [] - }, - { - "text": "stop the qweruw vm", - "intent": "None", - "entities": [] - }, - { - "text": "show all subscriptions", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown virtual machine", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown vm 12345", - "intent": "None", - "entities": [] - }, - { - "text": "use sub qadev1", - "intent": "None", - "entities": [] - }, - { - "text": "start azure runbook mybook", - "intent": "None", - "entities": [] - }, - { - "text": "sign out", - "intent": "None", - "entities": [] - }, - { - "text": "start the abcdef23 vm", - "intent": "None", - "entities": [] - }, - { - "text": "run runbook test01", - "intent": "None", - "entities": [] - }, - { - "text": "start the cloudsvr vm", - "intent": "None", - "entities": [] - }, - { - "text": "start the pilea-vm virtual machine", - "intent": "None", - "entities": [] - }, - { - "text": "which are my subscriptions?", - "intent": "None", - "entities": [] - }, - { - "text": "stop vm osisksks214", - "intent": "None", - "entities": [] - }, - { - "text": "show subscriptions", - "intent": "None", - "entities": [] - }, - { - "text": "switch subscription to qaprod", - "intent": "None", - "entities": [] - }, - { - "text": "start the pilea vm", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown vm", - "intent": "None", - "entities": [] - }, - { - "text": "start the yyyy virtual machine", - "intent": "None", - "entities": [] - }, - { - "text": "log off", - "intent": "None", - "entities": [] - }, - { - "text": "stop virtual machine zaraza", - "intent": "None", - "entities": [] - }, - { - "text": "stop the pilea-vm vm", - "intent": "None", - "entities": [] - }, - { - "text": "list vm", - "intent": "None", - "entities": [] - }, - { - "text": "run azure runbook jujujuj", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook 0101011", - "intent": "None", - "entities": [] - }, - { - "text": "start the pilea-vm vm", - "intent": "None", - "entities": [] - }, - { - "text": "show me the subscriptions", - "intent": "None", - "entities": [] - }, - { - "text": "stop the pilea vm", - "intent": "None", - "entities": [] - }, - { - "text": "list the vms", - "intent": "None", - "entities": [] - }, - { - "text": "start virtual machine xxxx", - "intent": "None", - "entities": [] - }, - { - "text": "stop vm x0324aa", - "intent": "None", - "entities": [] - }, - { - "text": "what's my currrent subscription?", - "intent": "None", - "entities": [] - }, - { - "text": "5", - "intent": "None", - "entities": [] - }, - { - "text": "switch sub to devtest", - "intent": "None", - "entities": [] - }, - { - "text": "start vm \"pilea-vm\"", - "intent": "None", - "entities": [] - }, - { - "text": "stop vm myserver", - "intent": "None", - "entities": [] - }, - { - "text": "what is the subscription am i using", - "intent": "None", - "entities": [] - }, - { - "text": "stop vm pilea-vm", - "intent": "None", - "entities": [] - }, - { - "text": "start the alalala runbook", - "intent": "None", - "entities": [] - }, - { - "text": "list the virtual machines", - "intent": "None", - "entities": [] - }, - { - "text": "start vm server1", - "intent": "None", - "entities": [] - }, - { - "text": "start virtual machine kajakakxd", - "intent": "None", - "entities": [] - }, - { - "text": "log out", - "intent": "None", - "entities": [] - }, - { - "text": "show me all virtual machines", - "intent": "None", - "entities": [] - }, - { - "text": "start vm myserver", - "intent": "None", - "entities": [] - }, - { - "text": "help me", - "intent": "None", - "entities": [] - }, - { - "text": "show vms", - "intent": "None", - "entities": [] - }, - { - "text": "list subscriptions", - "intent": "None", - "entities": [] - }, - { - "text": "list my subs", - "intent": "None", - "entities": [] - }, - { - "text": "delete vm", - "intent": "None", - "entities": [] - }, - { - "text": "test", - "intent": "None", - "entities": [] - }, - { - "text": "list my runbooks", - "intent": "None", - "entities": [] - }, - { - "text": "list runbooks", - "intent": "None", - "entities": [] - }, - { - "text": "show runbooks", - "intent": "None", - "entities": [] - }, - { - "text": "show me my runbooks", - "intent": "None", - "entities": [] - }, - { - "text": "show job15 output", - "intent": "None", - "entities": [] - }, - { - "text": "show runbook cleanup-demos-msdn100 description", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook cleanup-demos-msdn100 from devops-automation automation account", - "intent": "None", - "entities": [] - }, - { - "text": "show runbook psrunbook description", - "intent": "None", - "entities": [] - }, - { - "text": "show runbook write-helloworld description", - "intent": "None", - "entities": [] - }, - { - "text": "list runbook remove-resourcegroups description", - "intent": "None", - "entities": [] - }, - { - "text": "list job1 output", - "intent": "None", - "entities": [] - }, - { - "text": "start cleanup-demos-msdn100 runbook", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook remove-resourcegroups", - "intent": "None", - "entities": [] - }, - { - "text": "start remove-resourcegroups runbook", - "intent": "None", - "entities": [] - }, - { - "text": "start all virtual machines", - "intent": "None", - "entities": [] - }, - { - "text": "start all vms", - "intent": "None", - "entities": [] - }, - { - "text": "start all my virtual machines", - "intent": "None", - "entities": [] - }, - { - "text": "start all my vms", - "intent": "None", - "entities": [] - }, - { - "text": "stop all virtual machines", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown all virtual machines", - "intent": "None", - "entities": [] - }, - { - "text": "stop all vms", - "intent": "None", - "entities": [] - }, - { - "text": "stop all my virtual machines", - "intent": "None", - "entities": [] - }, - { - "text": "stop all my vms", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown all my virtual machines", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown all my vms", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook cleanup-all-my-resource-groups", - "intent": "None", - "entities": [] - }, - { - "text": "start all vms from azurebot-development resource group", - "intent": "None", - "entities": [ - { - "entity": "ResourceGroup", - "startPos": 4, - "endPos": 6 - } - ] - }, - { - "text": "show runbook aademo-helloworld description", - "intent": "None", - "entities": [] - }, - { - "text": "stop all vms from azurebot-development resource group", - "intent": "None", - "entities": [ - { - "entity": "ResourceGroup", - "startPos": 4, - "endPos": 6 - } - ] - }, - { - "text": "shutdown all vms from azurebot-development resource group", - "intent": "None", - "entities": [ - { - "entity": "ResourceGroup", - "startPos": 4, - "endPos": 6 - } - ] - }, - { - "text": "shutdown all vms from test-ez resource group", - "intent": "None", - "entities": [ - { - "entity": "ResourceGroup", - "startPos": 4, - "endPos": 6 - } - ] - }, - { - "text": "shutdown all vms from coreos1vm resource group", - "intent": "None", - "entities": [ - { - "entity": "ResourceGroup", - "startPos": 4, - "endPos": 4 - } - ] - }, - { - "text": "start all vms from coreos1vm resource group", - "intent": "None", - "entities": [ - { - "entity": "ResourceGroup", - "startPos": 4, - "endPos": 4 - } - ] - }, - { - "text": "stop all vms from coreos1vm resource group", - "intent": "None", - "entities": [ - { - "entity": "ResourceGroup", - "startPos": 4, - "endPos": 4 - } - ] - }, - { - "text": "stop all vms from test-ez resource group", - "intent": "None", - "entities": [ - { - "entity": "ResourceGroup", - "startPos": 4, - "endPos": 6 - } - ] - }, - { - "text": "start all vms from test-ez resource group", - "intent": "None", - "entities": [ - { - "entity": "ResourceGroup", - "startPos": 4, - "endPos": 6 - } - ] - }, - { - "text": "shutdown all vms from test-ez-rg resource group", - "intent": "None", - "entities": [ - { - "entity": "ResourceGroup", - "startPos": 4, - "endPos": 8 - } - ] - }, - { - "text": "stop all vms from test-ez-rg resource group", - "intent": "None", - "entities": [ - { - "entity": "ResourceGroup", - "startPos": 4, - "endPos": 8 - } - ] - }, - { - "text": "start all vms from test-ez-rg resource group", - "intent": "None", - "entities": [ - { - "entity": "ResourceGroup", - "startPos": 4, - "endPos": 8 - } - ] - }, - { - "text": "show runbook description", - "intent": "None", - "entities": [] - }, - { - "text": "list my resource groups", - "intent": "ListResourceGroups", - "entities": [] - }, - { - "text": "what resource groups do i have?", - "intent": "ListResourceGroups", - "entities": [] - }, - { - "text": "list my rgs", - "intent": "ListResourceGroups", - "entities": [] - }, - { - "text": "what rgs do i have?", - "intent": "ListResourceGroups", - "entities": [] - }, - { - "text": "list rgs", - "intent": "ListResourceGroups", - "entities": [] - }, - { - "text": "list resource groups", - "intent": "ListResourceGroups", - "entities": [] - }, - { - "text": "list subsctiptions", - "intent": "None", - "entities": [] - }, - { - "text": "start all vms from azrbot-development resource group", - "intent": "None", - "entities": [ - { - "entity": "ResourceGroup", - "startPos": 4, - "endPos": 6 - } - ] - }, - { - "text": "select azurebotprod_event subscription", - "intent": "None", - "entities": [] - }, - { - "text": "select subscription azurebotprod_events", - "intent": "None", - "entities": [] - }, - { - "text": "start all vms from resource group azrbot-development", - "intent": "None", - "entities": [ - { - "entity": "ResourceGroup", - "startPos": 6, - "endPos": 8 - } - ] - }, - { - "text": "select azurebotprod_events subscription", - "intent": "None", - "entities": [] - }, - { - "text": "switch azurebotprod_events subscription", - "intent": "None", - "entities": [] - }, - { - "text": "select azurebotvsts_events subscription", - "intent": "None", - "entities": [] - } - ] +{ + "luis_schema_version": "2.1.0", + "versionId": "0.1", + "name": "AzureBot-ResourceGroups", + "desc": "A bot that can interact with Azure", + "culture": "en-us", + "intents": [ + { + "name": "ListResourceGroups" + }, + { + "name": "None" + } + ], + "entities": [ + { + "name": "ResourceGroup" + } + ], + "composites": [], + "closedLists": [], + "bing_entities": [ + "number", + "ordinal" + ], + "actions": [], + "model_features": [ + { + "name": "RGSynonyms", + "mode": true, + "words": "resource group,RG,resource", + "activated": true + }, + { + "name": "ShowList", + "mode": true, + "words": "show,list", + "activated": true + } + ], + "regex_features": [], + "utterances": [ + { + "text": "hello", + "intent": "None", + "entities": [] + }, + { + "text": "hi", + "intent": "None", + "entities": [] + }, + { + "text": "test", + "intent": "None", + "entities": [] + }, + { + "text": "help", + "intent": "None", + "entities": [] + }, + { + "text": "help me", + "intent": "None", + "entities": [] + }, + { + "text": "log out", + "intent": "None", + "entities": [] + }, + { + "text": "5", + "intent": "None", + "entities": [] + }, + { + "text": "log off", + "intent": "None", + "entities": [] + }, + { + "text": "sign out", + "intent": "None", + "entities": [] + }, + { + "text": "logout", + "intent": "None", + "entities": [] + }, + { + "text": "create vm", + "intent": "None", + "entities": [] + }, + { + "text": "logoff", + "intent": "None", + "entities": [] + }, + { + "text": "list virtual machines", + "intent": "None", + "entities": [] + }, + { + "text": "list vms", + "intent": "None", + "entities": [] + }, + { + "text": "list my virtual machines", + "intent": "None", + "entities": [] + }, + { + "text": "start vm", + "intent": "None", + "entities": [] + }, + { + "text": "stop vm", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook", + "intent": "None", + "entities": [] + }, + { + "text": "remove vm", + "intent": "None", + "entities": [] + }, + { + "text": "delete vm", + "intent": "None", + "entities": [] + }, + { + "text": "list my subs", + "intent": "None", + "entities": [] + }, + { + "text": "list subscriptions", + "intent": "None", + "entities": [] + }, + { + "text": "show vms", + "intent": "None", + "entities": [] + }, + { + "text": "list my resource groups", + "intent": "ListResourceGroups", + "entities": [] + }, + { + "text": "start vm myserver", + "intent": "None", + "entities": [] + }, + { + "text": "start vm server1", + "intent": "None", + "entities": [] + }, + { + "text": "start virtual machine xxxx", + "intent": "None", + "entities": [] + }, + { + "text": "start the yyyy virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "start the abcdef23 vm", + "intent": "None", + "entities": [] + }, + { + "text": "start vm 234afsfs", + "intent": "None", + "entities": [] + }, + { + "text": "start virtual machine kajakakxd", + "intent": "None", + "entities": [] + }, + { + "text": "stop vm x0324aa", + "intent": "None", + "entities": [] + }, + { + "text": "stop virtual machine zaraza", + "intent": "None", + "entities": [] + }, + { + "text": "stop vm osisksks214", + "intent": "None", + "entities": [] + }, + { + "text": "stop the qweruw vm", + "intent": "None", + "entities": [] + }, + { + "text": "stop the jauakaka virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "stop virtual machine 12345", + "intent": "None", + "entities": [] + }, + { + "text": "start the xxy virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "start virtual machine newserver01", + "intent": "None", + "entities": [] + }, + { + "text": "use the devtest subscription", + "intent": "None", + "entities": [] + }, + { + "text": "use subscription production", + "intent": "None", + "entities": [] + }, + { + "text": "select subscription qa", + "intent": "None", + "entities": [] + }, + { + "text": "select the develop01 subscription", + "intent": "None", + "entities": [] + }, + { + "text": "select subscription onetwo", + "intent": "None", + "entities": [] + }, + { + "text": "select subscription 12345", + "intent": "None", + "entities": [] + }, + { + "text": "choose subscription qa-internal", + "intent": "None", + "entities": [] + }, + { + "text": "choose the falkfajsfk subscription", + "intent": "None", + "entities": [] + }, + { + "text": "show me all virtual machines", + "intent": "None", + "entities": [] + }, + { + "text": "list the virtual machines", + "intent": "None", + "entities": [] + }, + { + "text": "list the vms", + "intent": "None", + "entities": [] + }, + { + "text": "list vm", + "intent": "None", + "entities": [] + }, + { + "text": "run runbook test01", + "intent": "None", + "entities": [] + }, + { + "text": "run the oapapap runbook", + "intent": "None", + "entities": [] + }, + { + "text": "launch runbook testbk01", + "intent": "None", + "entities": [] + }, + { + "text": "launch the 12314 runbook", + "intent": "None", + "entities": [] + }, + { + "text": "start the alalala runbook", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook 0101011", + "intent": "None", + "entities": [] + }, + { + "text": "run azure runbook jujujuj", + "intent": "None", + "entities": [] + }, + { + "text": "start azure runbook mybook", + "intent": "None", + "entities": [] + }, + { + "text": "run the deded azure runbook", + "intent": "None", + "entities": [] + }, + { + "text": "use the dev-test subscription", + "intent": "None", + "entities": [] + }, + { + "text": "enumerate vms", + "intent": "None", + "entities": [] + }, + { + "text": "use subscription devdev", + "intent": "None", + "entities": [] + }, + { + "text": "what are the virtual machines?", + "intent": "None", + "entities": [] + }, + { + "text": "start vm server01", + "intent": "None", + "entities": [] + }, + { + "text": "use the xxx subscription", + "intent": "None", + "entities": [] + }, + { + "text": "use subscription dev-test", + "intent": "None", + "entities": [] + }, + { + "text": "use subscription pepep", + "intent": "None", + "entities": [] + }, + { + "text": "stop abancc23 vm", + "intent": "None", + "entities": [] + }, + { + "text": "stop vm abancc23", + "intent": "None", + "entities": [] + }, + { + "text": "stop the server01 vm", + "intent": "None", + "entities": [] + }, + { + "text": "list all vms", + "intent": "None", + "entities": [] + }, + { + "text": "stop the abancc23 vm", + "intent": "None", + "entities": [] + }, + { + "text": "stop vm myserver", + "intent": "None", + "entities": [] + }, + { + "text": "show me the subscriptions", + "intent": "None", + "entities": [] + }, + { + "text": "show subscriptions", + "intent": "None", + "entities": [] + }, + { + "text": "which are my subscriptions?", + "intent": "None", + "entities": [] + }, + { + "text": "show all subscriptions", + "intent": "None", + "entities": [] + }, + { + "text": "select the first subscription", + "intent": "None", + "entities": [] + }, + { + "text": "use the staging-01 subscription", + "intent": "None", + "entities": [] + }, + { + "text": "use the staging subscription", + "intent": "None", + "entities": [] + }, + { + "text": "use subscription pepe", + "intent": "None", + "entities": [] + }, + { + "text": "run the configurevm runbook", + "intent": "None", + "entities": [] + }, + { + "text": "start the x runbook", + "intent": "None", + "entities": [] + }, + { + "text": "select the third subscription", + "intent": "None", + "entities": [] + }, + { + "text": "use the second one", + "intent": "None", + "entities": [] + }, + { + "text": "start the third one", + "intent": "None", + "entities": [] + }, + { + "text": "signout", + "intent": "None", + "entities": [] + }, + { + "text": "remove vm xxxx", + "intent": "None", + "entities": [] + }, + { + "text": "delete vm xxxx", + "intent": "None", + "entities": [] + }, + { + "text": "remove virtual machine xxxx", + "intent": "None", + "entities": [] + }, + { + "text": "remove vm xyasda", + "intent": "None", + "entities": [] + }, + { + "text": "create vm xyzs", + "intent": "None", + "entities": [] + }, + { + "text": "create virtual machine xysz", + "intent": "None", + "entities": [] + }, + { + "text": "delete virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "start run book", + "intent": "None", + "entities": [] + }, + { + "text": "run runbook", + "intent": "None", + "entities": [] + }, + { + "text": "start vm pilea-vm", + "intent": "None", + "entities": [] + }, + { + "text": "stop vm pilea-vm", + "intent": "None", + "entities": [] + }, + { + "text": "start the pilea-vm vm", + "intent": "None", + "entities": [] + }, + { + "text": "stop the pilea-vm vm", + "intent": "None", + "entities": [] + }, + { + "text": "start the pilea-vm virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "stop the pilea-vm virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "start virtual machine pilea-vm", + "intent": "None", + "entities": [] + }, + { + "text": "stop virtual machine pilea-vm", + "intent": "None", + "entities": [] + }, + { + "text": "start vm server-01", + "intent": "None", + "entities": [] + }, + { + "text": "stop vm integration-server", + "intent": "None", + "entities": [] + }, + { + "text": "switch to the dev-test subscription", + "intent": "None", + "entities": [] + }, + { + "text": "change to the acom-test subscription", + "intent": "None", + "entities": [] + }, + { + "text": "select the acom-test subscription", + "intent": "None", + "entities": [] + }, + { + "text": "select subscription wenham-qa", + "intent": "None", + "entities": [] + }, + { + "text": "use subscription manifold-test", + "intent": "None", + "entities": [] + }, + { + "text": "change to subscription media service private prod", + "intent": "None", + "entities": [] + }, + { + "text": "change to subscription ximbus deployment test", + "intent": "None", + "entities": [] + }, + { + "text": "use the ximbustestlab subcription", + "intent": "None", + "entities": [] + }, + { + "text": "use the ximbustestcloud subscription", + "intent": "None", + "entities": [] + }, + { + "text": "select the azure training kit subscription", + "intent": "None", + "entities": [] + }, + { + "text": "start vm encta02", + "intent": "None", + "entities": [] + }, + { + "text": "use subscription", + "intent": "None", + "entities": [] + }, + { + "text": "user subscription 5", + "intent": "None", + "entities": [] + }, + { + "text": "change my subscription", + "intent": "None", + "entities": [] + }, + { + "text": "stop vm winservervm", + "intent": "None", + "entities": [] + }, + { + "text": "can you please list my virtual machines", + "intent": "None", + "entities": [] + }, + { + "text": "start vm \"pilea-vm\"", + "intent": "None", + "entities": [] + }, + { + "text": "stop the pilea vm", + "intent": "None", + "entities": [] + }, + { + "text": "start the pilea vm", + "intent": "None", + "entities": [] + }, + { + "text": "start the cloudsvr vm", + "intent": "None", + "entities": [] + }, + { + "text": "stop the cloudsvr vm", + "intent": "None", + "entities": [] + }, + { + "text": "start vm cloudsvr", + "intent": "None", + "entities": [] + }, + { + "text": "stop vm cloudsvr", + "intent": "None", + "entities": [] + }, + { + "text": "select dev-test subscription", + "intent": "None", + "entities": [] + }, + { + "text": "show me the status of a job", + "intent": "None", + "entities": [] + }, + { + "text": "job status", + "intent": "None", + "entities": [] + }, + { + "text": "status job", + "intent": "None", + "entities": [] + }, + { + "text": "my jobs", + "intent": "None", + "entities": [] + }, + { + "text": "runbook status", + "intent": "None", + "entities": [] + }, + { + "text": "show me the job status", + "intent": "None", + "entities": [] + }, + { + "text": "give me the status of a job", + "intent": "None", + "entities": [] + }, + { + "text": "what's my current subscription?", + "intent": "None", + "entities": [] + }, + { + "text": "what is my current subscription?", + "intent": "None", + "entities": [] + }, + { + "text": "current subscription", + "intent": "None", + "entities": [] + }, + { + "text": "what's subscription am i using?", + "intent": "None", + "entities": [] + }, + { + "text": "what's my current subscription", + "intent": "None", + "entities": [] + }, + { + "text": "what is my current subscription", + "intent": "None", + "entities": [] + }, + { + "text": "what subscription am i using", + "intent": "None", + "entities": [] + }, + { + "text": "what's the subscription am i using?", + "intent": "None", + "entities": [] + }, + { + "text": "what is the subscription am i using?", + "intent": "None", + "entities": [] + }, + { + "text": "what's the subscription am i using", + "intent": "None", + "entities": [] + }, + { + "text": "what is the subscription am i using", + "intent": "None", + "entities": [] + }, + { + "text": "what's my currrent subscription?", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown vm", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown vm 12345", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown vm pilea-vm", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown vm 1234", + "intent": "None", + "entities": [] + }, + { + "text": "start server01 vm", + "intent": "None", + "entities": [] + }, + { + "text": "start pilea-qa vm", + "intent": "None", + "entities": [] + }, + { + "text": "start server02 virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "start dev-vm1 virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "stop server01 vm", + "intent": "None", + "entities": [] + }, + { + "text": "stop pilea-dev vm", + "intent": "None", + "entities": [] + }, + { + "text": "stop qa-dev-01 virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "stop server03 virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown server05 vm", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown pilea-dev vm", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown dev012qa1 virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown x34-prod virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "list subs", + "intent": "None", + "entities": [] + }, + { + "text": "switch subscription to x312345", + "intent": "None", + "entities": [] + }, + { + "text": "switch sub to dev-internal2", + "intent": "None", + "entities": [] + }, + { + "text": "switch sub to devtest", + "intent": "None", + "entities": [] + }, + { + "text": "switch subscription to qaprod", + "intent": "None", + "entities": [] + }, + { + "text": "use sub qadev1", + "intent": "None", + "entities": [] + }, + { + "text": "use subscription q-internal", + "intent": "None", + "entities": [] + }, + { + "text": "change subscription to x2331atest", + "intent": "None", + "entities": [] + }, + { + "text": "change sub to devtest", + "intent": "None", + "entities": [] + }, + { + "text": "switch sub to acom pre-prod", + "intent": "None", + "entities": [] + }, + { + "text": "change subscription to wacom devtest", + "intent": "None", + "entities": [] + }, + { + "text": "switch subscription to powerbi pre-prod", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook hello-world", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook cleanup-demos-msdn100", + "intent": "None", + "entities": [] + }, + { + "text": "start run book restore-resourcegroups", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook restore-resourcegroups", + "intent": "None", + "entities": [] + }, + { + "text": "start run book restore-azuredb", + "intent": "None", + "entities": [] + }, + { + "text": "start run book cleanup-demos-msdn100", + "intent": "None", + "entities": [] + }, + { + "text": "stop all vms", + "intent": "None", + "entities": [] + }, + { + "text": "list automation accounts", + "intent": "None", + "entities": [] + }, + { + "text": "list my automation accounts", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook prod-dev from qa-internal-2 automation account", + "intent": "None", + "entities": [] + }, + { + "text": "run runbook hello-world from autdevqa automation account", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook aadscdemo-get-wunderlistuser from stefstrauto automation account", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook psrunbook from testez automation account", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook psrunbook from non-existent-account automation account", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook psrunbook from non-existentaccount automation account", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook psrunbook from accountthatdoesntexists automation account", + "intent": "None", + "entities": [] + }, + { + "text": "show job1 output", + "intent": "None", + "entities": [] + }, + { + "text": "list my runbooks", + "intent": "None", + "entities": [] + }, + { + "text": "list runbooks", + "intent": "None", + "entities": [] + }, + { + "text": "show runbooks", + "intent": "None", + "entities": [] + }, + { + "text": "show me my runbooks", + "intent": "None", + "entities": [] + }, + { + "text": "show job15 output", + "intent": "None", + "entities": [] + }, + { + "text": "show runbook cleanup-demos-msdn100 description", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook cleanup-demos-msdn100 from devops-automation automation account", + "intent": "None", + "entities": [] + }, + { + "text": "show runbook psrunbook description", + "intent": "None", + "entities": [] + }, + { + "text": "start all vms", + "intent": "None", + "entities": [] + }, + { + "text": "show runbook write-helloworld description", + "intent": "None", + "entities": [] + }, + { + "text": "list runbook remove-resourcegroups description", + "intent": "None", + "entities": [] + }, + { + "text": "list job1 output", + "intent": "None", + "entities": [] + }, + { + "text": "start cleanup-demos-msdn100 runbook", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook remove-resourcegroups", + "intent": "None", + "entities": [] + }, + { + "text": "start remove-resourcegroups runbook", + "intent": "None", + "entities": [] + }, + { + "text": "start all virtual machines", + "intent": "None", + "entities": [] + }, + { + "text": "start all my virtual machines", + "intent": "None", + "entities": [] + }, + { + "text": "start all my vms", + "intent": "None", + "entities": [] + }, + { + "text": "stop all virtual machines", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown all virtual machines", + "intent": "None", + "entities": [] + }, + { + "text": "stop all my virtual machines", + "intent": "None", + "entities": [] + }, + { + "text": "stop all my vms", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown all my virtual machines", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown all my vms", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook cleanup-all-my-resource-groups", + "intent": "None", + "entities": [] + }, + { + "text": "start all vms from azurebot-development resource group", + "intent": "None", + "entities": [ + { + "entity": "ResourceGroup", + "startPos": 19, + "endPos": 38 + } + ] + }, + { + "text": "show runbook aademo-helloworld description", + "intent": "None", + "entities": [] + }, + { + "text": "stop all vms from azurebot-development resource group", + "intent": "None", + "entities": [ + { + "entity": "ResourceGroup", + "startPos": 18, + "endPos": 37 + } + ] + }, + { + "text": "shutdown all vms from azurebot-development resource group", + "intent": "None", + "entities": [ + { + "entity": "ResourceGroup", + "startPos": 22, + "endPos": 41 + } + ] + }, + { + "text": "shutdown all vms from test-ez resource group", + "intent": "None", + "entities": [ + { + "entity": "ResourceGroup", + "startPos": 22, + "endPos": 28 + } + ] + }, + { + "text": "shutdown all vms from coreos1vm resource group", + "intent": "None", + "entities": [ + { + "entity": "ResourceGroup", + "startPos": 22, + "endPos": 30 + } + ] + }, + { + "text": "start all vms from coreos1vm resource group", + "intent": "None", + "entities": [ + { + "entity": "ResourceGroup", + "startPos": 19, + "endPos": 27 + } + ] + }, + { + "text": "stop all vms from coreos1vm resource group", + "intent": "None", + "entities": [ + { + "entity": "ResourceGroup", + "startPos": 18, + "endPos": 26 + } + ] + }, + { + "text": "stop all vms from test-ez resource group", + "intent": "None", + "entities": [ + { + "entity": "ResourceGroup", + "startPos": 18, + "endPos": 24 + } + ] + }, + { + "text": "start all vms from test-ez resource group", + "intent": "None", + "entities": [ + { + "entity": "ResourceGroup", + "startPos": 19, + "endPos": 25 + } + ] + }, + { + "text": "shutdown all vms from test-ez-rg resource group", + "intent": "None", + "entities": [ + { + "entity": "ResourceGroup", + "startPos": 22, + "endPos": 31 + } + ] + }, + { + "text": "stop all vms from test-ez-rg resource group", + "intent": "None", + "entities": [ + { + "entity": "ResourceGroup", + "startPos": 18, + "endPos": 27 + } + ] + }, + { + "text": "start all vms from test-ez-rg resource group", + "intent": "None", + "entities": [ + { + "entity": "ResourceGroup", + "startPos": 19, + "endPos": 28 + } + ] + }, + { + "text": "show runbook description", + "intent": "None", + "entities": [] + }, + { + "text": "what resource groups do i have?", + "intent": "ListResourceGroups", + "entities": [] + }, + { + "text": "list my rgs", + "intent": "ListResourceGroups", + "entities": [] + }, + { + "text": "what rgs do i have?", + "intent": "ListResourceGroups", + "entities": [] + }, + { + "text": "list rgs", + "intent": "ListResourceGroups", + "entities": [] + }, + { + "text": "list resource groups", + "intent": "ListResourceGroups", + "entities": [] + }, + { + "text": "list subsctiptions", + "intent": "None", + "entities": [] + }, + { + "text": "start all vms from azrbot-development resource group", + "intent": "None", + "entities": [ + { + "entity": "ResourceGroup", + "startPos": 19, + "endPos": 36 + } + ] + }, + { + "text": "select azurebotprod_event subscription", + "intent": "None", + "entities": [] + }, + { + "text": "select subscription azurebotprod_events", + "intent": "None", + "entities": [] + }, + { + "text": "start all vms from resource group azrbot-development", + "intent": "None", + "entities": [ + { + "entity": "ResourceGroup", + "startPos": 34, + "endPos": 51 + } + ] + }, + { + "text": "select azurebotprod_events subscription", + "intent": "None", + "entities": [] + }, + { + "text": "switch azurebotprod_events subscription", + "intent": "None", + "entities": [] + }, + { + "text": "select azurebotvsts_events subscription", + "intent": "None", + "entities": [] + } + ] } \ No newline at end of file diff --git a/AzureBot/LuisModel/AzureBot-Root.json b/AzureBot/LuisModel/AzureBot-Root.json index 3f1ce82..d496eff 100644 --- a/AzureBot/LuisModel/AzureBot-Root.json +++ b/AzureBot/LuisModel/AzureBot-Root.json @@ -1,2225 +1,1678 @@ -{ - "luis_schema_version": "1.3.0", - "name": "AzureBot-Root", - "desc": "A bot that can interact with Azure", - "culture": "en-us", - "intents": [ - { - "name": "CurrentSubscription" - }, - { - "name": "DetermineResource" - }, - { - "name": "Help" - }, - { - "name": "ListSubscriptions" - }, - { - "name": "Logout" - }, - { - "name": "None" - }, - { - "name": "UseSubscription" - } - ], - "entities": [ - { - "name": "Automation" - }, - { - "name": "ResourceGroup" - }, - { - "name": "Subscription" - }, - { - "name": "VirtualMachine" - }, - { - "name": "WebApp" - } - ], - "composites": [], - "bing_entities": [ - "number", - "ordinal" - ], - "actions": [ - { - "actionName": "UseSubscription", - "intentName": "UseSubscription", - "actionParameters": [ - { - "parameterName": "subscriptionName", - "entityName": "Subscription", - "required": false - } - ] - } - ], - "model_features": [ - { - "name": "VmSynonyms", - "mode": true, - "words": "vm,virtual machine,vms,virtual machines", - "activated": true - }, - { - "name": "RunbookSynonyms", - "mode": true, - "words": "runbook,run book", - "activated": true - }, - { - "name": "SubscriptionsSynonyms", - "mode": true, - "words": "subscriptions,subs", - "activated": true - }, - { - "name": "SubscriptionSynonyms", - "mode": true, - "words": "subscription,sub", - "activated": true - }, - { - "name": "LogoutSynonyms", - "mode": true, - "words": "logout,logoff,signout,log out,log off,sign out", - "activated": true - }, - { - "name": "ShowList", - "mode": true, - "words": "show,list", - "activated": true - }, - { - "name": "RGSynonyms", - "mode": true, - "words": "resource group,RG,resource", - "activated": true - } - ], - "regex_features": [], - "utterances": [ - { - "text": "stop virtual machine pilea-vm", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 3, - "endPos": 5 - } - ] - }, - { - "text": "stop server01 vm", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 1, - "endPos": 1 - } - ] - }, - { - "text": "list vm", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 1, - "endPos": 1 - } - ] - }, - { - "text": "show me the status of a job", - "intent": "DetermineResource", - "entities": [ - { - "entity": "Automation", - "startPos": 6, - "endPos": 6 - } - ] - }, - { - "text": "start all my vms", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 3, - "endPos": 3 - } - ] - }, - { - "text": "stop all virtual machines", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 3 - } - ] - }, - { - "text": "list my automation accounts", - "intent": "DetermineResource", - "entities": [ - { - "entity": "Automation", - "startPos": 2, - "endPos": 3 - } - ] - }, - { - "text": "job status", - "intent": "DetermineResource", - "entities": [ - { - "entity": "Automation", - "startPos": 0, - "endPos": 0 - } - ] - }, - { - "text": "show all subscriptions", - "intent": "ListSubscriptions", - "entities": [] - }, - { - "text": "start vm myserver", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "start vm server-01", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "select the first subscription", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "run runbook test01", - "intent": "DetermineResource", - "entities": [ - { - "entity": "Automation", - "startPos": 1, - "endPos": 1 - } - ] - }, - { - "text": "show vms", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 1, - "endPos": 1 - } - ] - }, - { - "text": "list automation accounts", - "intent": "DetermineResource", - "entities": [ - { - "entity": "Automation", - "startPos": 1, - "endPos": 1 - } - ] - }, - { - "text": "start server02 virtual machine", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 1, - "endPos": 1 - } - ] - }, - { - "text": "start run book cleanup-demos-msdn100", - "intent": "DetermineResource", - "entities": [ - { - "entity": "Automation", - "startPos": 3, - "endPos": 7 - } - ] - }, - { - "text": "select dev-test subscription", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 1, - "endPos": 3 - } - ] - }, - { - "text": "start virtual machine pilea-vm", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 3, - "endPos": 5 - } - ] - }, - { - "text": "start all my virtual machines", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 3, - "endPos": 4 - } - ] - }, - { - "text": "list the vms", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "test", - "intent": "None", - "entities": [] - }, - { - "text": "start all virtual machines", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 3 - } - ] - }, - { - "text": "stop vm cloudsvr", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "start run book restore-azuredb", - "intent": "DetermineResource", - "entities": [ - { - "entity": "Automation", - "startPos": 3, - "endPos": 5 - } - ] - }, - { - "text": "start dev-vm1 virtual machine", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 1, - "endPos": 3 - } - ] - }, - { - "text": "list subscriptions", - "intent": "ListSubscriptions", - "entities": [] - }, - { - "text": "start pilea-qa vm", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 1, - "endPos": 3 - } - ] - }, - { - "text": "stop the pilea-vm virtual machine", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "list the virtual machines", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 3 - } - ] - }, - { - "text": "list my subs", - "intent": "ListSubscriptions", - "entities": [] - }, - { - "text": "show subscriptions", - "intent": "ListSubscriptions", - "entities": [] - }, - { - "text": "start runbook restore-resourcegroups", - "intent": "DetermineResource", - "entities": [ - { - "entity": "Automation", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "hi", - "intent": "None", - "entities": [] - }, - { - "text": "start server01 vm", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 1, - "endPos": 1 - } - ] - }, - { - "text": "start vm cloudsvr", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "start run book restore-resourcegroups", - "intent": "DetermineResource", - "entities": [ - { - "entity": "Automation", - "startPos": 3, - "endPos": 5 - } - ] - }, - { - "text": "start runbook remove-resourcegroups", - "intent": "DetermineResource", - "entities": [ - { - "entity": "Automation", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "start the pilea-vm virtual machine", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "show me the subscriptions", - "intent": "ListSubscriptions", - "entities": [] - }, - { - "text": "hello", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown vm 1234", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "show me all virtual machines", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 3, - "endPos": 4 - } - ] - }, - { - "text": "start remove-resourcegroups runbook", - "intent": "DetermineResource", - "entities": [ - { - "entity": "Automation", - "startPos": 1, - "endPos": 3 - } - ] - }, - { - "text": "delete vm", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 1, - "endPos": 1 - } - ] - }, - { - "text": "stop the pilea-vm vm", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "list job1 output", - "intent": "DetermineResource", - "entities": [ - { - "entity": "Automation", - "startPos": 1, - "endPos": 2 - } - ] - }, - { - "text": "choose the falkfajsfk subscription", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "start cleanup-demos-msdn100 runbook", - "intent": "DetermineResource", - "entities": [ - { - "entity": "Automation", - "startPos": 1, - "endPos": 5 - } - ] - }, - { - "text": "shutdown vm pilea-vm", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "start the pilea-vm vm", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "start runbook cleanup-demos-msdn100", - "intent": "DetermineResource", - "entities": [ - { - "entity": "Automation", - "startPos": 2, - "endPos": 6 - } - ] - }, - { - "text": "stop the cloudsvr vm", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "start the cloudsvr vm", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "remove vm", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 1, - "endPos": 1 - } - ] - }, - { - "text": "select subscription onetwo", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "stop vm pilea-vm", - "intent": "None", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "show runbook write-helloworld description", - "intent": "None", - "entities": [] - }, - { - "text": "stop vm myserver", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "list runbook remove-resourcegroups description", - "intent": "DetermineResource", - "entities": [] - }, - { - "text": "start runbook hello-world", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook", - "intent": "None", - "entities": [] - }, - { - "text": "stop the server01 vm", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "list all vms", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown vm 12345", - "intent": "None", - "entities": [] - }, - { - "text": "show runbook psrunbook description", - "intent": "None", - "entities": [] - }, - { - "text": "start vm pilea-vm", - "intent": "None", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "start all vms", - "intent": "None", - "entities": [] - }, - { - "text": "stop the pilea vm", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "choose subscription qa-internal", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "start run book", - "intent": "None", - "entities": [] - }, - { - "text": "select the develop01 subscription", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "stop the abancc23 vm", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "switch subscription to powerbi pre-prod", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 3, - "endPos": 6 - } - ] - }, - { - "text": "stop vm", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown virtual machine", - "intent": "None", - "entities": [] - }, - { - "text": "start the pilea vm", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "select subscription qa", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "start vm \"pilea-vm\"", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 3, - "endPos": 5 - } - ] - }, - { - "text": "change subscription to wacom devtest", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 3, - "endPos": 4 - } - ] - }, - { - "text": "start vm", - "intent": "None", - "entities": [] - }, - { - "text": "show me my runbooks", - "intent": "None", - "entities": [] - }, - { - "text": "show runbook cleanup-demos-msdn100 description", - "intent": "None", - "entities": [] - }, - { - "text": "can you please list my virtual machines", - "intent": "None", - "entities": [] - }, - { - "text": "delete virtual machine", - "intent": "None", - "entities": [] - }, - { - "text": "show job15 output", - "intent": "None", - "entities": [] - }, - { - "text": "use subscription production", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "start runbook cleanup-demos-msdn100 from devops-automation automation account", - "intent": "None", - "entities": [] - }, - { - "text": "stop vm abancc23", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "stop abancc23 vm", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 1, - "endPos": 1 - } - ] - }, - { - "text": "shutdown vm", - "intent": "None", - "entities": [] - }, - { - "text": "what's my currrent subscription?", - "intent": "CurrentSubscription", - "entities": [] - }, - { - "text": "switch sub to acom pre-prod", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 3, - "endPos": 6 - } - ] - }, - { - "text": "list my virtual machines", - "intent": "None", - "entities": [] - }, - { - "text": "list vms", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 1, - "endPos": 1 - } - ] - }, - { - "text": "create virtual machine xysz", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 3, - "endPos": 3 - } - ] - }, - { - "text": "use the devtest subscription", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "list runbooks", - "intent": "None", - "entities": [] - }, - { - "text": "which are my subscriptions?", - "intent": "ListSubscriptions", - "entities": [] - }, - { - "text": "change sub to devtest", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 3, - "endPos": 3 - } - ] - }, - { - "text": "use subscription pepep", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "what is the subscription am i using", - "intent": "CurrentSubscription", - "entities": [] - }, - { - "text": "list virtual machines", - "intent": "None", - "entities": [] - }, - { - "text": "change subscription to x2331atest", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 3, - "endPos": 3 - } - ] - }, - { - "text": "create vm xyzs", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "use subscription dev-test", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "list my runbooks", - "intent": "DetermineResource", - "entities": [] - }, - { - "text": "stop vm winservervm", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "change my subscription", - "intent": "UseSubscription", - "entities": [] - }, - { - "text": "what's the subscription am i using", - "intent": "CurrentSubscription", - "entities": [] - }, - { - "text": "logoff", - "intent": "Logout", - "entities": [] - }, - { - "text": "show job1 output", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook psrunbook from accountthatdoesntexists automation account", - "intent": "None", - "entities": [] - }, - { - "text": "start virtual machine newserver01", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 3, - "endPos": 3 - } - ] - }, - { - "text": "start the xxy virtual machine", - "intent": "None", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "start runbook psrunbook from non-existentaccount automation account", - "intent": "None", - "entities": [] - }, - { - "text": "remove vm xyasda", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "use the xxx subscription", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "use subscription q-internal", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "user subscription 5", - "intent": "UseSubscription", - "entities": [] - }, - { - "text": "remove virtual machine xxxx", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 3, - "endPos": 3 - } - ] - }, - { - "text": "create vm", - "intent": "None", - "entities": [] - }, - { - "text": "show runbooks", - "intent": "None", - "entities": [] - }, - { - "text": "stop virtual machine 12345", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 3, - "endPos": 3 - } - ] - }, - { - "text": "what is the subscription am i using?", - "intent": "CurrentSubscription", - "entities": [] - }, - { - "text": "use subscription", - "intent": "UseSubscription", - "entities": [] - }, - { - "text": "start vm server01", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "start runbook prod-dev from qa-internal-2 automation account", - "intent": "None", - "entities": [] - }, - { - "text": "5", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook psrunbook from testez automation account", - "intent": "None", - "entities": [] - }, - { - "text": "what's my current subscription", - "intent": "CurrentSubscription", - "entities": [] - }, - { - "text": "shutdown server05 vm", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 1, - "endPos": 1 - } - ] - }, - { - "text": "use sub qadev1", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "what's the subscription am i using?", - "intent": "CurrentSubscription", - "entities": [] - }, - { - "text": "switch subscription to qaprod", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 3, - "endPos": 3 - } - ] - }, - { - "text": "list subs", - "intent": "ListSubscriptions", - "entities": [] - }, - { - "text": "start vm encta02", - "intent": "None", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "sign out", - "intent": "Logout", - "entities": [] - }, - { - "text": "stop virtual machine zaraza", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 3, - "endPos": 3 - } - ] - }, - { - "text": "start the third one", - "intent": "None", - "entities": [] - }, - { - "text": "stop qa-dev-01 virtual machine", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 1, - "endPos": 5 - } - ] - }, - { - "text": "delete vm xxxx", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown dev012qa1 virtual machine", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 1, - "endPos": 1 - } - ] - }, - { - "text": "stop the jauakaka virtual machine", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "remove vm xxxx", - "intent": "None", - "entities": [] - }, - { - "text": "what subscription am i using", - "intent": "CurrentSubscription", - "entities": [] - }, - { - "text": "switch sub to dev-internal2", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 3, - "endPos": 5 - } - ] - }, - { - "text": "run runbook hello-world from autdevqa automation account", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook psrunbook from non-existent-account automation account", - "intent": "None", - "entities": [] - }, - { - "text": "change to subscription ximbus deployment test", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 3, - "endPos": 5 - } - ] - }, - { - "text": "my jobs", - "intent": "None", - "entities": [] - }, - { - "text": "current subscription", - "intent": "CurrentSubscription", - "entities": [] - }, - { - "text": "use subscription manifold-test", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "what are the virtual machines?", - "intent": "None", - "entities": [] - }, - { - "text": "enumerate vms", - "intent": "None", - "entities": [] - }, - { - "text": "start the alalala runbook", - "intent": "None", - "entities": [] - }, - { - "text": "show me the job status", - "intent": "None", - "entities": [] - }, - { - "text": "switch to the dev-test subscription", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 3, - "endPos": 5 - } - ] - }, - { - "text": "launch runbook testbk01", - "intent": "None", - "entities": [] - }, - { - "text": "stop the qweruw vm", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "run the deded azure runbook", - "intent": "None", - "entities": [] - }, - { - "text": "select the third subscription", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "what's my current subscription?", - "intent": "CurrentSubscription", - "entities": [] - }, - { - "text": "select the acom-test subscription", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "start runbook aadscdemo-get-wunderlistuser from stefstrauto automation account", - "intent": "None", - "entities": [] - }, - { - "text": "help me", - "intent": "Help", - "entities": [] - }, - { - "text": "run the configurevm runbook", - "intent": "None", - "entities": [] - }, - { - "text": "start virtual machine xxxx", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 3, - "endPos": 3 - } - ] - }, - { - "text": "logout", - "intent": "Logout", - "entities": [] - }, - { - "text": "start virtual machine kajakakxd", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 3, - "endPos": 3 - } - ] - }, - { - "text": "signout", - "intent": "Logout", - "entities": [] - }, - { - "text": "shutdown pilea-dev vm", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 1, - "endPos": 3 - } - ] - }, - { - "text": "run runbook", - "intent": "None", - "entities": [] - }, - { - "text": "use the staging subscription", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "switch sub to devtest", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 3, - "endPos": 3 - } - ] - }, - { - "text": "start the abcdef23 vm", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "switch subscription to x312345", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 3, - "endPos": 3 - } - ] - }, - { - "text": "log off", - "intent": "Logout", - "entities": [] - }, - { - "text": "what is my current subscription", - "intent": "CurrentSubscription", - "entities": [] - }, - { - "text": "use the second one", - "intent": "UseSubscription", - "entities": [] - }, - { - "text": "stop vm x0324aa", - "intent": "DetermineResource", - "entities": [] - }, - { - "text": "stop server03 virtual machine", - "intent": "None", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 1, - "endPos": 1 - } - ] - }, - { - "text": "stop pilea-dev vm", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 1, - "endPos": 3 - } - ] - }, - { - "text": "log out", - "intent": "Logout", - "entities": [] - }, - { - "text": "shutdown x34-prod virtual machine", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 1, - "endPos": 3 - } - ] - }, - { - "text": "select the azure training kit subscription", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "what's subscription am i using?", - "intent": "CurrentSubscription", - "entities": [] - }, - { - "text": "select subscription 12345", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "run azure runbook jujujuj", - "intent": "None", - "entities": [] - }, - { - "text": "use the ximbustestcloud subscription", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "use the dev-test subscription", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "give me the status of a job", - "intent": "None", - "entities": [] - }, - { - "text": "stop vm integration-server", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "select subscription wenham-qa", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "launch the 12314 runbook", - "intent": "None", - "entities": [] - }, - { - "text": "start the x runbook", - "intent": "None", - "entities": [] - }, - { - "text": "start azure runbook mybook", - "intent": "None", - "entities": [] - }, - { - "text": "start vm server1", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "what is my current subscription?", - "intent": "CurrentSubscription", - "entities": [] - }, - { - "text": "use subscription devdev", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "status job", - "intent": "None", - "entities": [] - }, - { - "text": "start the yyyy virtual machine", - "intent": "None", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "stop vm osisksks214", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "start runbook 0101011", - "intent": "None", - "entities": [] - }, - { - "text": "change to the acom-test subscription", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 3, - "endPos": 5 - } - ] - }, - { - "text": "use the staging-01 subscription", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "change to subscription media service private prod", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 3, - "endPos": 6 - } - ] - }, - { - "text": "use subscription pepe", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "start vm 234afsfs", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "run the oapapap runbook", - "intent": "None", - "entities": [] - }, - { - "text": "runbook status", - "intent": "None", - "entities": [] - }, - { - "text": "use the ximbustestlab subcription", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "help", - "intent": "Help", - "entities": [] - }, - { - "text": "shutdown all virtual machines", - "intent": "None", - "entities": [] - }, - { - "text": "stop all vms", - "intent": "None", - "entities": [] - }, - { - "text": "stop all my virtual machines", - "intent": "None", - "entities": [] - }, - { - "text": "stop all my vms", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown all my virtual machines", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown all my vms", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook cleanup-all-my-resource-groups", - "intent": "None", - "entities": [] - }, - { - "text": "start all vms from azurebot-development resource group", - "intent": "None", - "entities": [ - { - "entity": "ResourceGroup", - "startPos": 4, - "endPos": 6 - } - ] - }, - { - "text": "show runbook aademo-helloworld description", - "intent": "None", - "entities": [] - }, - { - "text": "stop all vms from azurebot-development resource group", - "intent": "None", - "entities": [ - { - "entity": "ResourceGroup", - "startPos": 4, - "endPos": 6 - } - ] - }, - { - "text": "shutdown all vms from azurebot-development resource group", - "intent": "None", - "entities": [ - { - "entity": "ResourceGroup", - "startPos": 4, - "endPos": 6 - } - ] - }, - { - "text": "shutdown all vms from test-ez resource group", - "intent": "None", - "entities": [ - { - "entity": "ResourceGroup", - "startPos": 4, - "endPos": 6 - } - ] - }, - { - "text": "shutdown all vms from coreos1vm resource group", - "intent": "None", - "entities": [ - { - "entity": "ResourceGroup", - "startPos": 4, - "endPos": 4 - } - ] - }, - { - "text": "start all vms from coreos1vm resource group", - "intent": "None", - "entities": [ - { - "entity": "ResourceGroup", - "startPos": 4, - "endPos": 4 - } - ] - }, - { - "text": "stop all vms from coreos1vm resource group", - "intent": "None", - "entities": [ - { - "entity": "ResourceGroup", - "startPos": 4, - "endPos": 4 - } - ] - }, - { - "text": "stop all vms from test-ez resource group", - "intent": "None", - "entities": [ - { - "entity": "ResourceGroup", - "startPos": 4, - "endPos": 6 - } - ] - }, - { - "text": "start all vms from test-ez resource group", - "intent": "None", - "entities": [ - { - "entity": "ResourceGroup", - "startPos": 4, - "endPos": 6 - } - ] - }, - { - "text": "shutdown all vms from test-ez-rg resource group", - "intent": "None", - "entities": [ - { - "entity": "ResourceGroup", - "startPos": 4, - "endPos": 8 - } - ] - }, - { - "text": "stop all vms from test-ez-rg resource group", - "intent": "None", - "entities": [ - { - "entity": "ResourceGroup", - "startPos": 4, - "endPos": 8 - } - ] - }, - { - "text": "start all vms from test-ez-rg resource group", - "intent": "None", - "entities": [ - { - "entity": "ResourceGroup", - "startPos": 4, - "endPos": 8 - } - ] - }, - { - "text": "show runbook description", - "intent": "None", - "entities": [] - }, - { - "text": "list my resource groups", - "intent": "None", - "entities": [] - }, - { - "text": "what resource groups do i have?", - "intent": "None", - "entities": [] - }, - { - "text": "list my rgs", - "intent": "None", - "entities": [] - }, - { - "text": "what rgs do i have?", - "intent": "None", - "entities": [] - }, - { - "text": "list rgs", - "intent": "None", - "entities": [] - }, - { - "text": "list resource groups", - "intent": "None", - "entities": [] - }, - { - "text": "list subsctiptions", - "intent": "ListSubscriptions", - "entities": [] - }, - { - "text": "start all vms from azrbot-development resource group", - "intent": "None", - "entities": [ - { - "entity": "ResourceGroup", - "startPos": 4, - "endPos": 6 - } - ] - }, - { - "text": "select azurebotprod_event subscription", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 1, - "endPos": 3 - } - ] - }, - { - "text": "select subscription azurebotprod_events", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "start all vms from resource group azrbot-development", - "intent": "None", - "entities": [ - { - "entity": "ResourceGroup", - "startPos": 6, - "endPos": 8 - } - ] - }, - { - "text": "select azurebotprod_events subscription", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 1, - "endPos": 3 - } - ] - }, - { - "text": "switch azurebotprod_events subscription", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 1, - "endPos": 3 - } - ] - }, - { - "text": "select azurebotvsts_events subscription", - "intent": "UseSubscription", - "entities": [ - { - "entity": "Subscription", - "startPos": 1, - "endPos": 3 - } - ] - }, - { - "text": "list my websites", - "intent": "DetermineResource", - "entities": [ - { - "entity": "WebApp", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "list my vms", - "intent": "DetermineResource", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - } - ] +{ + "luis_schema_version": "2.1.0", + "versionId": "0.1", + "name": "AzureBot-Root", + "desc": "A bot that can interact with Azure", + "culture": "en-us", + "intents": [ + { + "name": "CurrentSubscription" + }, + { + "name": "Help" + }, + { + "name": "ListSubscriptions" + }, + { + "name": "Logout" + }, + { + "name": "None" + }, + { + "name": "UseSubscription" + } + ], + "entities": [ + { + "name": "Subscription" + } + ], + "composites": [], + "closedLists": [], + "bing_entities": [ + "number", + "ordinal" + ], + "actions": [ + { + "actionName": "UseSubscription", + "intentName": "UseSubscription", + "channel": null, + "actionParameters": [ + { + "parameterName": "subscriptionName", + "entityName": "Subscription", + "required": false, + "question": null, + "phraseListFeatureName": null + } + ] + } + ], + "model_features": [ + { + "name": "LogoutSynonyms", + "mode": true, + "words": "logout,logoff,signout,log out,log off,sign out", + "activated": true + }, + { + "name": "RGSynonyms", + "mode": true, + "words": "resource group,RG,resource", + "activated": true + }, + { + "name": "RunbookSynonyms", + "mode": true, + "words": "runbook,run book", + "activated": true + }, + { + "name": "ShowList", + "mode": true, + "words": "show,list", + "activated": true + }, + { + "name": "SubscriptionsSynonyms", + "mode": true, + "words": "subscriptions,subs", + "activated": true + }, + { + "name": "SubscriptionSynonyms", + "mode": true, + "words": "subscription,sub", + "activated": true + }, + { + "name": "VmSynonyms", + "mode": true, + "words": "vm,virtual machine,vms,virtual machines", + "activated": true + } + ], + "regex_features": [], + "utterances": [ + { + "text": "hello", + "intent": "None", + "entities": [] + }, + { + "text": "hi", + "intent": "None", + "entities": [] + }, + { + "text": "test", + "intent": "None", + "entities": [] + }, + { + "text": "help", + "intent": "Help", + "entities": [] + }, + { + "text": "help me", + "intent": "Help", + "entities": [] + }, + { + "text": "log out", + "intent": "Logout", + "entities": [] + }, + { + "text": "5", + "intent": "None", + "entities": [] + }, + { + "text": "log off", + "intent": "Logout", + "entities": [] + }, + { + "text": "sign out", + "intent": "Logout", + "entities": [] + }, + { + "text": "logout", + "intent": "Logout", + "entities": [] + }, + { + "text": "create vm", + "intent": "None", + "entities": [] + }, + { + "text": "logoff", + "intent": "Logout", + "entities": [] + }, + { + "text": "list virtual machines", + "intent": "None", + "entities": [] + }, + { + "text": "list vms", + "intent": "None", + "entities": [] + }, + { + "text": "list my vms", + "intent": "None", + "entities": [] + }, + { + "text": "list my virtual machines", + "intent": "None", + "entities": [] + }, + { + "text": "start vm", + "intent": "None", + "entities": [] + }, + { + "text": "stop vm", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook", + "intent": "None", + "entities": [] + }, + { + "text": "remove vm", + "intent": "None", + "entities": [] + }, + { + "text": "delete vm", + "intent": "None", + "entities": [] + }, + { + "text": "list my subs", + "intent": "ListSubscriptions", + "entities": [] + }, + { + "text": "list subscriptions", + "intent": "ListSubscriptions", + "entities": [] + }, + { + "text": "show vms", + "intent": "None", + "entities": [] + }, + { + "text": "list my resource groups", + "intent": "None", + "entities": [] + }, + { + "text": "start vm myserver", + "intent": "None", + "entities": [] + }, + { + "text": "start vm server1", + "intent": "None", + "entities": [] + }, + { + "text": "start virtual machine xxxx", + "intent": "None", + "entities": [] + }, + { + "text": "start the yyyy virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "start the abcdef23 vm", + "intent": "None", + "entities": [] + }, + { + "text": "start vm 234afsfs", + "intent": "None", + "entities": [] + }, + { + "text": "start virtual machine kajakakxd", + "intent": "None", + "entities": [] + }, + { + "text": "stop vm x0324aa", + "intent": "None", + "entities": [] + }, + { + "text": "stop virtual machine zaraza", + "intent": "None", + "entities": [] + }, + { + "text": "stop vm osisksks214", + "intent": "None", + "entities": [] + }, + { + "text": "stop the qweruw vm", + "intent": "None", + "entities": [] + }, + { + "text": "stop the jauakaka virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "stop virtual machine 12345", + "intent": "None", + "entities": [] + }, + { + "text": "start the xxy virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "start virtual machine newserver01", + "intent": "None", + "entities": [] + }, + { + "text": "use the devtest subscription", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 8, + "endPos": 14 + } + ] + }, + { + "text": "use subscription production", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 17, + "endPos": 26 + } + ] + }, + { + "text": "select subscription qa", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 20, + "endPos": 21 + } + ] + }, + { + "text": "select the develop01 subscription", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 11, + "endPos": 19 + } + ] + }, + { + "text": "select subscription onetwo", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 20, + "endPos": 25 + } + ] + }, + { + "text": "select subscription 12345", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 20, + "endPos": 24 + } + ] + }, + { + "text": "choose subscription qa-internal", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 20, + "endPos": 30 + } + ] + }, + { + "text": "choose the falkfajsfk subscription", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 11, + "endPos": 20 + } + ] + }, + { + "text": "show me all virtual machines", + "intent": "None", + "entities": [] + }, + { + "text": "list the virtual machines", + "intent": "None", + "entities": [] + }, + { + "text": "list the vms", + "intent": "None", + "entities": [] + }, + { + "text": "list vm", + "intent": "None", + "entities": [] + }, + { + "text": "run runbook test01", + "intent": "None", + "entities": [] + }, + { + "text": "run the oapapap runbook", + "intent": "None", + "entities": [] + }, + { + "text": "launch runbook testbk01", + "intent": "None", + "entities": [] + }, + { + "text": "launch the 12314 runbook", + "intent": "None", + "entities": [] + }, + { + "text": "start the alalala runbook", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook 0101011", + "intent": "None", + "entities": [] + }, + { + "text": "run azure runbook jujujuj", + "intent": "None", + "entities": [] + }, + { + "text": "start azure runbook mybook", + "intent": "None", + "entities": [] + }, + { + "text": "run the deded azure runbook", + "intent": "None", + "entities": [] + }, + { + "text": "use the dev-test subscription", + "intent": "None", + "entities": [] + }, + { + "text": "enumerate vms", + "intent": "None", + "entities": [] + }, + { + "text": "use subscription devdev", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 17, + "endPos": 22 + } + ] + }, + { + "text": "what are the virtual machines?", + "intent": "None", + "entities": [] + }, + { + "text": "start vm server01", + "intent": "None", + "entities": [] + }, + { + "text": "use the xxx subscription", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 8, + "endPos": 10 + } + ] + }, + { + "text": "use subscription dev-test", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 17, + "endPos": 24 + } + ] + }, + { + "text": "use subscription pepep", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 17, + "endPos": 21 + } + ] + }, + { + "text": "stop abancc23 vm", + "intent": "None", + "entities": [] + }, + { + "text": "stop vm abancc23", + "intent": "None", + "entities": [] + }, + { + "text": "stop the server01 vm", + "intent": "None", + "entities": [] + }, + { + "text": "list all vms", + "intent": "None", + "entities": [] + }, + { + "text": "stop the abancc23 vm", + "intent": "None", + "entities": [] + }, + { + "text": "stop vm myserver", + "intent": "None", + "entities": [] + }, + { + "text": "show me the subscriptions", + "intent": "ListSubscriptions", + "entities": [] + }, + { + "text": "show subscriptions", + "intent": "ListSubscriptions", + "entities": [] + }, + { + "text": "which are my subscriptions?", + "intent": "ListSubscriptions", + "entities": [] + }, + { + "text": "show all subscriptions", + "intent": "ListSubscriptions", + "entities": [] + }, + { + "text": "select the first subscription", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 11, + "endPos": 15 + } + ] + }, + { + "text": "use the staging-01 subscription", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 8, + "endPos": 17 + } + ] + }, + { + "text": "use the staging subscription", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 8, + "endPos": 14 + } + ] + }, + { + "text": "use subscription pepe", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 17, + "endPos": 20 + } + ] + }, + { + "text": "run the configurevm runbook", + "intent": "None", + "entities": [] + }, + { + "text": "start the x runbook", + "intent": "None", + "entities": [] + }, + { + "text": "select the third subscription", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 11, + "endPos": 15 + } + ] + }, + { + "text": "use the second one", + "intent": "UseSubscription", + "entities": [] + }, + { + "text": "start the third one", + "intent": "None", + "entities": [] + }, + { + "text": "signout", + "intent": "Logout", + "entities": [] + }, + { + "text": "remove vm xxxx", + "intent": "None", + "entities": [] + }, + { + "text": "delete vm xxxx", + "intent": "None", + "entities": [] + }, + { + "text": "remove virtual machine xxxx", + "intent": "None", + "entities": [] + }, + { + "text": "remove vm xyasda", + "intent": "None", + "entities": [] + }, + { + "text": "create vm xyzs", + "intent": "None", + "entities": [] + }, + { + "text": "create virtual machine xysz", + "intent": "None", + "entities": [] + }, + { + "text": "delete virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "start run book", + "intent": "None", + "entities": [] + }, + { + "text": "run runbook", + "intent": "None", + "entities": [] + }, + { + "text": "start vm pilea-vm", + "intent": "None", + "entities": [] + }, + { + "text": "stop vm pilea-vm", + "intent": "None", + "entities": [] + }, + { + "text": "start the pilea-vm vm", + "intent": "None", + "entities": [] + }, + { + "text": "stop the pilea-vm vm", + "intent": "None", + "entities": [] + }, + { + "text": "start the pilea-vm virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "stop the pilea-vm virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "start virtual machine pilea-vm", + "intent": "None", + "entities": [] + }, + { + "text": "stop virtual machine pilea-vm", + "intent": "None", + "entities": [] + }, + { + "text": "start vm server-01", + "intent": "None", + "entities": [] + }, + { + "text": "stop vm integration-server", + "intent": "None", + "entities": [] + }, + { + "text": "switch to the dev-test subscription", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 14, + "endPos": 21 + } + ] + }, + { + "text": "change to the acom-test subscription", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 14, + "endPos": 22 + } + ] + }, + { + "text": "select the acom-test subscription", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 11, + "endPos": 19 + } + ] + }, + { + "text": "select subscription wenham-qa", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 20, + "endPos": 28 + } + ] + }, + { + "text": "use subscription manifold-test", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 17, + "endPos": 29 + } + ] + }, + { + "text": "change to subscription media service private prod", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 23, + "endPos": 48 + } + ] + }, + { + "text": "change to subscription ximbus deployment test", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 23, + "endPos": 44 + } + ] + }, + { + "text": "use the ximbustestlab subcription", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 8, + "endPos": 20 + } + ] + }, + { + "text": "use the ximbustestcloud subscription", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 8, + "endPos": 22 + } + ] + }, + { + "text": "select the azure training kit subscription", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 11, + "endPos": 28 + } + ] + }, + { + "text": "start vm encta02", + "intent": "None", + "entities": [] + }, + { + "text": "use subscription", + "intent": "UseSubscription", + "entities": [] + }, + { + "text": "user subscription 5", + "intent": "UseSubscription", + "entities": [] + }, + { + "text": "change my subscription", + "intent": "UseSubscription", + "entities": [] + }, + { + "text": "stop vm winservervm", + "intent": "None", + "entities": [] + }, + { + "text": "can you please list my virtual machines", + "intent": "None", + "entities": [] + }, + { + "text": "start vm \"pilea-vm\"", + "intent": "None", + "entities": [] + }, + { + "text": "stop the pilea vm", + "intent": "None", + "entities": [] + }, + { + "text": "start the pilea vm", + "intent": "None", + "entities": [] + }, + { + "text": "start the cloudsvr vm", + "intent": "None", + "entities": [] + }, + { + "text": "stop the cloudsvr vm", + "intent": "None", + "entities": [] + }, + { + "text": "start vm cloudsvr", + "intent": "None", + "entities": [] + }, + { + "text": "stop vm cloudsvr", + "intent": "None", + "entities": [] + }, + { + "text": "select dev-test subscription", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 7, + "endPos": 14 + } + ] + }, + { + "text": "show me the status of a job", + "intent": "None", + "entities": [] + }, + { + "text": "job status", + "intent": "None", + "entities": [] + }, + { + "text": "status job", + "intent": "None", + "entities": [] + }, + { + "text": "my jobs", + "intent": "None", + "entities": [] + }, + { + "text": "runbook status", + "intent": "None", + "entities": [] + }, + { + "text": "show me the job status", + "intent": "None", + "entities": [] + }, + { + "text": "give me the status of a job", + "intent": "None", + "entities": [] + }, + { + "text": "what's my current subscription?", + "intent": "CurrentSubscription", + "entities": [] + }, + { + "text": "what is my current subscription?", + "intent": "CurrentSubscription", + "entities": [] + }, + { + "text": "current subscription", + "intent": "CurrentSubscription", + "entities": [] + }, + { + "text": "what's subscription am i using?", + "intent": "CurrentSubscription", + "entities": [] + }, + { + "text": "what's my current subscription", + "intent": "CurrentSubscription", + "entities": [] + }, + { + "text": "what is my current subscription", + "intent": "CurrentSubscription", + "entities": [] + }, + { + "text": "what subscription am i using", + "intent": "CurrentSubscription", + "entities": [] + }, + { + "text": "what's the subscription am i using?", + "intent": "CurrentSubscription", + "entities": [] + }, + { + "text": "what is the subscription am i using?", + "intent": "CurrentSubscription", + "entities": [] + }, + { + "text": "what's the subscription am i using", + "intent": "CurrentSubscription", + "entities": [] + }, + { + "text": "what is the subscription am i using", + "intent": "CurrentSubscription", + "entities": [] + }, + { + "text": "what's my currrent subscription?", + "intent": "CurrentSubscription", + "entities": [] + }, + { + "text": "shutdown vm", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown vm 12345", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown vm pilea-vm", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown vm 1234", + "intent": "None", + "entities": [] + }, + { + "text": "start server01 vm", + "intent": "None", + "entities": [] + }, + { + "text": "start pilea-qa vm", + "intent": "None", + "entities": [] + }, + { + "text": "start server02 virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "start dev-vm1 virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "stop server01 vm", + "intent": "None", + "entities": [] + }, + { + "text": "stop pilea-dev vm", + "intent": "None", + "entities": [] + }, + { + "text": "stop qa-dev-01 virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "stop server03 virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown server05 vm", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown pilea-dev vm", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown dev012qa1 virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown x34-prod virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "list subs", + "intent": "ListSubscriptions", + "entities": [] + }, + { + "text": "switch subscription to x312345", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 23, + "endPos": 29 + } + ] + }, + { + "text": "switch sub to dev-internal2", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 14, + "endPos": 26 + } + ] + }, + { + "text": "switch sub to devtest", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 14, + "endPos": 20 + } + ] + }, + { + "text": "switch subscription to qaprod", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 23, + "endPos": 28 + } + ] + }, + { + "text": "use sub qadev1", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 8, + "endPos": 13 + } + ] + }, + { + "text": "use subscription q-internal", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 17, + "endPos": 26 + } + ] + }, + { + "text": "change subscription to x2331atest", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 23, + "endPos": 32 + } + ] + }, + { + "text": "change sub to devtest", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 14, + "endPos": 20 + } + ] + }, + { + "text": "switch sub to acom pre-prod", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 14, + "endPos": 26 + } + ] + }, + { + "text": "change subscription to wacom devtest", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 23, + "endPos": 35 + } + ] + }, + { + "text": "switch subscription to powerbi pre-prod", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 23, + "endPos": 38 + } + ] + }, + { + "text": "start runbook hello-world", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook cleanup-demos-msdn100", + "intent": "None", + "entities": [] + }, + { + "text": "start run book restore-resourcegroups", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook restore-resourcegroups", + "intent": "None", + "entities": [] + }, + { + "text": "start run book restore-azuredb", + "intent": "None", + "entities": [] + }, + { + "text": "start run book cleanup-demos-msdn100", + "intent": "None", + "entities": [] + }, + { + "text": "stop all vms", + "intent": "None", + "entities": [] + }, + { + "text": "list automation accounts", + "intent": "None", + "entities": [] + }, + { + "text": "list my automation accounts", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook prod-dev from qa-internal-2 automation account", + "intent": "None", + "entities": [] + }, + { + "text": "run runbook hello-world from autdevqa automation account", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook aadscdemo-get-wunderlistuser from stefstrauto automation account", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook psrunbook from testez automation account", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook psrunbook from non-existent-account automation account", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook psrunbook from non-existentaccount automation account", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook psrunbook from accountthatdoesntexists automation account", + "intent": "None", + "entities": [] + }, + { + "text": "show job1 output", + "intent": "None", + "entities": [] + }, + { + "text": "list my runbooks", + "intent": "None", + "entities": [] + }, + { + "text": "list runbooks", + "intent": "None", + "entities": [] + }, + { + "text": "show runbooks", + "intent": "None", + "entities": [] + }, + { + "text": "show me my runbooks", + "intent": "None", + "entities": [] + }, + { + "text": "show job15 output", + "intent": "None", + "entities": [] + }, + { + "text": "show runbook cleanup-demos-msdn100 description", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook cleanup-demos-msdn100 from devops-automation automation account", + "intent": "None", + "entities": [] + }, + { + "text": "show runbook psrunbook description", + "intent": "None", + "entities": [] + }, + { + "text": "start all vms", + "intent": "None", + "entities": [] + }, + { + "text": "show runbook write-helloworld description", + "intent": "None", + "entities": [] + }, + { + "text": "list runbook remove-resourcegroups description", + "intent": "None", + "entities": [] + }, + { + "text": "list job1 output", + "intent": "None", + "entities": [] + }, + { + "text": "start cleanup-demos-msdn100 runbook", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook remove-resourcegroups", + "intent": "None", + "entities": [] + }, + { + "text": "start remove-resourcegroups runbook", + "intent": "None", + "entities": [] + }, + { + "text": "start all virtual machines", + "intent": "None", + "entities": [] + }, + { + "text": "start all my virtual machines", + "intent": "None", + "entities": [] + }, + { + "text": "start all my vms", + "intent": "None", + "entities": [] + }, + { + "text": "stop all virtual machines", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown all virtual machines", + "intent": "None", + "entities": [] + }, + { + "text": "stop all my virtual machines", + "intent": "None", + "entities": [] + }, + { + "text": "stop all my vms", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown all my virtual machines", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown all my vms", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook cleanup-all-my-resource-groups", + "intent": "None", + "entities": [] + }, + { + "text": "start all vms from azurebot-development resource group", + "intent": "None", + "entities": [] + }, + { + "text": "show runbook aademo-helloworld description", + "intent": "None", + "entities": [] + }, + { + "text": "stop all vms from azurebot-development resource group", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown all vms from azurebot-development resource group", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown all vms from test-ez resource group", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown all vms from coreos1vm resource group", + "intent": "None", + "entities": [] + }, + { + "text": "start all vms from coreos1vm resource group", + "intent": "None", + "entities": [] + }, + { + "text": "stop all vms from coreos1vm resource group", + "intent": "None", + "entities": [] + }, + { + "text": "stop all vms from test-ez resource group", + "intent": "None", + "entities": [] + }, + { + "text": "start all vms from test-ez resource group", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown all vms from test-ez-rg resource group", + "intent": "None", + "entities": [] + }, + { + "text": "stop all vms from test-ez-rg resource group", + "intent": "None", + "entities": [] + }, + { + "text": "start all vms from test-ez-rg resource group", + "intent": "None", + "entities": [] + }, + { + "text": "show runbook description", + "intent": "None", + "entities": [] + }, + { + "text": "what resource groups do i have?", + "intent": "None", + "entities": [] + }, + { + "text": "list my rgs", + "intent": "None", + "entities": [] + }, + { + "text": "what rgs do i have?", + "intent": "None", + "entities": [] + }, + { + "text": "list rgs", + "intent": "None", + "entities": [] + }, + { + "text": "list resource groups", + "intent": "None", + "entities": [] + }, + { + "text": "list subsctiptions", + "intent": "ListSubscriptions", + "entities": [] + }, + { + "text": "switch subscription", + "intent": "UseSubscription", + "entities": [] + }, + { + "text": "start all vms from azrbot-development resource group", + "intent": "None", + "entities": [] + }, + { + "text": "select azurebotprod_event subscription", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 7, + "endPos": 24 + } + ] + }, + { + "text": "select subscription azurebotprod_events", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 20, + "endPos": 38 + } + ] + }, + { + "text": "start all vms from resource group azrbot-development", + "intent": "None", + "entities": [] + }, + { + "text": "select azurebotprod_events subscription", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 7, + "endPos": 25 + } + ] + }, + { + "text": "switch azurebotprod_events subscription", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 7, + "endPos": 25 + } + ] + }, + { + "text": "select azurebotvsts_events subscription", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 7, + "endPos": 25 + } + ] + }, + { + "text": "list my websites", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown all vms from notfound resource group", + "intent": "None", + "entities": [] + }, + { + "text": "switch subscription notfound", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 20, + "endPos": 27 + } + ] + }, + { + "text": "switch subscription azurebotprod_events", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 20, + "endPos": 38 + } + ] + }, + { + "text": "switch subscription azurebotvsts_events", + "intent": "UseSubscription", + "entities": [ + { + "entity": "Subscription", + "startPos": 20, + "endPos": 38 + } + ] + }, + { + "text": "start vm notfound-start", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown vm notfound-shutdown", + "intent": "None", + "entities": [] + }, + { + "text": "stop vm notfound-stop", + "intent": "None", + "entities": [] + }, + { + "text": "show runbook notfound description", + "intent": "None", + "entities": [] + } + ] } \ No newline at end of file diff --git a/AzureBot/LuisModel/AzureBot-VMs.json b/AzureBot/LuisModel/AzureBot-VMs.json index e5b7cd7..f377a8a 100644 --- a/AzureBot/LuisModel/AzureBot-VMs.json +++ b/AzureBot/LuisModel/AzureBot-VMs.json @@ -1,1682 +1,1932 @@ -{ - "luis_schema_version": "1.3.0", - "name": "AzureBot-VMs", - "desc": "A bot that can interact with Azure", - "culture": "en-us", - "intents": [ - { - "name": "ListVms" - }, - { - "name": "None" - }, - { - "name": "ShutdownAllVms" - }, - { - "name": "ShutdownVm" - }, - { - "name": "StartAllVms" - }, - { - "name": "StartVm" - }, - { - "name": "StopAllVms" - }, - { - "name": "StopVm" - } - ], - "entities": [ - { - "name": "VirtualMachine" - } - ], - "composites": [], - "bing_entities": [ - "number", - "ordinal" - ], - "actions": [ - { - "actionName": "ShutdownVm", - "intentName": "ShutdownVm", - "actionParameters": [ - { - "parameterName": "vmName", - "entityName": "VirtualMachine", - "required": false - } - ] - }, - { - "actionName": "StartVm", - "intentName": "StartVm", - "actionParameters": [ - { - "parameterName": "vmName", - "entityName": "VirtualMachine", - "required": false - } - ] - }, - { - "actionName": "StopVm", - "intentName": "StopVm", - "actionParameters": [ - { - "parameterName": "vmName", - "entityName": "VirtualMachine", - "required": false - } - ] - } - ], - "model_features": [ - { - "name": "VmSynonyms", - "mode": true, - "words": "vm,virtual machine,vms,virtual machines", - "activated": true - }, - { - "name": "ShowList", - "mode": true, - "words": "show,list", - "activated": true - } - ], - "regex_features": [], - "utterances": [ - { - "text": "user subscription 5", - "intent": "None", - "entities": [] - }, - { - "text": "stop vm abancc23", - "intent": "StopVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "delete virtual machine", - "intent": "None", - "entities": [] - }, - { - "text": "what subscription am i using", - "intent": "None", - "entities": [] - }, - { - "text": "switch sub to dev-internal2", - "intent": "None", - "entities": [] - }, - { - "text": "select subscription 12345", - "intent": "None", - "entities": [] - }, - { - "text": "show job1 output", - "intent": "None", - "entities": [] - }, - { - "text": "remove vm", - "intent": "None", - "entities": [] - }, - { - "text": "what is my current subscription", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook psrunbook from accountthatdoesntexists automation account", - "intent": "None", - "entities": [] - }, - { - "text": "switch subscription to x312345", - "intent": "None", - "entities": [] - }, - { - "text": "hi", - "intent": "None", - "entities": [] - }, - { - "text": "use subscription", - "intent": "None", - "entities": [] - }, - { - "text": "create virtual machine xysz", - "intent": "None", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 3, - "endPos": 3 - } - ] - }, - { - "text": "create vm xyzs", - "intent": "None", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "start runbook psrunbook from non-existentaccount automation account", - "intent": "None", - "entities": [] - }, - { - "text": "list subs", - "intent": "None", - "entities": [] - }, - { - "text": "stop abancc23 vm", - "intent": "StopVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 1, - "endPos": 1 - } - ] - }, - { - "text": "start vm encta02", - "intent": "StartVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "select subscription onetwo", - "intent": "None", - "entities": [] - }, - { - "text": "what's my current subscription", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook psrunbook from testez automation account", - "intent": "None", - "entities": [] - }, - { - "text": "current subscription", - "intent": "None", - "entities": [] - }, - { - "text": "hello", - "intent": "None", - "entities": [] - }, - { - "text": "use the ximbustestcloud subscription", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook", - "intent": "None", - "entities": [] - }, - { - "text": "remove virtual machine xxxx", - "intent": "None", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 3, - "endPos": 3 - } - ] - }, - { - "text": "shutdown dev012qa1 virtual machine", - "intent": "ShutdownVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 1, - "endPos": 1 - } - ] - }, - { - "text": "shutdown x34-prod virtual machine", - "intent": "ShutdownVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 1, - "endPos": 3 - } - ] - }, - { - "text": "what's subscription am i using?", - "intent": "None", - "entities": [] - }, - { - "text": "select the azure training kit subscription", - "intent": "None", - "entities": [] - }, - { - "text": "select the develop01 subscription", - "intent": "None", - "entities": [] - }, - { - "text": "use subscription pepep", - "intent": "None", - "entities": [] - }, - { - "text": "remove vm xyasda", - "intent": "None", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "start runbook psrunbook from non-existent-account automation account", - "intent": "None", - "entities": [] - }, - { - "text": "what is my current subscription?", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook aadscdemo-get-wunderlistuser from stefstrauto automation account", - "intent": "None", - "entities": [] - }, - { - "text": "run runbook hello-world from autdevqa automation account", - "intent": "None", - "entities": [] - }, - { - "text": "stop vm", - "intent": "StopVm", - "entities": [] - }, - { - "text": "shutdown pilea-dev vm", - "intent": "ShutdownVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 1, - "endPos": 3 - } - ] - }, - { - "text": "delete vm xxxx", - "intent": "None", - "entities": [] - }, - { - "text": "what's my current subscription?", - "intent": "None", - "entities": [] - }, - { - "text": "change to subscription ximbus deployment test", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown server05 vm", - "intent": "ShutdownVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 1, - "endPos": 1 - } - ] - }, - { - "text": "start run book cleanup-demos-msdn100", - "intent": "None", - "entities": [] - }, - { - "text": "use subscription dev-test", - "intent": "None", - "entities": [] - }, - { - "text": "select subscription qa", - "intent": "None", - "entities": [] - }, - { - "text": "use the ximbustestlab subcription", - "intent": "None", - "entities": [] - }, - { - "text": "remove vm xxxx", - "intent": "None", - "entities": [] - }, - { - "text": "my jobs", - "intent": "None", - "entities": [] - }, - { - "text": "select the third subscription", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook prod-dev from qa-internal-2 automation account", - "intent": "None", - "entities": [] - }, - { - "text": "start vm", - "intent": "StartVm", - "entities": [] - }, - { - "text": "stop server01 vm", - "intent": "StopVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 1, - "endPos": 1 - } - ] - }, - { - "text": "start runbook cleanup-demos-msdn100", - "intent": "None", - "entities": [] - }, - { - "text": "change to subscription media service private prod", - "intent": "None", - "entities": [] - }, - { - "text": "stop server03 virtual machine", - "intent": "StopVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 1, - "endPos": 1 - } - ] - }, - { - "text": "select the acom-test subscription", - "intent": "None", - "entities": [] - }, - { - "text": "signout", - "intent": "None", - "entities": [] - }, - { - "text": "start run book restore-azuredb", - "intent": "None", - "entities": [] - }, - { - "text": "give me the status of a job", - "intent": "None", - "entities": [] - }, - { - "text": "use subscription production", - "intent": "None", - "entities": [] - }, - { - "text": "use the xxx subscription", - "intent": "None", - "entities": [] - }, - { - "text": "status job", - "intent": "None", - "entities": [] - }, - { - "text": "start the third one", - "intent": "StartVm", - "entities": [] - }, - { - "text": "start the x runbook", - "intent": "None", - "entities": [] - }, - { - "text": "show me the job status", - "intent": "None", - "entities": [] - }, - { - "text": "list my virtual machines", - "intent": "ListVms", - "entities": [] - }, - { - "text": "start dev-vm1 virtual machine", - "intent": "StartVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 1, - "endPos": 3 - } - ] - }, - { - "text": "stop qa-dev-01 virtual machine", - "intent": "StopVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 1, - "endPos": 5 - } - ] - }, - { - "text": "list my automation accounts", - "intent": "None", - "entities": [] - }, - { - "text": "use the devtest subscription", - "intent": "None", - "entities": [] - }, - { - "text": "start vm server01", - "intent": "StartVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "job status", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook hello-world", - "intent": "None", - "entities": [] - }, - { - "text": "use subscription manifold-test", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook restore-resourcegroups", - "intent": "None", - "entities": [] - }, - { - "text": "change to the acom-test subscription", - "intent": "None", - "entities": [] - }, - { - "text": "use the second one", - "intent": "None", - "entities": [] - }, - { - "text": "run the configurevm runbook", - "intent": "None", - "entities": [] - }, - { - "text": "switch subscription to powerbi pre-prod", - "intent": "None", - "entities": [] - }, - { - "text": "start run book restore-resourcegroups", - "intent": "None", - "entities": [] - }, - { - "text": "select subscription wenham-qa", - "intent": "None", - "entities": [] - }, - { - "text": "runbook status", - "intent": "None", - "entities": [] - }, - { - "text": "start virtual machine newserver01", - "intent": "StartVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 3, - "endPos": 3 - } - ] - }, - { - "text": "list automation accounts", - "intent": "None", - "entities": [] - }, - { - "text": "show me the status of a job", - "intent": "None", - "entities": [] - }, - { - "text": "what are the virtual machines?", - "intent": "ListVms", - "entities": [] - }, - { - "text": "list vms", - "intent": "ListVms", - "entities": [] - }, - { - "text": "stop pilea-dev vm", - "intent": "StopVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 1, - "endPos": 3 - } - ] - }, - { - "text": "switch to the dev-test subscription", - "intent": "None", - "entities": [] - }, - { - "text": "start server02 virtual machine", - "intent": "StartVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 1, - "endPos": 1 - } - ] - }, - { - "text": "what's the subscription am i using", - "intent": "None", - "entities": [] - }, - { - "text": "use subscription pepe", - "intent": "None", - "entities": [] - }, - { - "text": "change subscription to wacom devtest", - "intent": "None", - "entities": [] - }, - { - "text": "start server01 vm", - "intent": "StartVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 1, - "endPos": 1 - } - ] - }, - { - "text": "stop vm integration-server", - "intent": "StopVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "switch sub to acom pre-prod", - "intent": "None", - "entities": [] - }, - { - "text": "start the xxy virtual machine", - "intent": "StartVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "start pilea-qa vm", - "intent": "StartVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 1, - "endPos": 3 - } - ] - }, - { - "text": "can you please list my virtual machines", - "intent": "ListVms", - "entities": [] - }, - { - "text": "select dev-test subscription", - "intent": "None", - "entities": [] - }, - { - "text": "use the staging subscription", - "intent": "None", - "entities": [] - }, - { - "text": "list virtual machines", - "intent": "ListVms", - "entities": [] - }, - { - "text": "use subscription devdev", - "intent": "None", - "entities": [] - }, - { - "text": "start vm server-01", - "intent": "StartVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "what is the subscription am i using?", - "intent": "None", - "entities": [] - }, - { - "text": "start vm pilea-vm", - "intent": "StartVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "shutdown vm 1234", - "intent": "ShutdownVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "change sub to devtest", - "intent": "None", - "entities": [] - }, - { - "text": "enumerate vms", - "intent": "ListVms", - "entities": [] - }, - { - "text": "stop vm cloudsvr", - "intent": "StopVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "stop vm winservervm", - "intent": "StopVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "stop virtual machine pilea-vm", - "intent": "StopVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 3, - "endPos": 5 - } - ] - }, - { - "text": "use the staging-01 subscription", - "intent": "None", - "entities": [] - }, - { - "text": "launch the 12314 runbook", - "intent": "None", - "entities": [] - }, - { - "text": "logoff", - "intent": "None", - "entities": [] - }, - { - "text": "stop virtual machine 12345", - "intent": "StopVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 3, - "endPos": 3 - } - ] - }, - { - "text": "stop the abancc23 vm", - "intent": "StopVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "choose the falkfajsfk subscription", - "intent": "None", - "entities": [] - }, - { - "text": "choose subscription qa-internal", - "intent": "None", - "entities": [] - }, - { - "text": "run runbook", - "intent": "None", - "entities": [] - }, - { - "text": "create vm", - "intent": "None", - "entities": [] - }, - { - "text": "stop the jauakaka virtual machine", - "intent": "StopVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "list all vms", - "intent": "ListVms", - "entities": [] - }, - { - "text": "use the dev-test subscription", - "intent": "None", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "start virtual machine pilea-vm", - "intent": "StartVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 3, - "endPos": 5 - } - ] - }, - { - "text": "shutdown vm pilea-vm", - "intent": "ShutdownVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "change subscription to x2331atest", - "intent": "None", - "entities": [] - }, - { - "text": "select the first subscription", - "intent": "None", - "entities": [] - }, - { - "text": "start vm cloudsvr", - "intent": "StartVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "change my subscription", - "intent": "None", - "entities": [] - }, - { - "text": "launch runbook testbk01", - "intent": "None", - "entities": [] - }, - { - "text": "what's the subscription am i using?", - "intent": "None", - "entities": [] - }, - { - "text": "start run book", - "intent": "None", - "entities": [] - }, - { - "text": "logout", - "intent": "None", - "entities": [] - }, - { - "text": "stop the pilea-vm virtual machine", - "intent": "StopVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "run the deded azure runbook", - "intent": "None", - "entities": [] - }, - { - "text": "start vm 234afsfs", - "intent": "StartVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "run the oapapap runbook", - "intent": "None", - "entities": [] - }, - { - "text": "help", - "intent": "None", - "entities": [] - }, - { - "text": "stop the cloudsvr vm", - "intent": "StopVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "use subscription q-internal", - "intent": "None", - "entities": [] - }, - { - "text": "stop the server01 vm", - "intent": "StopVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "stop the qweruw vm", - "intent": "StopVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "show all subscriptions", - "intent": "None", - "entities": [] - }, - { - "text": "shutdown virtual machine", - "intent": "ShutdownVm", - "entities": [] - }, - { - "text": "shutdown vm 12345", - "intent": "ShutdownVm", - "entities": [] - }, - { - "text": "use sub qadev1", - "intent": "None", - "entities": [] - }, - { - "text": "start azure runbook mybook", - "intent": "None", - "entities": [] - }, - { - "text": "sign out", - "intent": "None", - "entities": [] - }, - { - "text": "start the abcdef23 vm", - "intent": "StartVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "run runbook test01", - "intent": "None", - "entities": [] - }, - { - "text": "start the cloudsvr vm", - "intent": "StartVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "start the pilea-vm virtual machine", - "intent": "StartVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "which are my subscriptions?", - "intent": "None", - "entities": [] - }, - { - "text": "stop vm osisksks214", - "intent": "StopVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "show subscriptions", - "intent": "None", - "entities": [] - }, - { - "text": "switch subscription to qaprod", - "intent": "None", - "entities": [] - }, - { - "text": "start the pilea vm", - "intent": "StartVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "shutdown vm", - "intent": "ShutdownVm", - "entities": [] - }, - { - "text": "start the yyyy virtual machine", - "intent": "StartVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "log off", - "intent": "None", - "entities": [] - }, - { - "text": "stop virtual machine zaraza", - "intent": "StopVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 3, - "endPos": 3 - } - ] - }, - { - "text": "stop the pilea-vm vm", - "intent": "StopVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "list vm", - "intent": "ListVms", - "entities": [] - }, - { - "text": "run azure runbook jujujuj", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook 0101011", - "intent": "None", - "entities": [] - }, - { - "text": "start the pilea-vm vm", - "intent": "StartVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "show me the subscriptions", - "intent": "None", - "entities": [] - }, - { - "text": "stop the pilea vm", - "intent": "StopVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "list the vms", - "intent": "ListVms", - "entities": [] - }, - { - "text": "start virtual machine xxxx", - "intent": "StartVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 3, - "endPos": 3 - } - ] - }, - { - "text": "stop vm x0324aa", - "intent": "StopVm", - "entities": [] - }, - { - "text": "what's my currrent subscription?", - "intent": "None", - "entities": [] - }, - { - "text": "5", - "intent": "None", - "entities": [] - }, - { - "text": "switch sub to devtest", - "intent": "None", - "entities": [] - }, - { - "text": "start vm \"pilea-vm\"", - "intent": "StartVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 3, - "endPos": 5 - } - ] - }, - { - "text": "stop vm myserver", - "intent": "StopVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "what is the subscription am i using", - "intent": "None", - "entities": [] - }, - { - "text": "stop vm pilea-vm", - "intent": "StopVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 4 - } - ] - }, - { - "text": "start the alalala runbook", - "intent": "None", - "entities": [] - }, - { - "text": "list the virtual machines", - "intent": "ListVms", - "entities": [] - }, - { - "text": "start vm server1", - "intent": "StartVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "start virtual machine kajakakxd", - "intent": "StartVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 3, - "endPos": 3 - } - ] - }, - { - "text": "log out", - "intent": "None", - "entities": [] - }, - { - "text": "show me all virtual machines", - "intent": "ListVms", - "entities": [] - }, - { - "text": "start vm myserver", - "intent": "StartVm", - "entities": [ - { - "entity": "VirtualMachine", - "startPos": 2, - "endPos": 2 - } - ] - }, - { - "text": "help me", - "intent": "None", - "entities": [] - }, - { - "text": "show vms", - "intent": "ListVms", - "entities": [] - }, - { - "text": "list subscriptions", - "intent": "None", - "entities": [] - }, - { - "text": "list my subs", - "intent": "None", - "entities": [] - }, - { - "text": "delete vm", - "intent": "None", - "entities": [] - }, - { - "text": "test", - "intent": "None", - "entities": [] - }, - { - "text": "list my runbooks", - "intent": "None", - "entities": [] - }, - { - "text": "list runbooks", - "intent": "None", - "entities": [] - }, - { - "text": "show runbooks", - "intent": "None", - "entities": [] - }, - { - "text": "show me my runbooks", - "intent": "None", - "entities": [] - }, - { - "text": "show job15 output", - "intent": "None", - "entities": [] - }, - { - "text": "show runbook cleanup-demos-msdn100 description", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook cleanup-demos-msdn100 from devops-automation automation account", - "intent": "None", - "entities": [] - }, - { - "text": "show runbook psrunbook description", - "intent": "None", - "entities": [] - }, - { - "text": "show runbook write-helloworld description", - "intent": "None", - "entities": [] - }, - { - "text": "list runbook remove-resourcegroups description", - "intent": "None", - "entities": [] - }, - { - "text": "list job1 output", - "intent": "None", - "entities": [] - }, - { - "text": "start cleanup-demos-msdn100 runbook", - "intent": "None", - "entities": [] - }, - { - "text": "start runbook remove-resourcegroups", - "intent": "None", - "entities": [] - }, - { - "text": "start remove-resourcegroups runbook", - "intent": "None", - "entities": [] - }, - { - "text": "start all virtual machines", - "intent": "StartAllVms", - "entities": [] - }, - { - "text": "start all vms", - "intent": "StartAllVms", - "entities": [] - }, - { - "text": "start all my virtual machines", - "intent": "StartAllVms", - "entities": [] - }, - { - "text": "start all my vms", - "intent": "StartAllVms", - "entities": [] - }, - { - "text": "stop all virtual machines", - "intent": "StopAllVms", - "entities": [] - }, - { - "text": "shutdown all virtual machines", - "intent": "ShutdownAllVms", - "entities": [] - }, - { - "text": "stop all vms", - "intent": "StopAllVms", - "entities": [] - }, - { - "text": "stop all my virtual machines", - "intent": "StopAllVms", - "entities": [] - }, - { - "text": "stop all my vms", - "intent": "StopAllVms", - "entities": [] - }, - { - "text": "shutdown all my virtual machines", - "intent": "ShutdownAllVms", - "entities": [] - }, - { - "text": "shutdown all my vms", - "intent": "ShutdownAllVms", - "entities": [] - }, - { - "text": "start runbook cleanup-all-my-resource-groups", - "intent": "None", - "entities": [] - }, - { - "text": "start all vms from azurebot-development resource group", - "intent": "StartAllVms", - "entities": [] - }, - { - "text": "show runbook aademo-helloworld description", - "intent": "None", - "entities": [] - }, - { - "text": "stop all vms from azurebot-development resource group", - "intent": "StopAllVms", - "entities": [] - }, - { - "text": "shutdown all vms from azurebot-development resource group", - "intent": "ShutdownAllVms", - "entities": [] - }, - { - "text": "shutdown all vms from test-ez resource group", - "intent": "ShutdownAllVms", - "entities": [] - }, - { - "text": "shutdown all vms from coreos1vm resource group", - "intent": "ShutdownAllVms", - "entities": [] - }, - { - "text": "start all vms from coreos1vm resource group", - "intent": "StartAllVms", - "entities": [] - }, - { - "text": "stop all vms from coreos1vm resource group", - "intent": "StopAllVms", - "entities": [] - }, - { - "text": "stop all vms from test-ez resource group", - "intent": "StopAllVms", - "entities": [] - }, - { - "text": "start all vms from test-ez resource group", - "intent": "StartAllVms", - "entities": [] - }, - { - "text": "shutdown all vms from test-ez-rg resource group", - "intent": "ShutdownAllVms", - "entities": [] - }, - { - "text": "stop all vms from test-ez-rg resource group", - "intent": "StopAllVms", - "entities": [] - }, - { - "text": "start all vms from test-ez-rg resource group", - "intent": "StartAllVms", - "entities": [] - }, - { - "text": "show runbook description", - "intent": "None", - "entities": [] - }, - { - "text": "list my resource groups", - "intent": "None", - "entities": [] - }, - { - "text": "what resource groups do i have?", - "intent": "None", - "entities": [] - }, - { - "text": "list my rgs", - "intent": "None", - "entities": [] - }, - { - "text": "what rgs do i have?", - "intent": "None", - "entities": [] - }, - { - "text": "list rgs", - "intent": "None", - "entities": [] - }, - { - "text": "list resource groups", - "intent": "None", - "entities": [] - }, - { - "text": "list subsctiptions", - "intent": "None", - "entities": [] - }, - { - "text": "start all vms from azrbot-development resource group", - "intent": "StartAllVms", - "entities": [] - }, - { - "text": "select azurebotprod_event subscription", - "intent": "None", - "entities": [] - }, - { - "text": "select subscription azurebotprod_events", - "intent": "None", - "entities": [] - }, - { - "text": "start all vms from resource group azrbot-development", - "intent": "StartAllVms", - "entities": [] - }, - { - "text": "select azurebotprod_events subscription", - "intent": "None", - "entities": [] - }, - { - "text": "switch azurebotprod_events subscription", - "intent": "None", - "entities": [] - }, - { - "text": "select azurebotvsts_events subscription", - "intent": "None", - "entities": [] - } - ] +{ + "luis_schema_version": "2.1.0", + "versionId": "0.1", + "name": "AzureBot-VMs", + "desc": "A bot that can interact with Azure", + "culture": "en-us", + "intents": [ + { + "name": "ListVms" + }, + { + "name": "None" + }, + { + "name": "ShutdownAllVms" + }, + { + "name": "ShutdownVm" + }, + { + "name": "StartAllVms" + }, + { + "name": "StartVm" + }, + { + "name": "StopAllVms" + }, + { + "name": "StopVm" + } + ], + "entities": [ + { + "name": "ResourceGroup" + }, + { + "name": "VirtualMachine" + } + ], + "composites": [], + "closedLists": [], + "bing_entities": [ + "number", + "ordinal" + ], + "actions": [ + { + "actionName": "ShutdownVm", + "intentName": "ShutdownVm", + "channel": null, + "actionParameters": [ + { + "parameterName": "vmName", + "entityName": "VirtualMachine", + "required": false, + "question": null, + "phraseListFeatureName": null + } + ] + }, + { + "actionName": "StartVm", + "intentName": "StartVm", + "channel": null, + "actionParameters": [ + { + "parameterName": "vmName", + "entityName": "VirtualMachine", + "required": false, + "question": null, + "phraseListFeatureName": null + } + ] + }, + { + "actionName": "StopVm", + "intentName": "StopVm", + "channel": null, + "actionParameters": [ + { + "parameterName": "vmName", + "entityName": "VirtualMachine", + "required": false, + "question": null, + "phraseListFeatureName": null + } + ] + } + ], + "model_features": [ + { + "name": "ShowList", + "mode": true, + "words": "show,list", + "activated": true + }, + { + "name": "VmSynonyms", + "mode": true, + "words": "vm,virtual machine,vms,virtual machines", + "activated": true + } + ], + "regex_features": [], + "utterances": [ + { + "text": "hello", + "intent": "None", + "entities": [] + }, + { + "text": "hi", + "intent": "None", + "entities": [] + }, + { + "text": "test", + "intent": "None", + "entities": [] + }, + { + "text": "help", + "intent": "None", + "entities": [] + }, + { + "text": "help me", + "intent": "None", + "entities": [] + }, + { + "text": "log out", + "intent": "None", + "entities": [] + }, + { + "text": "5", + "intent": "None", + "entities": [] + }, + { + "text": "log off", + "intent": "None", + "entities": [] + }, + { + "text": "sign out", + "intent": "None", + "entities": [] + }, + { + "text": "logout", + "intent": "None", + "entities": [] + }, + { + "text": "create vm", + "intent": "None", + "entities": [] + }, + { + "text": "logoff", + "intent": "None", + "entities": [] + }, + { + "text": "list virtual machines", + "intent": "ListVms", + "entities": [] + }, + { + "text": "list vms", + "intent": "ListVms", + "entities": [] + }, + { + "text": "list my vms", + "intent": "ListVms", + "entities": [] + }, + { + "text": "list my virtual machines", + "intent": "ListVms", + "entities": [] + }, + { + "text": "start vm", + "intent": "StartVm", + "entities": [] + }, + { + "text": "stop vm", + "intent": "StopVm", + "entities": [] + }, + { + "text": "start runbook", + "intent": "None", + "entities": [] + }, + { + "text": "remove vm", + "intent": "None", + "entities": [] + }, + { + "text": "delete vm", + "intent": "None", + "entities": [] + }, + { + "text": "list my subs", + "intent": "None", + "entities": [] + }, + { + "text": "list subscriptions", + "intent": "None", + "entities": [] + }, + { + "text": "show vms", + "intent": "ListVms", + "entities": [] + }, + { + "text": "list my resource groups", + "intent": "None", + "entities": [] + }, + { + "text": "start vm myserver", + "intent": "StartVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 9, + "endPos": 16 + } + ] + }, + { + "text": "start vm server1", + "intent": "StartVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 9, + "endPos": 15 + } + ] + }, + { + "text": "start virtual machine xxxx", + "intent": "StartVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 22, + "endPos": 25 + } + ] + }, + { + "text": "start the yyyy virtual machine", + "intent": "StartVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 10, + "endPos": 13 + } + ] + }, + { + "text": "start the abcdef23 vm", + "intent": "StartVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 10, + "endPos": 17 + } + ] + }, + { + "text": "start vm 234afsfs", + "intent": "StartVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 9, + "endPos": 16 + } + ] + }, + { + "text": "start virtual machine kajakakxd", + "intent": "StartVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 22, + "endPos": 30 + } + ] + }, + { + "text": "stop vm x0324aa", + "intent": "StopVm", + "entities": [] + }, + { + "text": "stop virtual machine zaraza", + "intent": "StopVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 21, + "endPos": 26 + } + ] + }, + { + "text": "stop vm osisksks214", + "intent": "StopVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 8, + "endPos": 18 + } + ] + }, + { + "text": "stop the qweruw vm", + "intent": "StopVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 9, + "endPos": 14 + } + ] + }, + { + "text": "stop the jauakaka virtual machine", + "intent": "StopVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 9, + "endPos": 16 + } + ] + }, + { + "text": "stop virtual machine 12345", + "intent": "StopVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 21, + "endPos": 25 + } + ] + }, + { + "text": "start the xxy virtual machine", + "intent": "StartVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 10, + "endPos": 12 + } + ] + }, + { + "text": "start virtual machine newserver01", + "intent": "StartVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 22, + "endPos": 32 + } + ] + }, + { + "text": "use the devtest subscription", + "intent": "None", + "entities": [] + }, + { + "text": "use subscription production", + "intent": "None", + "entities": [] + }, + { + "text": "select subscription qa", + "intent": "None", + "entities": [] + }, + { + "text": "select the develop01 subscription", + "intent": "None", + "entities": [] + }, + { + "text": "select subscription onetwo", + "intent": "None", + "entities": [] + }, + { + "text": "select subscription 12345", + "intent": "None", + "entities": [] + }, + { + "text": "choose subscription qa-internal", + "intent": "None", + "entities": [] + }, + { + "text": "choose the falkfajsfk subscription", + "intent": "None", + "entities": [] + }, + { + "text": "show me all virtual machines", + "intent": "ListVms", + "entities": [] + }, + { + "text": "list the virtual machines", + "intent": "ListVms", + "entities": [] + }, + { + "text": "list the vms", + "intent": "ListVms", + "entities": [] + }, + { + "text": "list vm", + "intent": "ListVms", + "entities": [] + }, + { + "text": "run runbook test01", + "intent": "None", + "entities": [] + }, + { + "text": "run the oapapap runbook", + "intent": "None", + "entities": [] + }, + { + "text": "launch runbook testbk01", + "intent": "None", + "entities": [] + }, + { + "text": "launch the 12314 runbook", + "intent": "None", + "entities": [] + }, + { + "text": "start the alalala runbook", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook 0101011", + "intent": "None", + "entities": [] + }, + { + "text": "run azure runbook jujujuj", + "intent": "None", + "entities": [] + }, + { + "text": "start azure runbook mybook", + "intent": "None", + "entities": [] + }, + { + "text": "run the deded azure runbook", + "intent": "None", + "entities": [] + }, + { + "text": "use the dev-test subscription", + "intent": "None", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 8, + "endPos": 15 + } + ] + }, + { + "text": "enumerate vms", + "intent": "ListVms", + "entities": [] + }, + { + "text": "use subscription devdev", + "intent": "None", + "entities": [] + }, + { + "text": "what are the virtual machines?", + "intent": "ListVms", + "entities": [] + }, + { + "text": "start vm server01", + "intent": "StartVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 9, + "endPos": 16 + } + ] + }, + { + "text": "use the xxx subscription", + "intent": "None", + "entities": [] + }, + { + "text": "use subscription dev-test", + "intent": "None", + "entities": [] + }, + { + "text": "use subscription pepep", + "intent": "None", + "entities": [] + }, + { + "text": "stop abancc23 vm", + "intent": "StopVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 5, + "endPos": 12 + } + ] + }, + { + "text": "stop vm abancc23", + "intent": "StopVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 8, + "endPos": 15 + } + ] + }, + { + "text": "stop the server01 vm", + "intent": "StopVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 9, + "endPos": 16 + } + ] + }, + { + "text": "list all vms", + "intent": "ListVms", + "entities": [] + }, + { + "text": "stop the abancc23 vm", + "intent": "StopVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 9, + "endPos": 16 + } + ] + }, + { + "text": "stop vm myserver", + "intent": "StopVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 8, + "endPos": 15 + } + ] + }, + { + "text": "show me the subscriptions", + "intent": "None", + "entities": [] + }, + { + "text": "show subscriptions", + "intent": "None", + "entities": [] + }, + { + "text": "which are my subscriptions?", + "intent": "None", + "entities": [] + }, + { + "text": "show all subscriptions", + "intent": "None", + "entities": [] + }, + { + "text": "select the first subscription", + "intent": "None", + "entities": [] + }, + { + "text": "use the staging-01 subscription", + "intent": "None", + "entities": [] + }, + { + "text": "use the staging subscription", + "intent": "None", + "entities": [] + }, + { + "text": "use subscription pepe", + "intent": "None", + "entities": [] + }, + { + "text": "run the configurevm runbook", + "intent": "None", + "entities": [] + }, + { + "text": "start the x runbook", + "intent": "None", + "entities": [] + }, + { + "text": "select the third subscription", + "intent": "None", + "entities": [] + }, + { + "text": "use the second one", + "intent": "None", + "entities": [] + }, + { + "text": "start the third one", + "intent": "StartVm", + "entities": [] + }, + { + "text": "signout", + "intent": "None", + "entities": [] + }, + { + "text": "remove vm xxxx", + "intent": "None", + "entities": [] + }, + { + "text": "delete vm xxxx", + "intent": "None", + "entities": [] + }, + { + "text": "remove virtual machine xxxx", + "intent": "None", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 23, + "endPos": 26 + } + ] + }, + { + "text": "remove vm xyasda", + "intent": "None", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 10, + "endPos": 15 + } + ] + }, + { + "text": "create vm xyzs", + "intent": "None", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 10, + "endPos": 13 + } + ] + }, + { + "text": "create virtual machine xysz", + "intent": "None", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 23, + "endPos": 26 + } + ] + }, + { + "text": "delete virtual machine", + "intent": "None", + "entities": [] + }, + { + "text": "start run book", + "intent": "None", + "entities": [] + }, + { + "text": "run runbook", + "intent": "None", + "entities": [] + }, + { + "text": "start vm pilea-vm", + "intent": "StartVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 9, + "endPos": 16 + } + ] + }, + { + "text": "stop vm pilea-vm", + "intent": "StopVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 8, + "endPos": 15 + } + ] + }, + { + "text": "start the pilea-vm vm", + "intent": "StartVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 10, + "endPos": 17 + } + ] + }, + { + "text": "stop the pilea-vm vm", + "intent": "StopVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 9, + "endPos": 16 + } + ] + }, + { + "text": "start the pilea-vm virtual machine", + "intent": "StartVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 10, + "endPos": 17 + } + ] + }, + { + "text": "stop the pilea-vm virtual machine", + "intent": "StopVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 9, + "endPos": 16 + } + ] + }, + { + "text": "start virtual machine pilea-vm", + "intent": "StartVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 22, + "endPos": 29 + } + ] + }, + { + "text": "stop virtual machine pilea-vm", + "intent": "StopVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 21, + "endPos": 28 + } + ] + }, + { + "text": "start vm server-01", + "intent": "StartVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 9, + "endPos": 17 + } + ] + }, + { + "text": "stop vm integration-server", + "intent": "StopVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 8, + "endPos": 25 + } + ] + }, + { + "text": "switch to the dev-test subscription", + "intent": "None", + "entities": [] + }, + { + "text": "change to the acom-test subscription", + "intent": "None", + "entities": [] + }, + { + "text": "select the acom-test subscription", + "intent": "None", + "entities": [] + }, + { + "text": "select subscription wenham-qa", + "intent": "None", + "entities": [] + }, + { + "text": "use subscription manifold-test", + "intent": "None", + "entities": [] + }, + { + "text": "change to subscription media service private prod", + "intent": "None", + "entities": [] + }, + { + "text": "change to subscription ximbus deployment test", + "intent": "None", + "entities": [] + }, + { + "text": "use the ximbustestlab subcription", + "intent": "None", + "entities": [] + }, + { + "text": "use the ximbustestcloud subscription", + "intent": "None", + "entities": [] + }, + { + "text": "select the azure training kit subscription", + "intent": "None", + "entities": [] + }, + { + "text": "start vm encta02", + "intent": "StartVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 9, + "endPos": 15 + } + ] + }, + { + "text": "use subscription", + "intent": "None", + "entities": [] + }, + { + "text": "user subscription 5", + "intent": "None", + "entities": [] + }, + { + "text": "change my subscription", + "intent": "None", + "entities": [] + }, + { + "text": "stop vm winservervm", + "intent": "StopVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 8, + "endPos": 18 + } + ] + }, + { + "text": "can you please list my virtual machines", + "intent": "ListVms", + "entities": [] + }, + { + "text": "start vm \"pilea-vm\"", + "intent": "StartVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 10, + "endPos": 17 + } + ] + }, + { + "text": "stop the pilea vm", + "intent": "StopVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 9, + "endPos": 13 + } + ] + }, + { + "text": "start the pilea vm", + "intent": "StartVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 10, + "endPos": 14 + } + ] + }, + { + "text": "start the cloudsvr vm", + "intent": "StartVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 10, + "endPos": 17 + } + ] + }, + { + "text": "stop the cloudsvr vm", + "intent": "StopVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 9, + "endPos": 16 + } + ] + }, + { + "text": "start vm cloudsvr", + "intent": "StartVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 9, + "endPos": 16 + } + ] + }, + { + "text": "stop vm cloudsvr", + "intent": "StopVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 8, + "endPos": 15 + } + ] + }, + { + "text": "select dev-test subscription", + "intent": "None", + "entities": [] + }, + { + "text": "show me the status of a job", + "intent": "None", + "entities": [] + }, + { + "text": "job status", + "intent": "None", + "entities": [] + }, + { + "text": "status job", + "intent": "None", + "entities": [] + }, + { + "text": "my jobs", + "intent": "None", + "entities": [] + }, + { + "text": "runbook status", + "intent": "None", + "entities": [] + }, + { + "text": "show me the job status", + "intent": "None", + "entities": [] + }, + { + "text": "give me the status of a job", + "intent": "None", + "entities": [] + }, + { + "text": "what's my current subscription?", + "intent": "None", + "entities": [] + }, + { + "text": "what is my current subscription?", + "intent": "None", + "entities": [] + }, + { + "text": "current subscription", + "intent": "None", + "entities": [] + }, + { + "text": "what's subscription am i using?", + "intent": "None", + "entities": [] + }, + { + "text": "what's my current subscription", + "intent": "None", + "entities": [] + }, + { + "text": "what is my current subscription", + "intent": "None", + "entities": [] + }, + { + "text": "what subscription am i using", + "intent": "None", + "entities": [] + }, + { + "text": "what's the subscription am i using?", + "intent": "None", + "entities": [] + }, + { + "text": "what is the subscription am i using?", + "intent": "None", + "entities": [] + }, + { + "text": "what's the subscription am i using", + "intent": "None", + "entities": [] + }, + { + "text": "what is the subscription am i using", + "intent": "None", + "entities": [] + }, + { + "text": "what's my currrent subscription?", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown vm", + "intent": "ShutdownVm", + "entities": [] + }, + { + "text": "shutdown vm 12345", + "intent": "ShutdownVm", + "entities": [] + }, + { + "text": "shutdown virtual machine", + "intent": "ShutdownVm", + "entities": [] + }, + { + "text": "shutdown vm pilea-vm", + "intent": "ShutdownVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 12, + "endPos": 19 + } + ] + }, + { + "text": "shutdown vm 1234", + "intent": "ShutdownVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 12, + "endPos": 15 + } + ] + }, + { + "text": "start server01 vm", + "intent": "StartVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 6, + "endPos": 13 + } + ] + }, + { + "text": "start pilea-qa vm", + "intent": "StartVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 6, + "endPos": 13 + } + ] + }, + { + "text": "start server02 virtual machine", + "intent": "StartVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 6, + "endPos": 13 + } + ] + }, + { + "text": "start dev-vm1 virtual machine", + "intent": "StartVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 6, + "endPos": 12 + } + ] + }, + { + "text": "stop server01 vm", + "intent": "StopVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 5, + "endPos": 12 + } + ] + }, + { + "text": "stop pilea-dev vm", + "intent": "StopVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 5, + "endPos": 13 + } + ] + }, + { + "text": "stop qa-dev-01 virtual machine", + "intent": "StopVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 5, + "endPos": 13 + } + ] + }, + { + "text": "stop server03 virtual machine", + "intent": "StopVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 5, + "endPos": 12 + } + ] + }, + { + "text": "shutdown server05 vm", + "intent": "ShutdownVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 9, + "endPos": 16 + } + ] + }, + { + "text": "shutdown pilea-dev vm", + "intent": "ShutdownVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 9, + "endPos": 17 + } + ] + }, + { + "text": "shutdown dev012qa1 virtual machine", + "intent": "ShutdownVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 9, + "endPos": 17 + } + ] + }, + { + "text": "shutdown x34-prod virtual machine", + "intent": "ShutdownVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 9, + "endPos": 16 + } + ] + }, + { + "text": "list subs", + "intent": "None", + "entities": [] + }, + { + "text": "switch subscription to x312345", + "intent": "None", + "entities": [] + }, + { + "text": "switch sub to dev-internal2", + "intent": "None", + "entities": [] + }, + { + "text": "switch sub to devtest", + "intent": "None", + "entities": [] + }, + { + "text": "switch subscription to qaprod", + "intent": "None", + "entities": [] + }, + { + "text": "use sub qadev1", + "intent": "None", + "entities": [] + }, + { + "text": "use subscription q-internal", + "intent": "None", + "entities": [] + }, + { + "text": "change subscription to x2331atest", + "intent": "None", + "entities": [] + }, + { + "text": "change sub to devtest", + "intent": "None", + "entities": [] + }, + { + "text": "switch sub to acom pre-prod", + "intent": "None", + "entities": [] + }, + { + "text": "change subscription to wacom devtest", + "intent": "None", + "entities": [] + }, + { + "text": "switch subscription to powerbi pre-prod", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook hello-world", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook cleanup-demos-msdn100", + "intent": "None", + "entities": [] + }, + { + "text": "start run book restore-resourcegroups", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook restore-resourcegroups", + "intent": "None", + "entities": [] + }, + { + "text": "start run book restore-azuredb", + "intent": "None", + "entities": [] + }, + { + "text": "start run book cleanup-demos-msdn100", + "intent": "None", + "entities": [] + }, + { + "text": "stop all vms", + "intent": "StopAllVms", + "entities": [] + }, + { + "text": "list automation accounts", + "intent": "None", + "entities": [] + }, + { + "text": "list my automation accounts", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook prod-dev from qa-internal-2 automation account", + "intent": "None", + "entities": [] + }, + { + "text": "run runbook hello-world from autdevqa automation account", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook aadscdemo-get-wunderlistuser from stefstrauto automation account", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook psrunbook from testez automation account", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook psrunbook from non-existent-account automation account", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook psrunbook from non-existentaccount automation account", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook psrunbook from accountthatdoesntexists automation account", + "intent": "None", + "entities": [] + }, + { + "text": "show job1 output", + "intent": "None", + "entities": [] + }, + { + "text": "list my runbooks", + "intent": "None", + "entities": [] + }, + { + "text": "list runbooks", + "intent": "None", + "entities": [] + }, + { + "text": "show runbooks", + "intent": "None", + "entities": [] + }, + { + "text": "show me my runbooks", + "intent": "None", + "entities": [] + }, + { + "text": "show job15 output", + "intent": "None", + "entities": [] + }, + { + "text": "show runbook cleanup-demos-msdn100 description", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook cleanup-demos-msdn100 from devops-automation automation account", + "intent": "None", + "entities": [] + }, + { + "text": "show runbook psrunbook description", + "intent": "None", + "entities": [] + }, + { + "text": "start all vms", + "intent": "StartAllVms", + "entities": [] + }, + { + "text": "show runbook write-helloworld description", + "intent": "None", + "entities": [] + }, + { + "text": "list runbook remove-resourcegroups description", + "intent": "None", + "entities": [] + }, + { + "text": "list job1 output", + "intent": "None", + "entities": [] + }, + { + "text": "start cleanup-demos-msdn100 runbook", + "intent": "None", + "entities": [] + }, + { + "text": "start runbook remove-resourcegroups", + "intent": "None", + "entities": [] + }, + { + "text": "start remove-resourcegroups runbook", + "intent": "None", + "entities": [] + }, + { + "text": "start all virtual machines", + "intent": "StartAllVms", + "entities": [] + }, + { + "text": "start all my virtual machines", + "intent": "StartAllVms", + "entities": [] + }, + { + "text": "start all my vms", + "intent": "StartAllVms", + "entities": [] + }, + { + "text": "stop all virtual machines", + "intent": "StopAllVms", + "entities": [] + }, + { + "text": "shutdown all virtual machines", + "intent": "ShutdownAllVms", + "entities": [] + }, + { + "text": "stop all my virtual machines", + "intent": "StopAllVms", + "entities": [] + }, + { + "text": "stop all my vms", + "intent": "StopAllVms", + "entities": [] + }, + { + "text": "shutdown all my virtual machines", + "intent": "ShutdownAllVms", + "entities": [] + }, + { + "text": "shutdown all my vms", + "intent": "ShutdownAllVms", + "entities": [] + }, + { + "text": "start runbook cleanup-all-my-resource-groups", + "intent": "None", + "entities": [] + }, + { + "text": "start all vms from azurebot-development resource group", + "intent": "StartAllVms", + "entities": [] + }, + { + "text": "show runbook aademo-helloworld description", + "intent": "None", + "entities": [] + }, + { + "text": "stop all vms from azurebot-development resource group", + "intent": "StopAllVms", + "entities": [] + }, + { + "text": "shutdown all vms from azurebot-development resource group", + "intent": "ShutdownAllVms", + "entities": [ + { + "entity": "ResourceGroup", + "startPos": 22, + "endPos": 41 + } + ] + }, + { + "text": "shutdown all vms from test-ez resource group", + "intent": "ShutdownAllVms", + "entities": [ + { + "entity": "ResourceGroup", + "startPos": 22, + "endPos": 28 + } + ] + }, + { + "text": "shutdown all vms from coreos1vm resource group", + "intent": "ShutdownAllVms", + "entities": [ + { + "entity": "ResourceGroup", + "startPos": 22, + "endPos": 30 + } + ] + }, + { + "text": "start all vms from coreos1vm resource group", + "intent": "StartAllVms", + "entities": [] + }, + { + "text": "stop all vms from coreos1vm resource group", + "intent": "StopAllVms", + "entities": [] + }, + { + "text": "stop all vms from test-ez resource group", + "intent": "StopAllVms", + "entities": [] + }, + { + "text": "start all vms from test-ez resource group", + "intent": "StartAllVms", + "entities": [] + }, + { + "text": "shutdown all vms from test-ez-rg resource group", + "intent": "ShutdownAllVms", + "entities": [ + { + "entity": "ResourceGroup", + "startPos": 22, + "endPos": 31 + } + ] + }, + { + "text": "stop all vms from test-ez-rg resource group", + "intent": "StopAllVms", + "entities": [] + }, + { + "text": "start all vms from test-ez-rg resource group", + "intent": "StartAllVms", + "entities": [] + }, + { + "text": "show runbook description", + "intent": "None", + "entities": [] + }, + { + "text": "what resource groups do i have?", + "intent": "None", + "entities": [] + }, + { + "text": "list my rgs", + "intent": "None", + "entities": [] + }, + { + "text": "what rgs do i have?", + "intent": "None", + "entities": [] + }, + { + "text": "list rgs", + "intent": "None", + "entities": [] + }, + { + "text": "list resource groups", + "intent": "None", + "entities": [] + }, + { + "text": "list subsctiptions", + "intent": "None", + "entities": [] + }, + { + "text": "start all vms from azrbot-development resource group", + "intent": "StartAllVms", + "entities": [] + }, + { + "text": "select azurebotprod_event subscription", + "intent": "None", + "entities": [] + }, + { + "text": "select subscription azurebotprod_events", + "intent": "None", + "entities": [] + }, + { + "text": "start all vms from resource group azrbot-development", + "intent": "StartAllVms", + "entities": [] + }, + { + "text": "select azurebotprod_events subscription", + "intent": "None", + "entities": [] + }, + { + "text": "switch azurebotprod_events subscription", + "intent": "None", + "entities": [] + }, + { + "text": "select azurebotvsts_events subscription", + "intent": "None", + "entities": [] + }, + { + "text": "please start all of my virutual machines", + "intent": "StartAllVms", + "entities": [] + }, + { + "text": "yo tell me all of my vms now!", + "intent": "ListVms", + "entities": [] + }, + { + "text": "start all vms from notfound resource group", + "intent": "StartAllVms", + "entities": [ + { + "entity": "ResourceGroup", + "startPos": 19, + "endPos": 26 + } + ] + }, + { + "text": "stop all vms from notfound resource group", + "intent": "StopAllVms", + "entities": [ + { + "entity": "ResourceGroup", + "startPos": 18, + "endPos": 25 + } + ] + }, + { + "text": "shutdown all vms from notfound resource group", + "intent": "ShutdownAllVms", + "entities": [ + { + "entity": "ResourceGroup", + "startPos": 22, + "endPos": 29 + } + ] + }, + { + "text": "shutdown all vms from azrbot-development resource group", + "intent": "ShutdownAllVms", + "entities": [ + { + "entity": "ResourceGroup", + "startPos": 22, + "endPos": 39 + } + ] + }, + { + "text": "stop all vms from azrbot-development resource group", + "intent": "StopAllVms", + "entities": [ + { + "entity": "ResourceGroup", + "startPos": 18, + "endPos": 35 + } + ] + }, + { + "text": "start vm notfound-start", + "intent": "StartVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 9, + "endPos": 22 + } + ] + }, + { + "text": "shutdown vm notfound-shutdown", + "intent": "ShutdownVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 12, + "endPos": 28 + } + ] + }, + { + "text": "stop vm notfound-stop", + "intent": "StopVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 8, + "endPos": 20 + } + ] + }, + { + "text": "shutdown all vms", + "intent": "ShutdownAllVms", + "entities": [] + }, + { + "text": "shutdown all vms from test123 resource group", + "intent": "ShutdownAllVms", + "entities": [ + { + "entity": "ResourceGroup", + "startPos": 22, + "endPos": 28 + } + ] + }, + { + "text": "shutdown vm linuxvm", + "intent": "ShutdownVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 12, + "endPos": 18 + } + ] + }, + { + "text": "start vm linuxvm", + "intent": "StartVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 9, + "endPos": 15 + } + ] + }, + { + "text": "stop vm linuxvm", + "intent": "StopVm", + "entities": [ + { + "entity": "VirtualMachine", + "startPos": 8, + "endPos": 14 + } + ] + }, + { + "text": "i love azurebot", + "intent": "None", + "entities": [] + }, + { + "text": "shutdown all vms from test-123 resource group", + "intent": "ShutdownAllVms", + "entities": [ + { + "entity": "ResourceGroup", + "startPos": 22, + "endPos": 29 + } + ] + }, + { + "text": "shutdown all vms from 432-myrg resource group", + "intent": "ShutdownAllVms", + "entities": [ + { + "entity": "ResourceGroup", + "startPos": 22, + "endPos": 29 + } + ] + }, + { + "text": "shutdown all vms from azure-test resource group", + "intent": "ShutdownAllVms", + "entities": [ + { + "entity": "ResourceGroup", + "startPos": 22, + "endPos": 31 + } + ] + }, + { + "text": "shutdown all vms from test-azure resource group", + "intent": "ShutdownAllVms", + "entities": [ + { + "entity": "ResourceGroup", + "startPos": 22, + "endPos": 31 + } + ] + }, + { + "text": "shutdown all vms from myrg-west resource group", + "intent": "ShutdownAllVms", + "entities": [ + { + "entity": "ResourceGroup", + "startPos": 22, + "endPos": 30 + } + ] + } + ] } \ No newline at end of file From 042d04c8e2a3490878dea537fbe2985f7c7ba13d Mon Sep 17 00:00:00 2001 From: Thiago Almeida Date: Mon, 26 Jun 2017 15:24:57 -0700 Subject: [PATCH 20/22] Moving LUIS attributes for all models to be web.config / app settings env vars configurable --- .../Dialogs/AzureBotLuisDialog.cs | 4 ++++ .../Dialogs/ResourceGroupDialog.cs | 5 ++++- .../Dialogs/AutomationDialog.cs | 4 +++- AzureBot.Services.VMs/Dialogs/VMDialog.cs | 5 ++++- AzureBot/Controllers/MessagesController.cs | 5 ++++- AzureBot/Dialogs/DialogFactory.cs | 12 +++++++++--- AzureBot/Dialogs/RootDialog.cs | 6 +++++- AzureBot/Web.config | 6 ++++++ 8 files changed, 39 insertions(+), 8 deletions(-) diff --git a/AzureBot.Services.Common/Dialogs/AzureBotLuisDialog.cs b/AzureBot.Services.Common/Dialogs/AzureBotLuisDialog.cs index e83e85a..447a14a 100644 --- a/AzureBot.Services.Common/Dialogs/AzureBotLuisDialog.cs +++ b/AzureBot.Services.Common/Dialogs/AzureBotLuisDialog.cs @@ -10,6 +10,10 @@ namespace AzureBot [Serializable] public class AzureBotLuisDialog : LuisDialog { + public AzureBotLuisDialog(params ILuisService[] services) : base(services) + { + } + public async Task CanHandle(string query, CancellationToken cancellationToken) { var tasks = services.Select(async(s) => await s.QueryAsync(query, cancellationToken)).ToArray(); diff --git a/AzureBot.Services.ResourceGroups/Dialogs/ResourceGroupDialog.cs b/AzureBot.Services.ResourceGroups/Dialogs/ResourceGroupDialog.cs index 1d70704..563cd19 100644 --- a/AzureBot.Services.ResourceGroups/Dialogs/ResourceGroupDialog.cs +++ b/AzureBot.Services.ResourceGroups/Dialogs/ResourceGroupDialog.cs @@ -12,11 +12,14 @@ namespace AzureBot.Dialogs { [Serializable] - [LuisModel("77ae3bf7-695c-4cea-af77-31b1ba9d5940", "110c81d75bdb4f918a991696cd09f66b")] public class ResourceGroupDialog : AzureBotLuisDialog { private static Lazy resourceId = new Lazy(() => ConfigurationManager.AppSettings["ActiveDirectory.ResourceId"]); + public ResourceGroupDialog(params ILuisService[] services) : base(services) + { + } + [LuisIntent("CreateTemplateDeployment")] public async Task CreateResourceAsync(IDialogContext context)//, LuisResult result) { diff --git a/AzureBot.Services.Runbooks/Dialogs/AutomationDialog.cs b/AzureBot.Services.Runbooks/Dialogs/AutomationDialog.cs index 49fae03..ea3f3b1 100644 --- a/AzureBot.Services.Runbooks/Dialogs/AutomationDialog.cs +++ b/AzureBot.Services.Runbooks/Dialogs/AutomationDialog.cs @@ -17,10 +17,12 @@ namespace AzureBot.Dialogs { - [LuisModel("6ca45971-e419-4e43-8ba4-71fb486d3ffc", "110c81d75bdb4f918a991696cd09f66b")] [Serializable] public class AutomationDialog : AzureBotLuisDialog { + public AutomationDialog(params ILuisService[] services) : base(services) + { + } [LuisIntent("None")] public async Task None(IDialogContext context, LuisResult result) diff --git a/AzureBot.Services.VMs/Dialogs/VMDialog.cs b/AzureBot.Services.VMs/Dialogs/VMDialog.cs index c19199f..def1e72 100644 --- a/AzureBot.Services.VMs/Dialogs/VMDialog.cs +++ b/AzureBot.Services.VMs/Dialogs/VMDialog.cs @@ -18,12 +18,15 @@ namespace AzureBot.Dialogs { - [LuisModel("836166b9-d8c1-4185-9515-0ebfbf3226dc", "110c81d75bdb4f918a991696cd09f66b")] [Serializable] public class VMDialog : AzureBotLuisDialog { private static Lazy resourceId = new Lazy(() => ConfigurationManager.AppSettings["ActiveDirectory.ResourceId"]); + public VMDialog(params ILuisService[] services) : base(services) + { + } + [LuisIntent("ListVms")] public async Task ListVmsAsync(IDialogContext context, LuisResult result) { diff --git a/AzureBot/Controllers/MessagesController.cs b/AzureBot/Controllers/MessagesController.cs index 4ac7034..cb63b06 100644 --- a/AzureBot/Controllers/MessagesController.cs +++ b/AzureBot/Controllers/MessagesController.cs @@ -2,7 +2,9 @@ { using Dialogs; using Microsoft.Bot.Builder.Dialogs; + using Microsoft.Bot.Builder.Luis; using Microsoft.Bot.Connector; + using System.Configuration; using System.Diagnostics; using System.Linq; using System.Net.Http; @@ -34,7 +36,8 @@ await stateClient.BotState.DeleteStateForUserAsync(activity.ChannelId, activity.From.Id, CancellationToken.None); } - await Conversation.SendAsync(activity, () => new RootDialog()); + await Conversation.SendAsync(activity, () => new RootDialog(new LuisService(new LuisModelAttribute(ConfigurationManager.AppSettings["RootDialog.AppId"], + ConfigurationManager.AppSettings["LuisAPIKey"])))); break; default: Trace.TraceError($"Azure Bot ignored an activity. Activity type received: {activity.GetActivityType()}"); diff --git a/AzureBot/Dialogs/DialogFactory.cs b/AzureBot/Dialogs/DialogFactory.cs index 13db935..0feb042 100644 --- a/AzureBot/Dialogs/DialogFactory.cs +++ b/AzureBot/Dialogs/DialogFactory.cs @@ -5,6 +5,8 @@ using Microsoft.Bot.Builder.Dialogs; using System.Threading.Tasks; using System.Threading; +using Microsoft.Bot.Builder.Luis; +using System.Configuration; namespace AzureBot.Dialogs { @@ -40,9 +42,13 @@ private void EnsureResourceDialogs() { ResourceDialogs.Clear(); } - ResourceDialogs.Add((AzureBotLuisDialog)Activator.CreateInstance(typeof(AutomationDialog))); - ResourceDialogs.Add((AzureBotLuisDialog)Activator.CreateInstance(typeof(ResourceGroupDialog))); - ResourceDialogs.Add((AzureBotLuisDialog)Activator.CreateInstance(typeof(VMDialog))); + + ResourceDialogs.Add(new AutomationDialog(new LuisService(new LuisModelAttribute(ConfigurationManager.AppSettings["AutomationDialog.AppId"], + ConfigurationManager.AppSettings["LuisAPIKey"])))); + ResourceDialogs.Add(new ResourceGroupDialog(new LuisService(new LuisModelAttribute(ConfigurationManager.AppSettings["ResourceGroupDialog.AppId"], + ConfigurationManager.AppSettings["LuisAPIKey"])))); + ResourceDialogs.Add(new VMDialog(new LuisService(new LuisModelAttribute(ConfigurationManager.AppSettings["VMDialog.AppId"], + ConfigurationManager.AppSettings["LuisAPIKey"])))); ; } } } diff --git a/AzureBot/Dialogs/RootDialog.cs b/AzureBot/Dialogs/RootDialog.cs index 5c48002..5f42c02 100644 --- a/AzureBot/Dialogs/RootDialog.cs +++ b/AzureBot/Dialogs/RootDialog.cs @@ -14,13 +14,17 @@ using System.Threading; using System.Threading.Tasks; - [LuisModel("d2129bee-5d15-4c78-be3b-2005e3c08cd4", "110c81d75bdb4f918a991696cd09f66b")] [Serializable] public class RootDialog : AzureBotLuisDialog { private static Lazy resourceId = new Lazy(() => ConfigurationManager.AppSettings["ActiveDirectory.ResourceId"]); private bool serviceUrlSet = false; private string userToBot; + + public RootDialog(params ILuisService[] services) : base(services) + { + } + [LuisIntent("")] [LuisIntent("None")] public async Task None(IDialogContext context, LuisResult result) diff --git a/AzureBot/Web.config b/AzureBot/Web.config index dcef9fb..a83b1d2 100644 --- a/AzureBot/Web.config +++ b/AzureBot/Web.config @@ -21,6 +21,12 @@ + + + + + +