Hi,
Most likely there is some issue with your input. A good way to troubleshoot this is to run your deployment with -WhatIf parameter to see what will be the properties for your resource that you try to create. Otherwise you will have to provide both the exact template and your input parameters.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.