protected override void ProcessRecord() { if (ResourceGroupName == null) { ResourceGroupName = GetResourceGroupByAccountName(ClusterName); } var result = HDInsightManagementClient.DeleteCluster(ResourceGroupName, ClusterName); WriteObject(result, true); }
public override void ExecuteCmdlet() { if (ResourceGroupName == null) { ResourceGroupName = GetResourceGroupByAccountName(ClusterName); } var result = HDInsightManagementClient.DeleteCluster(ResourceGroupName, ClusterName); WriteObject(result, true); }
public override void ExecuteCmdlet() { if (ResourceGroupName == null) { ResourceGroupName = GetResourceGroupByAccountName(ClusterName); } HDInsightManagementClient.DeleteCluster(ResourceGroupName, ClusterName); if (this.PassThru.IsPresent) { WriteObject(true); } }
public override void ExecuteCmdlet() { var result = HDInsightManagementClient.DeleteCluster(ResourceGroupName, ClusterName); WriteObject(result, true); }