File tree Expand file tree Collapse file tree 2 files changed +26
-25
lines changed
quickstart/101-machine-learning Expand file tree Collapse file tree 2 files changed +26
-25
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff 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- }
You can’t perform that action at this time.
0 commit comments