Search code examples
azureazure-rm-template

How can I export an action group to an ARM template in Azure?


Currently I have an availability test that pings an API to check if it's responsive. If it is down, I send an email to myself via an action group.

What I want to do is create an ARM template for this, so new projects in the future can behave the same way...by emailing me if the API is down.

I was able to export the availability test to JSON, but I cannot find where to export the action group to JSON so I can set up an ARM template. How would I do this? Is it even possible or does it need to be done manually?


Solution

  • It seems that it's not supporting for exporting Action Groups as ARM Templates now. You could vote up this User Voice to promote this feature to achieve.

    Also, as 4c74356b41 said, when you create an action group with a Resource Manager template, you could go to your_resource_group and click Show hidden types you may get the resource which you created before.

    Then click your_Action_Group and Export template, download it.

    enter image description here

    Hope it helps you.