public static ClusterCreateParameters GetCustomCreateParametersPaas()
        {
            var clusterparams = new ClusterCreateParameters
            {
                ClusterSizeInNodes = 3,
                ClusterType = HDInsightClusterType.Hadoop,
                WorkerNodeSize = "Large",
                DefaultStorageAccountName = StorageAccountName,
                DefaultStorageAccountKey = StorageAccountKey,
                OSType = OSType.Windows,
                UserName = HttpUser,
                Password = HttpPassword,
                DefaultStorageContainer = DefaultContainer,
                Location =  "West US"
            };
            var actions = new List<ScriptAction>();
            var action = new ScriptAction("action", new Uri("https://uri.com"), "params");
            actions.Add(action);
            clusterparams.ScriptActions.Add(ClusterNodeType.WorkerNode, actions);
            clusterparams.ScriptActions.Add(ClusterNodeType.HeadNode, actions);

            return clusterparams;
        }
        public static ClusterCreateParameters GetCustomCreateParametersPaas()
        {
            var clusterparams = new ClusterCreateParameters
            {
                ClusterSizeInNodes = 3,
                ClusterType = "Hadoop",
                WorkerNodeSize = "Large",
                DefaultStorageInfo = GetDefaultAzureStorageInfo(),
                OSType = OSType.Windows,
                UserName = HttpUser,
                Password = HttpPassword,
                Location = "East US",
                Version = "3.2"
            };
            var actions = new List<ScriptAction>();
            var action = new ScriptAction("action", new Uri("https://uri.com"), "params");
            actions.Add(action);
            clusterparams.ScriptActions.Add(ClusterNodeType.WorkerNode, actions);
            clusterparams.ScriptActions.Add(ClusterNodeType.HeadNode, actions);

            return clusterparams;
        }
 public AzureHDInsightScriptAction(ScriptAction action)
 {
     ActionName = action.Name;
     Uri = action.Uri;
     Parameters = action.Parameters;
 }
 public AddAzureHDInsightScriptActionCommand()
 {
     _action = new ScriptAction();
 }