add random suffix for machine learning workspace to avoid testing failure.

This commit is contained in:
hezijie 2024-01-03 09:17:31 +08:00 committed by lonegunmanb
parent cc391fef1f
commit 7e2f19b6cb

View File

@ -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