aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Azure/Tango.AzureUtils.UI
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2020-02-03 19:57:18 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2020-02-03 19:57:18 +0200
commit384ef8966066b6c2ee973b906ff78418f533f174 (patch)
treed8c568a722e2ff113ca3176013d80593fdd64cd2 /Software/Visual_Studio/Azure/Tango.AzureUtils.UI
parent45e7cad9ca890376374b9485bac7818ccbc4d70e (diff)
downloadTango-384ef8966066b6c2ee973b906ff78418f533f174.tar.gz
Tango-384ef8966066b6c2ee973b906ff78418f533f174.zip
Working on Azure Utils.
Diffstat (limited to 'Software/Visual_Studio/Azure/Tango.AzureUtils.UI')
-rw-r--r--Software/Visual_Studio/Azure/Tango.AzureUtils.UI/App.config4
-rw-r--r--Software/Visual_Studio/Azure/Tango.AzureUtils.UI/MainWindow.xaml.cs29
-rw-r--r--Software/Visual_Studio/Azure/Tango.AzureUtils.UI/Tango.AzureUtils.UI.csproj4
3 files changed, 37 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Azure/Tango.AzureUtils.UI/App.config b/Software/Visual_Studio/Azure/Tango.AzureUtils.UI/App.config
index eb51eb63b..2b12e43f8 100644
--- a/Software/Visual_Studio/Azure/Tango.AzureUtils.UI/App.config
+++ b/Software/Visual_Studio/Azure/Tango.AzureUtils.UI/App.config
@@ -9,6 +9,10 @@
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" />
</dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="Microsoft.IdentityModel.Clients.ActiveDirectory" publicKeyToken="31bf3856ad364e35" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.3.0.0" newVersion="4.3.0.0" />
+ </dependentAssembly>
</assemblyBinding>
</runtime>
</configuration> \ No newline at end of file
diff --git a/Software/Visual_Studio/Azure/Tango.AzureUtils.UI/MainWindow.xaml.cs b/Software/Visual_Studio/Azure/Tango.AzureUtils.UI/MainWindow.xaml.cs
index c7d1728bd..2ba632f76 100644
--- a/Software/Visual_Studio/Azure/Tango.AzureUtils.UI/MainWindow.xaml.cs
+++ b/Software/Visual_Studio/Azure/Tango.AzureUtils.UI/MainWindow.xaml.cs
@@ -20,9 +20,38 @@ namespace Tango.AzureUtils.UI
/// </summary>
public partial class MainWindow : Window
{
+ private static string app_id = "be33437c-5052-449f-ab9d-a88d008eae24";
+ private static string client_secret = "bf67fb6f-4d06-4893-988c-6b347aff23d6";
+ private static string tenant_id = "2ebd63a5-bc2f-41dc-9066-4409ed5e5dd4";
+ private static string subscription_id = "10c8aa60-3b15-4e0d-b412-6aeef90e5e91";
+
+ Tango.AzureUtils.Deployment.DeploymentManager manager = new Deployment.DeploymentManager(new AzureUtilsCredentials()
+ {
+ ClientID = app_id,
+ ClientSecret = client_secret,
+ TenantID = tenant_id,
+ SubscriptionID = subscription_id
+ });
+
public MainWindow()
{
InitializeComponent();
+
+ Test();
+ }
+
+ private async void Test()
+ {
+ var apps = await manager.GetAllWebAppsAsync();
+
+ var machineService = apps.SingleOrDefault(x => x.Name == "MachineService");
+
+ var devSlot = await machineService.DeploymentSlots.GetByNameAsync("MachineService-DEV");
+ var testSlot = await machineService.DeploymentSlots.GetByNameAsync("MachineService-TEST");
+
+ await manager.OpenSQLExaminerData(devSlot, testSlot);
+
+ var a = 5;
}
}
}
diff --git a/Software/Visual_Studio/Azure/Tango.AzureUtils.UI/Tango.AzureUtils.UI.csproj b/Software/Visual_Studio/Azure/Tango.AzureUtils.UI/Tango.AzureUtils.UI.csproj
index 08d69d41d..c2b723760 100644
--- a/Software/Visual_Studio/Azure/Tango.AzureUtils.UI/Tango.AzureUtils.UI.csproj
+++ b/Software/Visual_Studio/Azure/Tango.AzureUtils.UI/Tango.AzureUtils.UI.csproj
@@ -227,6 +227,10 @@
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
+ <ProjectReference Include="..\..\Tango.Core\Tango.Core.csproj">
+ <Project>{a34ee0f0-649d-41c8-8489-b6f1cc6924ee}</Project>
+ <Name>Tango.Core</Name>
+ </ProjectReference>
<ProjectReference Include="..\Tango.AzureUtils\Tango.AzureUtils.csproj">
<Project>{4a6b97e5-5eba-4702-a016-6f4004f14b08}</Project>
<Name>Tango.AzureUtils</Name>