Skip to content

Commit

Permalink
Merge pull request #354 from SkillsFundingAgency/DASD-11748
Browse files Browse the repository at this point in the history
Added Diagnostic setting for Machine learning Workspace template
  • Loading branch information
divesh987 authored Dec 6, 2024
2 parents 3b8ab36 + 4dbd23e commit 63f5e21
Showing 1 changed file with 27 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
},
"ipAllowlist": {
"type": "array"
},
"logAnalyticsWorkspaceResourceId": {
"type": "string"
}
},
"variables": {},
"resources": [
{
"type": "Microsoft.MachineLearningServices/workspaces",
Expand All @@ -44,7 +46,30 @@
"hbiWorkspace": "[parameters('confidentialData')]",
"systemDatastoresAuthMode": "identity",
"ipAllowlist": "[parameters('ipAllowlist')]"
}
},
"resources": [
{
"type": "providers/diagnosticSettings",
"apiVersion": "2021-05-01-preview",
"name": "Microsoft.Insights/service",
"dependsOn": [
"[resourceId('Microsoft.MachineLearningServices/workspaces', parameters('workspaceName'))]"
],
"properties": {
"workspaceId": "[parameters('logAnalyticsWorkspaceResourceId')]",
"logs": [
{
"categoryGroup": "audit",
"enabled": true,
"retentionPolicy": {
"enabled": false,
"days": 0
}
}
]
}
}
]
}
],
"outputs": {}
Expand Down

0 comments on commit 63f5e21

Please sign in to comment.