Not sure what you are trying to achieve, but maybe a form constraint or approval policies can achieve what you desire.
Form Constraint: Navigate to Service Broker, Content, right-click the three dots in front of the Cloud Template, Customize form. If you have a disk size field, then you can define Constraints, like Maximum value.
Approval Policy: using Criteria such as Disk Capacity.