aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Utilities/Tango.EnvironmentCopier/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Utilities/Tango.EnvironmentCopier/Program.cs')
-rw-r--r--Software/Visual_Studio/Utilities/Tango.EnvironmentCopier/Program.cs42
1 files changed, 42 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Utilities/Tango.EnvironmentCopier/Program.cs b/Software/Visual_Studio/Utilities/Tango.EnvironmentCopier/Program.cs
new file mode 100644
index 000000000..03434c73e
--- /dev/null
+++ b/Software/Visual_Studio/Utilities/Tango.EnvironmentCopier/Program.cs
@@ -0,0 +1,42 @@
+using Microsoft.Azure.Management.Fluent;
+using Microsoft.Azure.Management.ResourceManager.Fluent;
+using Microsoft.Azure.Management.ResourceManager.Fluent.Authentication;
+using Microsoft.Azure.Storage;
+using Microsoft.Azure.Storage.Blob;
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Tango.AzureUtils;
+using Tango.AzureUtils.Deployment;
+
+namespace Tango.EnvironmentCopier
+{
+ class Program
+ {
+ private static AzureUtilsCredentials GetCredentials()
+ {
+ AzureUtilsCredentials credentials = new AzureUtilsCredentials();
+
+ credentials.ClientID = "be33437c-5052-449f-ab9d-a88d008eae24";
+ credentials.ClientSecret = "bf67fb6f-4d06-4893-988c-6b347aff23d6";
+ credentials.TenantID = "2ebd63a5-bc2f-41dc-9066-4409ed5e5dd4";
+ credentials.SubscriptionID = "10c8aa60-3b15-4e0d-b412-6aeef90e5e91";
+
+ return credentials;
+ }
+
+ static void Main(string[] args)
+ {
+ DeploymentManager manager = new DeploymentManager(GetCredentials());
+
+ var machineService = manager.GetAllWebApps().SingleOrDefault(x => x.Name == "MachineService");
+
+ var devSlot = machineService.DeploymentSlots.GetByName("MachineService-DEV");
+
+ var settings = devSlot.GetMachineServiceSettings();
+ }
+ }
+}