-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathd-naming.tf
50 lines (46 loc) · 1.83 KB
/
d-naming.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# https://learn.microsoft.com/en-us/azure/cloud-adoption-framework/ready/azure-best-practices/resource-abbreviations
data "azurecaf_name" "avd_workspace" {
name = var.stack
resource_type = "azurerm_virtual_desktop_workspace"
prefixes = compact([local.name_prefix, "vdws"])
suffixes = compact([var.client_name, var.location_short, var.environment, local.name_suffix])
use_slug = false
clean_input = true
separator = "-"
}
data "azurecaf_name" "avd_host_pool" {
name = var.stack
resource_type = "azurerm_virtual_desktop_host_pool"
prefixes = compact([local.name_prefix, "vdpool"])
suffixes = compact([var.client_name, var.location_short, var.environment, local.name_suffix])
use_slug = false
clean_input = true
separator = "-"
}
data "azurecaf_name" "avd_app_group" {
name = var.stack
resource_type = "azurerm_virtual_desktop_application_group"
prefixes = compact([local.name_prefix, "vdag"])
suffixes = compact([var.client_name, var.location_short, var.environment, local.name_suffix])
use_slug = false
clean_input = true
separator = "-"
}
data "azurecaf_name" "avd_scaling_plan" {
name = var.stack
resource_type = "azurerm_resource_group"
prefixes = compact([local.name_prefix, "vdscaling"])
suffixes = compact([var.client_name, var.location_short, var.environment, local.name_suffix])
use_slug = false
clean_input = true
separator = "-"
}
data "azurecaf_name" "avd_app" {
name = var.stack
resource_type = "azurerm_resource_group"
prefixes = var.name_prefix == "" ? ["vda"] : [local.name_prefix, "vda"]
suffixes = compact([var.client_name, var.location_short, var.environment, local.name_suffix])
use_slug = false
clean_input = true
separator = "-"
}