Quantcast
Channel: Azure Management Portal forum
Viewing all articles
Browse latest Browse all 4189

Convert a Deployment template.json and parameters.json to AzureRM objects

$
0
0

If I'm given a template.json and a corresponding paramaters.json file, is there a way to generate a single JSON file that has all references resolved & ARM functions evaluated?

E.g., if I have something like below in the first snippet, is there a way to generate a JSON that would have the ARM function fully evaluated to get the second snippet?

{"apiVersion": "2018-10-01","type": "Microsoft.Network/publicIPAddresses","name": "[variables('publicIPAddressName')]","location": "[parameters('location')]","properties": {"publicIPAllocationMethod": "[variables('publicIPAddressType')]","dnsSettings": {"domainNameLabel": "[parameters('dnsLabelPrefix')]"
    }
  }
},


{
  "apiVersion": "2018-10-01","type": "Microsoft.Network/publicIPAddresses","name": "ProdPublicIPAddress","location": "North Europe","properties": {"publicIPAllocationMethod": "Static","dnsSettings": {"domainNameLabel": "Test"
    }
  }
},

Viewing all articles
Browse latest Browse all 4189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>