Hi @Nikhil Padma , you'll need to set each table separately or loop through them all, something like this:
$tables = "AppEvents", "AppExceptions"
foreach ($table in $tables) {
Update-AzOperationalInsightsTable `
-ResourceGroupName sentinel `
-WorkspaceName <name> `
-TableName $table `
-RetentionInDays -1 `
-TotalRetentionInDays 365
}
Please let me know if you have any questions and I can help you further.
If this answer helps you please mark "Accept Answer" so other users can reference it.
Thank you,
James