Allow count = 0 for copy in ARM template
Copy command for ARM templates has a paramter called count which determines the number of times it iterates to create the resource. This paramter must take a positive number (not 0). This causes a problem when a template could be reused but the resource that copy applies to is not needed, so the count could be set to 0.
Thanks for the valid suggestion. Your feedback is now open for the user community to upvote which allows us to effectively prioritize your request against our existing feature backlog and also gives us insight into the potential impact of implementing the suggested feature.
Rick Shahid commented
I have run into this restriction as well. It would be a great enhancement to allow copy count to be 0, which would enable reuse of conditional resource deployment in an ARM template