private static string ClusterToString(Cluster cluster) { var sb = new StringBuilder(); sb.AppendFormat("\r\n\tResourceGroup: {0}\r\n", HDInsightManagementCLIHelpers.GetResourceGroupNameFromClusterId(cluster.Id)); sb.AppendFormat("\t{0}\r\n", cluster.ToDisplayString().Replace("\n", "\n\t")); sb.AppendFormat("\tUserClusterTablePrefix: {0}\r\n", HDInsightManagementCLIHelpers.GetUserClusterTablePrefix(cluster)); return sb.ToString(); }