зеркало из
1
0
Форкнуть 0
* Add AVD resources

* Update README

* Revert unintended change
This commit is contained in:
Matias Piercamilli 2024-03-19 15:33:43 +01:00 коммит произвёл GitHub
Родитель 2c11df5b15
Коммит bc7fc58818
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
4 изменённых файлов: 124 добавлений и 0 удалений

Просмотреть файл

@ -354,6 +354,10 @@ No modules.
| <a name="output_unique-seed"></a> [unique-seed](#output\_unique-seed) | n/a |
| <a name="output_user_assigned_identity"></a> [user\_assigned\_identity](#output\_user\_assigned\_identity) | User Assigned Identity |
| <a name="output_validation"></a> [validation](#output\_validation) | n/a |
| <a name="output_virtual_desktop_application_group"></a> [virtual\_desktop\_application\_group](#output\_virtual\_desktop\_application\_group) | Virtual Desktop Application Group |
| <a name="output_virtual_desktop_host_pool"></a> [virtual\_desktop\_host\_pool](#output\_virtual\_desktop\_host\_pool) | Virtual Desktop Host Pool |
| <a name="output_virtual_desktop_scaling_plan"></a> [virtual\_desktop\_scaling\_plan](#output\_virtual\_desktop\_scaling\_plan) | Virtual Desktop Scaling Plan |
| <a name="output_virtual_desktop_workspace"></a> [virtual\_desktop\_workspace](#output\_virtual\_desktop\_workspace) | Virtual Desktop Workspace |
| <a name="output_virtual_machine"></a> [virtual\_machine](#output\_virtual\_machine) | Virtual Machine |
| <a name="output_virtual_machine_extension"></a> [virtual\_machine\_extension](#output\_virtual\_machine\_extension) | Virtual Machine Extension |
| <a name="output_virtual_machine_scale_set"></a> [virtual\_machine\_scale\_set](#output\_virtual\_machine\_scale\_set) | Virtual Machine Scale Set |

56
main.tf
Просмотреть файл

@ -2346,6 +2346,46 @@ locals {
scope = "resourceGroup"
regex = "^[a-zA-Z0-9-_]+$"
}
virtual_desktop_application_group = {
name = substr(join("-", compact([local.prefix, "vdag", local.suffix])), 0, 63)
name_unique = substr(join("-", compact([local.prefix, "vdag", local.suffix_unique])), 0, 63)
dashes = true
slug = "vdag"
min_length = 3
max_length = 63
scope = "resourceGroup"
regex = "^[a-zA-Z0-9][a-zA-Z0-9-.]+[a-zA-Z0-9_]$"
}
virtual_desktop_host_pool = {
name = substr(join("-", compact([local.prefix, "vdpool", local.suffix])), 0, 63)
name_unique = substr(join("-", compact([local.prefix, "vdpool", local.suffix_unique])), 0, 63)
dashes = true
slug = "vdpool"
min_length = 3
max_length = 63
scope = "resourceGroup"
regex = "^[a-zA-Z0-9][a-zA-Z0-9-.]+[a-zA-Z0-9_]$"
}
virtual_desktop_scaling_plan = {
name = substr(join("-", compact([local.prefix, "vdscaling", local.suffix])), 0, 63)
name_unique = substr(join("-", compact([local.prefix, "vdscaling", local.suffix_unique])), 0, 63)
dashes = true
slug = "vdscaling"
min_length = 3
max_length = 63
scope = "resourceGroup"
regex = "^[a-zA-Z0-9][a-zA-Z0-9-.]+[a-zA-Z0-9_]$"
}
virtual_desktop_workspace = {
name = substr(join("-", compact([local.prefix, "vdws", local.suffix])), 0, 63)
name_unique = substr(join("-", compact([local.prefix, "vdws", local.suffix_unique])), 0, 63)
dashes = true
slug = "vdws"
min_length = 3
max_length = 63
scope = "resourceGroup"
regex = "^[a-zA-Z0-9][a-zA-Z0-9-.]+[a-zA-Z0-9_]$"
}
virtual_machine = {
name = substr(join("-", compact([local.prefix, "vm", local.suffix])), 0, 15)
name_unique = substr(join("-", compact([local.prefix, "vm", local.suffix_unique])), 0, 15)
@ -3382,6 +3422,22 @@ locals {
valid_name = length(regexall(local.az.user_assigned_identity.regex, local.az.user_assigned_identity.name)) > 0 && length(local.az.user_assigned_identity.name) > local.az.user_assigned_identity.min_length
valid_name_unique = length(regexall(local.az.user_assigned_identity.regex, local.az.user_assigned_identity.name_unique)) > 0
}
virtual_desktop_application_group = {
valid_name = length(regexall(local.az.virtual_desktop_application_group.regex, local.az.virtual_desktop_application_group.name)) > 0 && length(local.az.virtual_desktop_application_group.name) > local.az.virtual_desktop_application_group.min_length
valid_name_unique = length(regexall(local.az.virtual_desktop_application_group.regex, local.az.virtual_desktop_application_group.name_unique)) > 0
}
virtual_desktop_host_pool = {
valid_name = length(regexall(local.az.virtual_desktop_host_pool.regex, local.az.virtual_desktop_host_pool.name)) > 0 && length(local.az.virtual_desktop_host_pool.name) > local.az.virtual_desktop_host_pool.min_length
valid_name_unique = length(regexall(local.az.virtual_desktop_host_pool.regex, local.az.virtual_desktop_host_pool.name_unique)) > 0
}
virtual_desktop_scaling_plan = {
valid_name = length(regexall(local.az.virtual_desktop_scaling_plan.regex, local.az.virtual_desktop_scaling_plan.name)) > 0 && length(local.az.virtual_desktop_scaling_plan.name) > local.az.virtual_desktop_scaling_plan.min_length
valid_name_unique = length(regexall(local.az.virtual_desktop_scaling_plan.regex, local.az.virtual_desktop_scaling_plan.name_unique)) > 0
}
virtual_desktop_workspace = {
valid_name = length(regexall(local.az.virtual_desktop_workspace.regex, local.az.virtual_desktop_workspace.name)) > 0 && length(local.az.virtual_desktop_workspace.name) > local.az.virtual_desktop_workspace.min_length
valid_name_unique = length(regexall(local.az.virtual_desktop_workspace.regex, local.az.virtual_desktop_workspace.name_unique)) > 0
}
virtual_machine = {
valid_name = length(regexall(local.az.virtual_machine.regex, local.az.virtual_machine.name)) > 0 && length(local.az.virtual_machine.name) > local.az.virtual_machine.min_length
valid_name_unique = length(regexall(local.az.virtual_machine.regex, local.az.virtual_machine.name_unique)) > 0

Просмотреть файл

@ -1161,6 +1161,26 @@ output "user_assigned_identity" {
description = "User Assigned Identity"
}
output "virtual_desktop_application_group" {
value = local.az.virtual_desktop_application_group
description = "Virtual Desktop Application Group"
}
output "virtual_desktop_host_pool" {
value = local.az.virtual_desktop_host_pool
description = "Virtual Desktop Host Pool"
}
output "virtual_desktop_scaling_plan" {
value = local.az.virtual_desktop_scaling_plan
description = "Virtual Desktop Scaling Plan"
}
output "virtual_desktop_workspace" {
value = local.az.virtual_desktop_workspace
description = "Virtual Desktop Workspace"
}
output "virtual_machine" {
value = local.az.virtual_machine
description = "Virtual Machine"

Просмотреть файл

@ -2188,6 +2188,50 @@
"slug": "uai",
"dashes": true
},
{
"name": "virtual_desktop_application_group",
"length": {
"min": 3,
"max": 63
},
"regex": "^(?=.{1,63}$)[a-zA-Z0-9][a-zA-Z0-9-.]+[a-zA-Z0-9_]$",
"scope": "resourceGroup",
"slug": "vdag",
"dashes": true
},
{
"name": "virtual_desktop_host_pool",
"length": {
"min": 3,
"max": 63
},
"regex": "^(?=.{1,63}$)[a-zA-Z0-9][a-zA-Z0-9-.]+[a-zA-Z0-9_]$",
"scope": "resourceGroup",
"slug": "vdpool",
"dashes": true
},
{
"name": "virtual_desktop_scaling_plan",
"length": {
"min": 3,
"max": 63
},
"regex": "^(?=.{1,63}$)[a-zA-Z0-9][a-zA-Z0-9-.]+[a-zA-Z0-9_]$",
"scope": "resourceGroup",
"slug": "vdscaling",
"dashes": true
},
{
"name": "virtual_desktop_workspace",
"length": {
"min": 3,
"max": 63
},
"regex": "^(?=.{1,63}$)[a-zA-Z0-9][a-zA-Z0-9-.]+[a-zA-Z0-9_]$",
"scope": "resourceGroup",
"slug": "vdws",
"dashes": true
},
{
"name": "virtual_machine",
"length": {