Policy: Azure > Compute > Virtual Machine > Approved > Image > Rules
An OCL policy to define the status of Images based on fields in the image reference data.
Standard OCL syntax may be used.  Allowed actions are:   ENABLED     - Images that match should be considered "enabled"   DEPRECATED  - Images that match should be considered "deprecated"   DISABLED    - Images that match should be considered "disabled" and may not be used
Examples:   ENABLED *    # Allow all images published   DEPRECATED $.publisher:MicrosoftWindowsServer $.sku:2016-Datacenter $.offer:WindowsServer # Windows Server 2016 images are deprecated.  New vms may not use these Images   DISABLED $.publisher:MicrosoftWindowsServer $.sku:/^2012-/ $.offer:WindowsServer # Windows Server 2012 images are disabled.
Targets
This policy targets the following resource types:
Primary Policy
This policy is used with the following primary policy:
Policy Packs
This policy setting is used by the following policy packs:
Policy Specification
| Schema Type |  | 
|---|---|
| Default |  | 
Category
In Your Workspace
Developers
- tmod:@turbot/turbot#/control/categories/resourceApproved
 
- tmod:@turbot/azure-compute#/policy/types/virtualMachineApprovedImageRules
 
- turbot graphql policy-type --id "tmod:@turbot/azure-compute#/policy/types/virtualMachineApprovedImageRules"
- turbot graphql policy-settings --filter "policyTypeId:tmod:@turbot/azure-compute#/policy/types/virtualMachineApprovedImageRules"
 Get Policy TypeGet Policy Settings