For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex CloudApplication Security

Azure Machine Learning Compute Cluster Minimum Nodes is not set to 0 misconfiguration detected in co

Rule Details

Cortex AppSec Rule ID

APPSEC_AZURE_150

Category - Subcategory

Compute - Overprovisioned

Provider

AZURE

Severity

LOW

Framework

Terraform

Impact

Setting the minimum number of nodes for your Azure Machine Learning Compute Clusters to 0 can help reduce the cost of running the cluster when it is not in use. When the minimum number of nodes is set to 0, the cluster is scaled down to 0 nodes when it is not in use, and no resources are consumed. By setting the minimum number of nodes to 0, you can ensure that the cluster is not consuming resources when it is not in use, which can help reduce your costs. This can be especially useful if you only need to use the cluster occasionally or on an as-needed basis.

How to Fix

Resource: azurerm_machine_learning_compute_cluster

  • Arguments: scale_settings.min_node_count [source,go]


resource "azurerm_machine_learning_compute_cluster" "ckv_unittest_pass" { name = "example" location = "West Europe" vm_priority = "LowPriority" vm_size = "Standard_DS2_v2" machine_learning_workspace_id = azurerm_machine_learning_workspace.example.id subnet_resource_id = azurerm_subnet.example.id

scale_settings { min_node_count = 0 max_node_count = 1 scale_down_nodes_after_idle_duration = "PT30S" # 30 seconds } }

Last updated

Was this helpful?