Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ func (r LogAnalyticsWorkspaceTableResource) CustomizeDiff() sdk.ResourceFunc {
rd := metadata.ResourceDiff

if string(tables.TablePlanEnumBasic) == rd.Get("plan").(string) {
if _, ok := rd.GetOk("retention_in_days"); ok {
return fmt.Errorf("cannot set retention_in_days because the retention is fixed at eight days on Basic plan")
if v, ok := rd.GetOk("retention_in_days"); ok && v.(int) != 30 {
return fmt.Errorf("cannot set retention_in_days because the retention is fixed at 30 days on Basic plan")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ The following arguments are supported:

-> **Note:** The `name` of tables currently supported by the `Basic` plan can be found [here](https://learn.microsoft.com/en-us/azure/azure-monitor/logs/basic-logs-azure-tables).

* `retention_in_days` - (Optional) The table's retention in days. Possible values are either `8` (Basic Tier only) or range between `4` and `730`.
* `retention_in_days` - (Optional) The table's retention in days. Possible values are between `4` and `730`.

* `total_retention_in_days` - (Optional) The table's total retention in days. Possible values range between `4` and `730`; or `1095`, `1460`, `1826`, `2191`, `2556`, `2922`, `3288`, `3653`, `4018`, or `4383`.

Expand Down
Loading