ais-open / azure-blueprint

16 stars 20 forks source link

Log Analytics retention period should be 1 year #76

Closed jomolesk closed 4 years ago

jomolesk commented 7 years ago

Currently set to 7 days, which is a limitation of the free pricing tier selected.

davoodharun commented 7 years ago

This is a known bug. The template parameter that is used to deploy the OMS workspaces is set to use 365 days as its retention time with the Per-Node pricing scheme. After deployment, the retention time is still set to 30 days. I have added this as a post-deploy manual step.

From line 131 of azuredeploy.json:

"serviceTier": {
            "type": "string",
            "allowedValues": [
                "Free",
                "Standalone",
                "PerNode"
            ],
            "defaultValue": "PerNode",
            "metadata": {
                "description": "Service Tier: Free, Standalone, or PerNode"
            }
        },
        "dataRetention": {
            "type": "int",
            "defaultValue": 365,
            "minValue": 7,
            "maxValue": 730,
            "metadata": {
                "description": "Number of days of retention. Free plans can only have 7 days, Standalone and OMS plans include 30 days for free"
            }
        }