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 303f06c commit 4175ebcCopy full SHA for 4175ebc
quickstart/201-machine-learning-moderately-secure/workspace.tf
@@ -6,8 +6,14 @@ resource "azurerm_application_insights" "default" {
6
application_type = "web"
7
}
8
9
+resource "random_string" "kv_suffix" {
10
+ length = 24
11
+ upper = false
12
+ special = false
13
+}
14
+
15
resource "azurerm_key_vault" "default" {
- name = "kv-${var.name}-${var.environment}"
16
+ name = substr("kv-${var.name}-${var.environment}-${random_string.kv_suffix.result}", 0, 24)
17
location = azurerm_resource_group.default.location
18
resource_group_name = azurerm_resource_group.default.name
19
tenant_id = data.azurerm_client_config.current.tenant_id
0 commit comments