export my nsg rules to csv file and backup/restore the files RRS feed

  • Question

  • I have an issue : 

    I want to export my nsg to csv files in order to have a back-up of my rules.

    I also want to import them in my Azure resource group.

    What script should I have to perform that ?

    Thank you very much

    Thursday, January 16, 2020 3:04 PM

All replies

  • I do not believe we have any official documentation about exporting / importing NSGs to a CSV, but you can find a lot of examples of how others have done this, like this one on StackOverflow
    Thursday, January 16, 2020 11:59 PM
  • Hello,


    If you think your question has been answered, please click "Mark as Answer" if just helped click "Vote as helpful". This can be beneficial to other community members reading this forum thread.


    Best regards


    Tuesday, January 28, 2020 7:19 AM