Skip to content
Advertisement

What is the best way to link two ARM template in Azure

  1. HDI cluster on template2:-
template.json
parameters.sjon
deploy.sh
  1. Azure VM on template1:-
template.json
parameters.sjon
deploy.sh

I am able to deploy 1 and 2 separately without any issues.

  1. Now I want to get the HDI cluster headnode IP and use in property file on Azure VM.

How can I achieve 3 and deploy 1,2,3 in an order at one go?

Advertisement

Answer

According to your scenario, you could use the following steps.

1.Deploy template 2.

2.After template 2 deploy successful, get parameters you want from HDI cluster and pass parameters to template 1.

3.Deploy template 1.

Note: If you want to use this way, your template should have different name.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement