Skip to content

Commit fdbb100

Browse files
committed
add comment
1 parent 2713f07 commit fdbb100

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Generate random string for unique compute instance name
2+
resource "random_string" "ci_prefix" {
3+
length = 8
4+
upper = false
5+
special = false
6+
number = false
7+
}
8+
9+
# Compute instance
10+
resource "azurerm_machine_learning_compute_instance" "compute_instance" {
11+
name = "${random_string.ci_prefix.result}instance"
12+
location = azurerm_resource_group.default.location
13+
machine_learning_workspace_id = azurerm_machine_learning_workspace.default.id
14+
virtual_machine_size = "STANDARD_DS2_V2"
15+
subnet_resource_id = var.training_subnet_resource_id
16+
}
17+
18+
# Compute cluster
19+
resource "azurerm_machine_learning_compute_cluster" "compute" {
20+
name = "cpu-cluster"
21+
location = azurerm_resource_group.default.location
22+
machine_learning_workspace_id = azurerm_machine_learning_workspace.default.id
23+
vm_priority = "Dedicated"
24+
vm_size = "STANDARD_DS2_V2"
25+
subnet_resource_id = var.training_subnet_resource_id
26+
27+
identity {
28+
type = "SystemAssigned"
29+
}
30+
31+
scale_settings {
32+
min_node_count = 0
33+
max_node_count = 3
34+
scale_down_nodes_after_idle_duration = "PT15M" # 15 minutes
35+
}
36+
37+
}

quickstart/202-machine-learning-moderately-secure-existing-VNet/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ for private network connectivity using [Azure Private Link](https://docs.microso
88

99
This configuration describes the minimal set of resources you require to get started with Azure Machine Learning in a network-isolated set-up. This configurations assumes that you have existing network components to reuse. The [201 example](../201-machine-learning-moderately-secure/readme.md), alternatively creates new network components.
1010

11+
Please note that this template does not configure Azure Private DNS zones. The assumption is that you have already configured DNS zones that are linked to your virtual network resources, or use your private DNS.
12+
1113
## Resources
1214

1315
| Terraform Resource Type | Description |
@@ -20,8 +22,6 @@ This configuration describes the minimal set of resources you require to get sta
2022
| `azurerm_machine_learning_workspace` | An Azure Machine Learning workspace instance |
2123
| `azurerm_virtual_network` | An Azure Machine Learning workspace instance |
2224
| `azurerm_subnet` | An Azure Machine Learning workspace instance |
23-
| `azurerm_private_dns_zone` | Private DNS Zones for FQDNs required for Azure Machine Learning and associated resources |
24-
| `azurerm_private_dns_zone_virtual_network_link` | Virtual network links of the Private DNS Zones to the virtual network resource |
2525
| `azurerm_private_endpoint` | Private Endpoints for the Azure Machine Learning workspace and associated resources |
2626
| `azurerm_machine_learning_compute_instance` | An Azure Machine Learning compute instance a single-node managed compute. |
2727
| `azurerm_machine_learning_compute_cluster` | An Azure Machine Learning compute cluster as multi-node shared and managed compute. |

0 commit comments

Comments
 (0)