Skip to content

Instantly share code, notes, and snippets.

@mikerodionov
Created September 8, 2022 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikerodionov/d625fecacc1788afaa289deefd748839 to your computer and use it in GitHub Desktop.
Save mikerodionov/d625fecacc1788afaa289deefd748839 to your computer and use it in GitHub Desktop.
Update VMSS DNS
# Update DNS - set/add
az vmss update -n vmss-name --set virtualMachineProfile.networkProfile.networkInterfaceConfigurations[0].dnsSettings='{"dnsServers":["10.10.10.1", "10.10.10.2"]}' --resource-group rg-name
# Verify
az vmss show --resource-group rg-name --name vmss-name | grep 10.10.10.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment