This article presents a very reliable and practical workaround: (export templates ARM and deploy them with gitlab ci, approaches the problem as if it were an infrastructure as code challenge. https://medium.com/p/3474348cf032