Forum Discussion
Multiple Azure apps deployment
Hi,
I have multiple Azure apps with their functions in the same solution, can I use one ARM template to deploy all of them, within the same Azure DevOps pipeline and for the same resource group?
Or what's the best practice? Thanks,
1 Reply
- Brandon_TahedlCopper Contributor
Hi there,
I think it's mostly up to you as long as you don't care that re-deploying could do all of the apps. Also, there are some limitations to be mindful of:"Template limits
Limit the size of your template to 4 MB. The 4-MB limit applies to the final state of the template after it has been expanded with iterative resource definitions, and values for variables and parameters. The parameter file is also limited to 4 MB. You may get an error with a template or parameter file of less than 4 MB if the total size of the request is too large. For more information about how to simplify your template to avoid a large request, see Resolve errors for job size exceeded.You're also limited to:
256 parameters
256 variables
800 resources (including copy count)
64 output values
10 unique locations per subscription/tenant/management group scope
24,576 characters in a template expression
You can exceed some template limits by using a nested template. For more information, see Using linked and nested templates when deploying Azure resources. To reduce the number of parameters, variables, or outputs, you can combine several values into an object. For more information, see Objects as parameters."
From: https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/best-practices