public override void ExecuteCmdlet() { if (ResourceGroupName == null) { ResourceGroupName = GetResourceGroupByAccountName(Name); } var clusterMonitoringResource = HDInsightManagementClient.GetMonitoring(ResourceGroupName, Name); WriteObject(new AzureHDInsightMonitoring(clusterMonitoringResource)); }