Skip to content

Commit 9d04bc2

Browse files
committed
ci naming
1 parent fdbb100 commit 9d04bc2

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

quickstart/101-machine-learning/compute.tf

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1-
# Compute Instance
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
210
resource "azurerm_machine_learning_compute_instance" "compute_instance" {
3-
name = "default-instance"
11+
name = "${random_string.ci_prefix.result}instance"
412
location = azurerm_resource_group.default.location
513
machine_learning_workspace_id = azurerm_machine_learning_workspace.default.id
6-
virtual_machine_size = "STANDARD_DS2_V2"
14+
virtual_machine_size = "STANDARD_DS2_V2"
715
}
816

917
# Compute Cluster

0 commit comments

Comments
 (0)