blob: 03434c73ed73875246af3540922fbb03724684f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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();
}
}
}
|