An Azure service that is used to provision Windows and Linux virtual machines.
@Pranith-3606, thank you for reaching out to Microsoft Q&A for this question.
Using Azure Policy, you can follow the steps below to achieve it:
1. If all the Subscriptions are contained within the same Management Group, you may create a policy and save it in that Management Group and assign it to individual subscription based on your requirement. However, if the subscriptions are not contained within the same Management Group, you would have to store the Azure Policy in each subscription.
2. The Azure Policy could contain logic to restrict the size/sku of resource. For example, you may refer to this built-in Azure Policy which restricts the VM SKUs - Allowed virtual machine size SKUs
3. Depending on what is allowed, respective sizes could be selected, and the Policy is assigned to the subscription.
Note that this will cause the resource creation to fail after submission. However, it will not restrict user from selecting the particular Size/SKU in template/parameter.
Please let me know if you have any questions.