-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Copy pathWorkspace_UAIEnabled_Audit.json
58 lines (58 loc) · 1.97 KB
/
Workspace_UAIEnabled_Audit.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"properties": {
"displayName": "Azure Machine Learning workspaces should use user-assigned managed identity",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Manange access to Azure ML workspace and associated resources, Azure Container Registry, KeyVault, Storage, and App Insights using user-assigned managed identity. By default, system-assigned managed identity is used by Azure ML workspace to access the associated resources. User-assigned managed identity allows you to create the identity as an Azure resource and maintain the life cycle of that identity. Learn more at https://docs.microsoft.com/azure/machine-learning/how-to-use-managed-identities?tabs=python.",
"metadata": {
"version": "1.0.0",
"category": "Machine Learning"
},
"version": "1.0.0",
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
},
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Audit"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.MachineLearningServices/workspaces"
},
{
"anyOf": [
{
"field": "Microsoft.MachineLearningServices/workspaces/primaryUserAssignedIdentity",
"exists": false
},
{
"field": "Microsoft.MachineLearningServices/workspaces/primaryUserAssignedIdentity",
"equals": ""
}
]
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/5f0c7d88-c7de-45b8-ac49-db49e72eaa78",
"name": "5f0c7d88-c7de-45b8-ac49-db49e72eaa78"
}