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); }