title: Export and import Inbound Security Rules in Microsoft Azure
body: <p>I've to Delete an existing <code>Virtual Machine</code> in <code>Azure</code> and the <code>Network Security Group</code> associated with the <code>VM</code>. But I need to store the <code>Inbound Security Rules</code> of the <code>Network Security Group</code> that I'm gonna Delete. </p>
  
  <p>Is there any way to export the <code>Inbound Security Rules</code> as a template to some sort of <code>JSON</code>, <code>CSV</code> or any other format and then I can apply it to other <code>Network Security Group</code> by Importing the <code>Inbound Security Rules</code> from the template? </p>