diff --git a/deployments/w11-23h2.ps1 b/deployments/w11-23h2.ps1 index 57e381c..782bbec 100644 --- a/deployments/w11-23h2.ps1 +++ b/deployments/w11-23h2.ps1 @@ -33,7 +33,14 @@ $NSGRuleName = 'apsdRDPRule' $PublicIPAddressName = 'APSD-WC-pip' $SubnetAddressPrefix = '192.168.77.0/24' $VNetAddressPrefix = '192.168.0.0/16' -$DNSNameLabel = 'apsdwc' + +# Generate DNS name +# Generate a 10 characters string for the DNS name +$characters = 'abcdefghijklmnopqrstuvwxyz' +$randomString = -join ($characters.ToCharArray() | Get-Random -Count 10) + +# Assign the string to the variable +$DNSNameLabel = $randomString # Logs $LogsDate = Get-Date -format dd-MM-yyyy diff --git a/deployments/ws-2022.ps1 b/deployments/ws-2022.ps1 index ce7f8d8..b05d462 100644 --- a/deployments/ws-2022.ps1 +++ b/deployments/ws-2022.ps1 @@ -33,7 +33,14 @@ $NSGRuleName = 'apsdRDPRule' $PublicIPAddressName = 'APSD-WS-pip' $SubnetAddressPrefix = '192.168.77.0/24' $VNetAddressPrefix = '192.168.0.0/16' -$DNSNameLabel = 'apsdws' + +# Generate DNS name +# Generate a 10 characters string for the DNS name +$characters = 'abcdefghijklmnopqrstuvwxyz' +$randomString = -join ($characters.ToCharArray() | Get-Random -Count 10) + +# Assign the string to the variable +$DNSNameLabel = $randomString # Logs $LogsDate = Get-Date -format dd-MM-yyyy