Skip to content

Commit

Permalink
add random suffix for machine learning workspace to avoid testing fai…
Browse files Browse the repository at this point in the history
…lure.
  • Loading branch information
lonegunmanb committed Jan 3, 2024
1 parent cc391fe commit 7e2f19b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,14 @@ resource "azurerm_container_registry" "default" {
public_network_access_enabled = false
}

resource "random_string" "workspace_suffix" {
length = 10
special = false
}

# Machine Learning workspace
resource "azurerm_machine_learning_workspace" "default" {
name = "mlw-${var.name}-${var.environment}"
name = "mlw-${var.name}-${var.environment}-${random_string.workspace_suffix.result}"
location = azurerm_resource_group.default.location
resource_group_name = azurerm_resource_group.default.name
application_insights_id = azurerm_application_insights.default.id
Expand Down

0 comments on commit 7e2f19b

Please sign in to comment.