public override void ExecuteCmdlet()
        {
            if (this.IsParameterBound(c => c.ResourceId))
            {
                var resourceIdentifier = new ResourceIdentifier(ResourceId);
                this.ClusterName       = resourceIdentifier.ResourceName;
                this.ResourceGroupName = resourceIdentifier.ResourceGroupName;
            }

            if (this.IsParameterBound(c => c.InputObject))
            {
                this.ClusterName       = this.InputObject.Name;
                this.ResourceGroupName = this.InputObject.ResourceGroup;
            }

            if (ClusterName != null && ResourceGroupName == null)
            {
                ResourceGroupName = GetResourceGroupByAccountName(ClusterName);
            }

            var azureMonitorParams = new AzureMonitorRequest
            {
                WorkspaceId = WorkspaceId,
                PrimaryKey  = PrimaryKey
            };

            if (ShouldProcess("Enable Azure Monitor"))
            {
                HDInsightManagementClient.EnableAzureMonitor(ResourceGroupName, ClusterName, azureMonitorParams);
                WriteObject(true);
            }
        }