Skip to content

Commit

Permalink
Doing some magic
Browse files Browse the repository at this point in the history
  • Loading branch information
Springstone committed Aug 15, 2024
1 parent 8a619b4 commit 6e8165e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"description": "Provide the resourceId to the central Log Analytics workspace."
}
},
"laCateogry": {
"laCategory": {
"type": "string",
"metadata": {
"description": "Provide the category of logs to be forwarded to Log Analytics."
Expand All @@ -35,7 +35,7 @@
},
"variables": {
"policyDefinitions": {
"deployResourceDiagnostics": "/providers/Microsoft.Authorization/policySetDefinitions/0884adba-2312-4468-abeb-5422caed1038"
"deployResourceDiagnostics": "[if(equals(parameters('laCategory'), 'allLogs'),'/providers/Microsoft.Authorization/policySetDefinitions/0884adba-2312-4468-abeb-5422caed1038','/providers/Microsoft.Authorization/policySetDefinitions/f5b29bc4-feca-4cc6-a58a-772dd5e290a5')]"
},
"policyAssignmentNames": {
"resourceDiagnostics": "Deploy-Diag-LogsCat",
Expand Down

0 comments on commit 6e8165e

Please sign in to comment.