We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdbb100 commit 9d04bc2Copy full SHA for 9d04bc2
quickstart/101-machine-learning/compute.tf
@@ -1,9 +1,17 @@
1
-# Compute Instance
+# 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" {
- name = "default-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
- virtual_machine_size = "STANDARD_DS2_V2"
14
+ virtual_machine_size = "STANDARD_DS2_V2"
15
}
16
17
# Compute Cluster
0 commit comments