protected override void ProcessRecord()
        {
            if (ResourceGroupName == null)
            {
                ResourceGroupName = GetResourceGroupByAccountName(ClusterName);
            }

            var result = HDInsightManagementClient.DeleteCluster(ResourceGroupName, ClusterName);

            WriteObject(result, true);
        }
コード例 #2
0
        public override void ExecuteCmdlet()
        {
            if (ResourceGroupName == null)
            {
                ResourceGroupName = GetResourceGroupByAccountName(ClusterName);
            }

            var result = HDInsightManagementClient.DeleteCluster(ResourceGroupName, ClusterName);

            WriteObject(result, true);
        }
コード例 #3
0
        public override void ExecuteCmdlet()
        {
            if (ResourceGroupName == null)
            {
                ResourceGroupName = GetResourceGroupByAccountName(ClusterName);
            }

            HDInsightManagementClient.DeleteCluster(ResourceGroupName, ClusterName);

            if (this.PassThru.IsPresent)
            {
                WriteObject(true);
            }
        }
コード例 #4
0
        public override void ExecuteCmdlet()
        {
            var result = HDInsightManagementClient.DeleteCluster(ResourceGroupName, ClusterName);

            WriteObject(result, true);
        }