It’s possible you’ll handle which VM sizes will be put in in your setting utilizing Azure Coverage, in addition to which sizes are prohibited by omission. This Deny coverage will stop VMs from being created with or resized to any occasion that’s not acknowledged in your coverage. The occasion sizes are referred to as SKUs (inventory holding models).
This text demonstrates arrange allowed digital machine measurement SKUs coverage that restricts the deployment of your digital machines based mostly on Standard_B20ms and Standard_B2ms sizes solely.
Go to your subscription and choose Insurance policies underneath Settings.
Go to Assign coverage underneath Assignments.
Choose the proper scope.
In Coverage definitions, seek for Allowed digital machine measurement SKUs.
You may present a Description if you would like. Then click on on Subsequent button.
Within the Parameters tab, choose the specified sizes and click on on Subsequent button.
You may add a Non-compliance message underneath Non-compliance messages tab. Then click on on Evaluation + create.
Click on on Create button. It is possible for you to to see the created coverage within the listing.
After including the coverage, when you find yourself attempting to create a VM you will note a notification like beneath:
While you attempt to choose a measurement in your VM, you’ll be displayed an inventory of obtainable sizes and an inventory od sized blocked by the coverage. You received’t be capable to choose the sized underneath Blocked by Coverage listing.
On this article, you realized implement an allowed digital machine measurement SKUs coverage in Azure. Please use the feedback part when you have any clarification.