public AzureHDInsightCluster(Cluster cluster, IDictionary <string, string> clusterConfiguration, IDictionary <string, string> clusterIdentity)
            : this(cluster)
        {
            if (clusterConfiguration != null)
            {
                var defaultAccount = ClusterConfigurationUtils.GetDefaultStorageAccountDetails(
                    cluster.Properties.ClusterVersion,
                    clusterConfiguration,
                    clusterIdentity
                    );

                if (defaultAccount != null)
                {
                    DefaultStorageAccount = defaultAccount.StorageAccountName;

                    var wasbAccount = defaultAccount as AzureHDInsightWASBDefaultStorageAccount;
                    var adlAccount  = defaultAccount as AzureHDInsightDataLakeDefaultStorageAccount;

                    if (wasbAccount != null)
                    {
                        DefaultStorageContainer = wasbAccount.StorageContainerName;
                    }
                    else if (adlAccount != null)
                    {
                        DefaultStorageRootPath = adlAccount.StorageRootPath;
                    }
                    else
                    {
                        DefaultStorageContainer = string.Empty;
                    }

                    AdditionalStorageAccounts = ClusterConfigurationUtils.GetAdditionStorageAccounts(clusterConfiguration, DefaultStorageAccount);
                }
            }
        }
        public AzureHDInsightCluster(Cluster cluster, IDictionary <string, string> clusterConfiguration)
            : this(cluster)
        {
            if (clusterConfiguration != null)
            {
                var defaultAccount = ClusterConfigurationUtils.GetDefaultStorageAccountDetails(
                    clusterConfiguration,
                    cluster.Properties.ClusterVersion);

                DefaultStorageAccount   = defaultAccount.StorageAccountName;
                DefaultStorageContainer = defaultAccount.StorageContainerName;

                AdditionalStorageAccounts = ClusterConfigurationUtils.GetAdditionStorageAccounts(clusterConfiguration, DefaultStorageAccount);
            }
        }