Merge pull request #4 from denniseik/feature/azureml-workspace-compute
Feature/azureml workspace compute
This commit is contained in:
commit
7cdb4d59e4
@ -4,7 +4,7 @@ terraform {
|
|||||||
required_providers {
|
required_providers {
|
||||||
azurerm = {
|
azurerm = {
|
||||||
source = "hashicorp/azurerm"
|
source = "hashicorp/azurerm"
|
||||||
version = "=2.56.0"
|
version = "=2.76.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -50,4 +50,33 @@ resource "azurerm_machine_learning_workspace" "default" {
|
|||||||
identity {
|
identity {
|
||||||
type = "SystemAssigned"
|
type = "SystemAssigned"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Compite Instance
|
||||||
|
|
||||||
|
resource "azurerm_machine_learning_compute_instance" "compute_instance" {
|
||||||
|
name = "default-instance"
|
||||||
|
location = azurerm_resource_group.default.location
|
||||||
|
machine_learning_workspace_id = azurerm_machine_learning_workspace.default.id
|
||||||
|
virtual_machine_size = "STANDARD_DS2_V2"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Compute Cluster
|
||||||
|
|
||||||
|
resource "azurerm_machine_learning_compute_cluster" "compute" {
|
||||||
|
name = "default-compute"
|
||||||
|
location = azurerm_resource_group.default.location
|
||||||
|
machine_learning_workspace_id = azurerm_machine_learning_workspace.default.id
|
||||||
|
vm_priority = "Dedicated"
|
||||||
|
vm_size = "STANDARD_DS2_V2"
|
||||||
|
identity {
|
||||||
|
type = "SystemAssigned"
|
||||||
|
}
|
||||||
|
|
||||||
|
scale_settings {
|
||||||
|
min_node_count = 0
|
||||||
|
max_node_count = 3
|
||||||
|
scale_down_nodes_after_idle_duration = "PT5M" # 30 seconds
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user