Exemple #1
0
        public override void ExecuteCmdlet()
        {
            if (ResourceGroupName == null)
            {
                ResourceGroupName = GetResourceGroupByAccountName(Name);
            }

            var monitoringParams = new ClusterMonitoringRequest
            {
                WorkspaceId = WorkspaceId,
                PrimaryKey  = PrimaryKey
            };

            if (ShouldProcess("Enable Operations Management Suite"))
            {
                var operationResource = HDInsightManagementClient.EnableOMS(ResourceGroupName, Name, monitoringParams);
                WriteObject(operationResource);
            }
        }