Moodle
Moodle copied to clipboard
Support for Custom Subnets
Hi Team,
I have been trying to work out how to implement support for Custom Subnets within a Custom Vnet.
This is primarily for users who would work within brownfield sites and have to follow strict networking guidelines.
I've tried a couple of unsuccessful approaches so far. My current thinking is to implement all the network/subnet information into a networking object similar to moodleCommon which can then be called from the nested templates.
Can anyone share any tips or point me in the direction of a template that has implemented something similar?
Chris,
(Edited the mangled e-mail headers out) I've pinged our Networking+ARM expert around this and the ask is to clarify / elaborate on your request please. Are you trying to templatize multiple subnets within a VNET given specific requirements/criteria? Possible to elaborate on the criteria?
I think I may have figured this out. 😃
I created a customSubnets object in the parameters on the azuredeploy.json file, added some conditions to some of the network oriented moodlecommon variables, and then lastly made a few tweaks to network.json and network-subnets.json to support conditions.
Let me issue a PR and you can see what I mean. If you want I can also fork the LAMP repo and add the changes there too.
https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-deploy-what-if is a godsend for testing this stuff.