Skip to content

Recursive references or co-dependent resources? #3885

Answered by brwilkinson
jsblake asked this question in Ideas
Discussion options

You must be logged in to vote

This is the solution that I have found to be 100% reliable for deploying 2 domain controllers in a new vnet.

I know you mentioned only 1 DC, so yours should be easier, however it may give you some ideas.

This is all just using Vnet DNS, nothing on any NICS.

https://github.com/brwilkinson/AzureDeploymentFramework/blob/60f2a6721034bacc441ad42a6c4701afaffe99f4/ADF/bicep/01-dp-rg-ALLRG.bicep#L486

Set vnet dns to

              "[variables('DC1PrivateIPAddress')]",
              "[variables('AzureDNS')]"
 
Deploy DC1

Set vnet dns to

              "[variables('DC1PrivateIPAddress')]",
 
Deploy DC2

Set vnet dns to

              "[variables('DC1PrivateIPAddress')]",
              "[variables('DC2P…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@brwilkinson
Comment options

@brwilkinson
Comment options

@jsblake
Comment options

@brwilkinson
Comment options

@jsblake
Comment options

Answer selected by jsblake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants