{
	"if": {
		"anyOf": [
			{
				"allOf": [
					{
						"field": "type",
						"equals": "Microsoft.Compute/virtualMachines"
					},
					{
						"field": "Microsoft.Compute/virtualMachines/osDisk.uri",
						"exists": true
					}
				]
			},
			{
				"allOf": [
					{
						"field": "type",
						"equals": "Microsoft.Compute/VirtualMachineScaleSets"
					},
					{
						"anyOf": [
							{
								"field": "Microsoft.Compute/VirtualMachineScaleSets/osDisk.vhdContainers",
								"exists": true
							},
							{
								"field": "Microsoft.Compute/VirtualMachineScaleSets/osdisk.imageUrl",
								"exists": true
							}
						]
					}
				]
			}
		]
	},
	"then": {
		"effect": "deny"
	}
}