Hi, The best way for any of these scenarios no matter even the service is to deploy your resources as IaC (Infrastructure as Code). Not only makes your configurations consistent but also allows you to have dev, test and acceptance environments. I would recommend Azure Bicep for Iac.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.