1. HDI cluster on template2:-

> 
> 
> ```
> template.json
> parameters.sjon
> deploy.sh
> 
> ```
> 
> 

2. Azure VM on template1:-

> 
> 
> ```
> template.json
> parameters.sjon
> deploy.sh
> 
> ```
> 
> 

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

3. 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?