private List<AzureSubscription> ListSubscriptionsFromPublishSettingsFile(string filePath, string environment)
{
if (string.IsNullOrEmpty(filePath) || !AzureSession.DataStore.FileExists(filePath))
{
throw new ArgumentException(Resources.FilePathIsNotValid, "filePath");
}
return PublishSettingsImporter.ImportAzureSubscription(AzureSession.DataStore.ReadFileAsStream(filePath), this, environment).ToList();
}