public override void ExecuteCmdlet() { if (ResourceGroupName == null) { ResourceGroupName = GetResourceGroupByAccountName(Name); } var operationResource = HDInsightManagementClient.GetOMS(ResourceGroupName, Name); WriteObject(new AzureHDInsightOMS(operationResource)); }