mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-17 12:28:07 +00:00
Remove the retention policy setting (#3452)
* Remove the configuration of the autoscale diagnostic * only remove the retention policy * set retention policy to false * remove settings * remove retentionPolicy from bicep * format
This commit is contained in:
@ -167,7 +167,6 @@ module autoscaleSettings 'bicep-templates/autoscale-settings.bicep' = {
|
||||
server_farm_id: serverFarm.outputs.id
|
||||
owner: owner
|
||||
workspaceId: operationalInsights.outputs.workspaceId
|
||||
logRetention: log_retention
|
||||
autoscale_name: 'onefuzz-autoscale-${uniqueString(resourceGroup().id)}'
|
||||
function_diagnostics_settings_name: 'functionDiagnosticSettings'
|
||||
}
|
||||
|
@ -2,7 +2,6 @@ param location string
|
||||
param server_farm_id string
|
||||
param owner string
|
||||
param workspaceId string
|
||||
param logRetention int
|
||||
param autoscale_name string
|
||||
param function_diagnostics_settings_name string
|
||||
|
||||
@ -27,7 +26,7 @@ resource autoscaleSettings 'Microsoft.Insights/autoscalesettings@2015-04-01' = {
|
||||
rules: [
|
||||
{
|
||||
metricTrigger: {
|
||||
metricName: 'CpuPercentage'
|
||||
metricName: 'CpuPercentage'
|
||||
metricResourceUri: server_farm_id
|
||||
operator: 'GreaterThanOrEqual'
|
||||
statistic: 'Average'
|
||||
@ -50,7 +49,7 @@ resource autoscaleSettings 'Microsoft.Insights/autoscalesettings@2015-04-01' = {
|
||||
operator: 'LessThan'
|
||||
statistic: 'Average'
|
||||
threshold: 25
|
||||
timeAggregation:'Average'
|
||||
timeAggregation:'Average'
|
||||
timeGrain: 'PT1M'
|
||||
timeWindow: 'PT10M'
|
||||
}
|
||||
@ -79,10 +78,6 @@ resource functionDiagnosticSettings 'Microsoft.Insights/diagnosticSettings@2021-
|
||||
{
|
||||
categoryGroup: 'allLogs'
|
||||
enabled: true
|
||||
retentionPolicy: {
|
||||
days: logRetention
|
||||
enabled: true
|
||||
}
|
||||
}
|
||||
]
|
||||
workspaceId: workspaceId
|
||||
|
Reference in New Issue
Block a user