Skip to content

Commit 44679c8

Browse files
committed
separated compute
1 parent 7a356af commit 44679c8

File tree

2 files changed

+26
-25
lines changed

2 files changed

+26
-25
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Compute Instance
2+
resource "azurerm_machine_learning_compute_instance" "compute_instance" {
3+
name = "default-instance"
4+
location = azurerm_resource_group.default.location
5+
machine_learning_workspace_id = azurerm_machine_learning_workspace.default.id
6+
virtual_machine_size = "STANDARD_DS2_V2"
7+
}
8+
9+
# Compute Cluster
10+
resource "azurerm_machine_learning_compute_cluster" "compute" {
11+
name = "default-compute"
12+
location = azurerm_resource_group.default.location
13+
machine_learning_workspace_id = azurerm_machine_learning_workspace.default.id
14+
vm_priority = "Dedicated"
15+
vm_size = "STANDARD_DS2_V2"
16+
identity {
17+
type = "SystemAssigned"
18+
}
19+
20+
scale_settings {
21+
min_node_count = 0
22+
max_node_count = 3
23+
scale_down_nodes_after_idle_duration = "PT10M" # 10 minutes
24+
}
25+
26+
}

quickstart/101-machine-learning/workspace.tf

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -52,29 +52,4 @@ resource "azurerm_machine_learning_workspace" "default" {
5252
}
5353
}
5454

55-
# Compute Instance
56-
resource "azurerm_machine_learning_compute_instance" "compute_instance" {
57-
name = "default-instance"
58-
location = azurerm_resource_group.default.location
59-
machine_learning_workspace_id = azurerm_machine_learning_workspace.default.id
60-
virtual_machine_size = "STANDARD_DS2_V2"
61-
}
62-
63-
# Compute Cluster
64-
resource "azurerm_machine_learning_compute_cluster" "compute" {
65-
name = "default-compute"
66-
location = azurerm_resource_group.default.location
67-
machine_learning_workspace_id = azurerm_machine_learning_workspace.default.id
68-
vm_priority = "Dedicated"
69-
vm_size = "STANDARD_DS2_V2"
70-
identity {
71-
type = "SystemAssigned"
72-
}
7355

74-
scale_settings {
75-
min_node_count = 0
76-
max_node_count = 3
77-
scale_down_nodes_after_idle_duration = "PT10M" # 10 minutes
78-
}
79-
80-
}

0 commit comments

Comments
 (0)