Hi @Catalyph ,
to set the DNS server config of a vNet in Azure you can use this script:
$vNetRGname = "<name of resourcegroup>"
$vNet = "<name of vNet>"
$vNet = Get-AzVirtualNetwork -ResourceGroupName $vNetRGname -name $vNet
# Replace the IPs with your DNS server IPs here
$array = @("10.0.0.4" "10.0.0.5")
$newObject = New-Object -type PSObject -Property @{"DnsServers" = $array}
$vNet.DhcpOptions = $newObject
$vNet | Set-AzVirtualNetwork
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten