From 2a5a796d7301c497c4c491ec1d125f91a23aad6f Mon Sep 17 00:00:00 2001 From: Charlie Voiselle <464492+angrycub@users.noreply.github.com> Date: Wed, 4 Dec 2024 17:41:41 -0500 Subject: [PATCH] remove backtick from valid password characters Since backticks are the PowerShell escape character, they are silently consumed. To actually use backticks, they would need to be doubled when used. --- examples/templates/azure-windows/main.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/templates/azure-windows/main.tf b/examples/templates/azure-windows/main.tf index e494b037f7348..6b8b00ccca079 100644 --- a/examples/templates/azure-windows/main.tf +++ b/examples/templates/azure-windows/main.tf @@ -65,9 +65,9 @@ resource "random_password" "admin_password" { length = 16 special = true # https://docs.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/password-must-meet-complexity-requirements#reference - # we remove characters that require special handling in XML, as this is how we pass it to the VM - # namely: <>&'" - override_special = "~!@#$%^*_-+=`|\\(){}[]:;,.?/" + # we remove characters that require special handling in XML, as this is how we pass it to the VM; we also remove the powershell escape character + # namely: <>&'`" + override_special = "~!@#$%^*_-+=|\\(){}[]:;,.?/" } locals {