-
I have some difficulties to figure out how can i translate the following ARM Template which is creating a diagnostic settings for an application gateway, in bicep file : {
"apiVersion": "2017-05-01-preview",
"name": "[concat(parameters('applicationGatewayName'), '/Microsoft.Insights/diagnosticSettings')]",
"type":"Microsoft.Network/applicationGateways/providers/diagnosticSettings",
"location": "[resourceGroup().location]",
"dependsOn": [
"[concat('Microsoft.Network/ApplicationGateways/', parameters('applicationGatewayName'))]",
"[concat('Microsoft.OperationalInsights/workspaces/',variables('logAnalyticsName'))]"
],
"properties":{
"name":"Diag",
"workspaceId": "[resourceId('Microsoft.OperationalInsights/workspaces/',variables('logAnalyticsName'))]",
"logs":[
{
"category": "ApplicationGatewayAccessLog",
"enabled": true,
"retentionPolicy": {
"enabled": true,
"days": 365
}
},
{
"category": "ApplicationGatewayPerformanceLog",
"enabled": true,
"retentionPolicy": {
"days": 365,
"enabled": true
}
},
{
"category": "ApplicationGatewayFirewallLog",
"enabled": true,
"retentionPolicy": {
"days": 365,
"enabled": true
}
}
],
"metrics": [
{
"category": "AllMetrics",
"enabled": true,
"retentionPolicy": {
"enabled": true,
"days": 365
}
}
]
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
Antse
Mar 30, 2021
Replies: 2 comments 3 replies
-
Have you tried using Biceps functionality to turn it from JSON to Bicep?
|
Beta Was this translation helpful? Give feedback.
3 replies
-
work great |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Antse
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
work great