<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Function on Ajo Mathew</title><link>https://blog.ajomathew.dev/tags/function/</link><description>Recent content in Function on Ajo Mathew</description><generator>Hugo -- gohugo.io</generator><language>en-US</language><lastBuildDate>Sat, 30 Oct 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://blog.ajomathew.dev/tags/function/rss.xml" rel="self" type="application/rss+xml"/><item><title>Azure ARM template copy function - Using Objects as parameters with multiple resource properties</title><link>https://blog.ajomathew.dev/posts/2021-10-30-azure-arm-copy/</link><pubDate>Sat, 30 Oct 2021 00:00:00 +0000</pubDate><guid>https://blog.ajomathew.dev/posts/2021-10-30-azure-arm-copy/</guid><description>&lt;p&gt;I was following this &lt;a href="https://docs.microsoft.com/en-us/azure/architecture/guide/azure-resource-manager/advanced-templates/objects-as-parameters" target="_blank" rel="noopener"&gt;Azure Document&lt;/a&gt; to try out Azure ARM copy operation to loop through properties of an azure resource. Looks like the page was not updated correctly so I raised an issue with the &lt;a href="https://docs.microsoft.com/en-us/azure/architecture/guide/azure-resource-manager/advanced-templates/objects-as-parameters" target="_blank" rel="noopener"&gt;MS Docs github page&lt;/a&gt;. This was just minor change - where NSG properties were not correctly reprsented in that example document.
You can follow below correct ARM templates.&lt;/p&gt;
&lt;h3 id="arm-template"&gt;ARM template&lt;/h3&gt;
&lt;p&gt;{% gist 659a893a3a941d72f824e0f703c13fda %}&lt;/p&gt;
&lt;h3 id="parameter"&gt;Parameter&lt;/h3&gt;
&lt;p&gt;{% gist c4bcdc862196719e79c010d1d61dc4d9 %}&lt;/p&gt;</description></item></channel></rss>