Skip to content
3 changes: 3 additions & 0 deletions policyAssignments/dev/pa-d-mdc.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@
"isAgentlessServerlessPostureEnabled": {
"value": "true"
},
"isServerlessContainersEnabled":{
"value": "true"
},
"isMdeDesignatedSubscriptionEnabled": {
"value": "false"
},
Expand Down
3 changes: 3 additions & 0 deletions policyAssignments/prod/pa-p-mdc.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@
"isAgentlessServerlessPostureEnabled": {
"value": "true"
},
"isServerlessContainersEnabled":{
"value": "true"
},
"isMdeDesignatedSubscriptionEnabled": {
"value": "false"
},
Expand Down
36 changes: 35 additions & 1 deletion policyDefinitions/mdc/pol-deploy-defender-cspm.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,18 @@
"false"
],
"defaultValue": "true"
},
"isServerlessContainersEnabled": {
"type": "string",
"metadata": {
"displayName": "Serverless Containers Enabled",
"description": "Enable or disable the Serverless Containers add-on feature"
},
"allowedValues": [
"true",
"false"
],
"defaultValue": "true"
}
},
"policyRule": {
Expand Down Expand Up @@ -246,11 +258,23 @@
"equals": "[parameters('isAgentlessServerlessPostureEnabled')]"
}
]
},
{
"allOf": [
{
"field": "Microsoft.Security/pricings/extensions[*].name",
"equals": "ServerlessContainers"
},
{
"field": "Microsoft.Security/pricings/extensions[*].isEnabled",
"equals": "[parameters('isServerlessContainersEnabled')]"
}
]
}
]
}
},
"equals": 3
"equals": 4
}
]
},
Expand Down Expand Up @@ -279,6 +303,9 @@
},
"isAgentlessServerlessPostureEnabled": {
"value": "[parameters('isAgentlessServerlessPostureEnabled')]"
},
"isServerlessContainersEnabled": {
"value": "[parameters('isServerlessContainersEnabled')]"
}
},
"template": {
Expand All @@ -305,6 +332,9 @@
},
"isAgentlessServerlessPostureEnabled": {
"type": "string"
},
"isServerlessContainersEnabled": {
"type": "string"
}
},
"variables": {},
Expand Down Expand Up @@ -343,6 +373,10 @@
{
"name": "AgentlessServerlessPosture",
"isEnabled": "[parameters('isAgentlessServerlessPostureEnabled')]"
},
{
"name": "ServerlessContainers",
"isEnabled": "[parameters('isServerlessContainersEnabled')]"
}
]
}
Expand Down
16 changes: 0 additions & 16 deletions policyInitiatives/polset-aks-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@
"portalReview": true
},
"allowedValues": [
"audit",
"Audit",
"deny",
"Deny",
"disabled",
"Disabled"
],
"defaultValue": "Deny"
Expand Down Expand Up @@ -1057,11 +1054,8 @@
"portalReview": true
},
"allowedValues": [
"audit",
"Audit",
"deny",
"Deny",
"disabled",
"Disabled"
],
"defaultValue": "Audit"
Expand Down Expand Up @@ -1859,11 +1853,8 @@
"portalReview": true
},
"allowedValues": [
"audit",
"Audit",
"deny",
"Deny",
"disabled",
"Disabled"
],
"defaultValue": "Audit"
Expand Down Expand Up @@ -1973,11 +1964,8 @@
"portalReview": true
},
"allowedValues": [
"audit",
"Audit",
"deny",
"Deny",
"disabled",
"Disabled"
],
"defaultValue": "Audit"
Expand Down Expand Up @@ -2224,11 +2212,8 @@
"portalReview": true
},
"allowedValues": [
"audit",
"Audit",
"deny",
"Deny",
"disabled",
"Disabled"
],
"defaultValue": "Audit"
Expand Down Expand Up @@ -2330,7 +2315,6 @@
},
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Audit"
Expand Down
16 changes: 15 additions & 1 deletion policyInitiatives/polset-mdc.json
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,18 @@
],
"defaultValue": "true"
},

"isServerlessContainersEnabled": {
"type": "String",
"metadata": {
"displayName": "Serverless Containers Enabled",
"description": "Enable or disable the Serverless Containers add-on feature"
},
"allowedValues": [
"true",
"false"
],
"defaultValue": "true"
},
"isMdeDesignatedSubscriptionEnabled": {
"type": "String",
"metadata": {
Expand Down Expand Up @@ -572,6 +583,9 @@
},
"isAgentlessServerlessPostureEnabled": {
"value": "[parameters('isAgentlessServerlessPostureEnabled')]"
},
"isServerlessContainersEnabled": {
"value": "[parameters('isServerlessContainersEnabled')]"
}
},
"groupNames": [
Expand Down
Loading