CCSS (Common Configuration Scoring System) is a set of measures used to determine the severity of the rule.
Each rule is associated with a high-level category. For example IAM, Container, Monitoring, Logging, Network, etc.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsJust in time (JIT) virtual machine access can be used to lock down inbound traffic to Azure VMs, reducing exposure to attacks while providing easy access to connect to VMs when needed.
Set policy_definition_id
to /providers/Microsoft.Authorization/policyDefinitions/b0f33259-77d7-4c9e-aac6-3aabcfae693c
and enforcementMode
to Default
.
{
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"resources": [
{
"type": "Microsoft.Authorization/policyAssignments",
"apiVersion": "2022-06-01",
"name": "allowed",
"properties": {
"description": "Possible network Just In Time (JIT) access will be monitored by Azure Security Center as recommendations",
"displayName": "Management ports of virtual machines should be protected with just-in-time network access control",
"enforcementMode": "Default",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/b0f33259-77d7-4c9e-aac6-3aabcfae693c"
}
}
]
}
Set policy_definition_id
to /providers/Microsoft.Authorization/policyDefinitions/b0f33259-77d7-4c9e-aac6-3aabcfae693c
, and set enforce
to true
or remove the attribute.
resource "azurerm_subscription_policy_assignment" "allowed1" {
name = "JIT1"
policy_definition_id = "/providers/Microsoft.Authorization/policyDefinitions/b0f33259-77d7-4c9e-aac6-3aabcfae693c"
subscription_id = data.azurerm_subscription.current.id
display_name = "Management ports of virtual machines should be protected with just-in-time network access control"
enforce = true
description = "Possible network Just In Time (JIT) access will be monitored by Azure Security Center as recommendations"
}