Write ARM template