public void TestCreateMachine() { AzureMachineAdapter azureMachineAdapter = null; OperationAdapter operationHelper = null; using (StreamReader reader = new StreamReader(new FileStream(@"D:\andyzone\WSEEverywhere2\AzureRestAdapter\data\Windows Azure MSDN - Visual Studio Ultimate-5-28-2013-credentials.publishsettings", FileMode.Open, FileAccess.Read))) { string publishSettings = reader.ReadToEnd(); azureMachineAdapter = new AzureMachineAdapter(publishSettings); operationHelper = new OperationAdapter(publishSettings); } string label = "My example service"; azureMachineAdapter.CreateMachine(serviceName, label, machineName, "aurorauser", "Quattro!", mediaLink, osDiskName); }
public void TestNewAzureDisk() { AzureMachineAdapter azureMachineAdapter = null; OperationAdapter operationHelper = null; using (StreamReader reader = new StreamReader(new FileStream(@"D:\andyzone\WSEEverywhere2\AzureRestAdapter\data\Windows Azure MSDN - Visual Studio Ultimate-5-28-2013-credentials.publishsettings", FileMode.Open, FileAccess.Read))) { string publishSettings = reader.ReadToEnd(); azureMachineAdapter = new AzureMachineAdapter(publishSettings); operationHelper = new OperationAdapter(publishSettings); } // Create the new storage account with the following values: string label = "andyliu os disk label"; string diskName = "andyliuosdisk"; string requestId = azureMachineAdapter.NewAzureDisk(diskName, label, mediaLink); Console.WriteLine( "Called Create Storage Account operation: requestId {0}", requestId); }
public void TestCreateCloudService() { AzureMachineAdapter azureMachineAdapter = null; OperationAdapter operationHelper = null; using (StreamReader reader = new StreamReader(new FileStream(@"D:\andyzone\WSEEverywhere2\AzureRestAdapter\data\Windows Azure MSDN - Visual Studio Ultimate-5-28-2013-credentials.publishsettings", FileMode.Open, FileAccess.Read))) { string publishSettings = reader.ReadToEnd(); azureMachineAdapter = new AzureMachineAdapter(publishSettings); operationHelper = new OperationAdapter(publishSettings); } // Create the new storage account with the following values: string label = "My example cloud service label"; string location = "East Asia"; string requestId = azureMachineAdapter.NewAzureCloudService(serviceName, location, label, null); Console.WriteLine( "Called Create Storage Account operation: requestId {0}", requestId); }
public void TestNewAzureVMImage() { AzureMachineAdapter azureMachineAdapter = null; OperationAdapter operationHelper = null; using (StreamReader reader = new StreamReader(new FileStream(@"D:\andyzone\WSEEverywhere2\AzureRestAdapter\data\Windows Azure MSDN - Visual Studio Ultimate-5-28-2013-credentials.publishsettings", FileMode.Open, FileAccess.Read))) { string publishSettings = reader.ReadToEnd(); azureMachineAdapter = new AzureMachineAdapter(publishSettings); operationHelper = new OperationAdapter(publishSettings); } string label = "andy liu vm image label"; string requestId = azureMachineAdapter.NewAzureVMImage(vmImageName, mediaLink, label); }