hi all, I'm kicking the tires on Azure and using the ARM technology (new portal) to test infrastructure deployment. I'm having trouble adding two DNS servers to a single Virtual Network. With the ARM template, I'm able to build the virtual network fine and add a single entry (one public DNS Server) IP address fine to the virtual network using the ARM technology but when it comes to adding two entries, I cannot seem to make it work.
- Can someone send me an example of their resources and parameters section of their Deployment Template for VirtualNetwork for dhcoptions (if you put your DNS servers in the variables section, please include that). If you are using parameter file, can you include a snippet for the section for multiple DNS servers? Thanks everyone
I think if I see an example then I should be fine and I believe it is how I'm building the array in the parameter file but when I see a working example, that would be great. I tried browsing the quickstart templates on GitHub which help me about 80% the way but I couldn't quite find this scenario. Down below is a snippet from my deployment template file and separate parameters file that allows me to add a single DNS public IP address to the VNET. I've commented out my last attempt of trying to add multiple DNS ip addresses to the vnet (although I've tried many different combinations with no luck). (fyi: I'm deploying using VS 2015)
Thanks everyone.
-my parameter file (I call this in with the deployment template)
"DNSServerAddresses": {
"value": "208.67.220.220"
//"value": [ "208.67.220.220", "208.67.222.222" ]
}
-deployment template, parameters section
"DNSServerAddresses": {"type": "string", //"type": "array","metadata": {"description": "The DNS address(es) of the DNS Server(s) used by the VNET" } }
-deployment template, resources section under virtualNetworks
"dhcpOptions": {"dnsServers": [ "[parameters('DNSServerAddresses')]" ] },
Thanks in advance!