Exemplo n.º 1
0
        public override void ExecuteCmdlet()
        {
            var tableSetProperties = new UpdatePSTableParameters()
            {
                ResourceGroupName = ResourceGroupName,
                WorkspaceName     = WorkspaceName,
                TableName         = TableName,
                RetentionInDays   = RetentionInDays,
                //IsTroubleshootEnabled = IsTroubleshootEnabled,
            };

            if (ShouldProcess(TableName, $"Update Table: {TableName}, in workspace: {WorkspaceName}, resource group: {ResourceGroupName}"))
            {
                WriteObject(OperationalInsightsClient.UpdatePSTable(tableSetProperties), true);
            }
        }