templates/3-Images-Linux.json

{
    "anyOf": [
        {
            "allOf": [
                {
                    "field": "type",
                    "equals": "Microsoft.Compute/virtualMachines"
                },
                {
                    "anyOf": [
                        {
                            "field": "Microsoft.Compute/imagePublisher",
                            "in": [
                                "microsoft-aks",
                                "qubole-inc",
                                "datastax",
                                "couchbase",
                                "scalegrid",
                                "checkpoint",
                                "paloaltonetworks",
                                "debian",
                                "credativ"
                            ]
                        },
                        {
                            "allOf": [
                                {
                                    "field": "Microsoft.Compute/imagePublisher",
                                    "equals": "OpenLogic"
                                },
                                {
                                    "field": "Microsoft.Compute/imageSKU",
                                    "notLike": "6*"
                                }
                            ]
                        },
                        {
                            "allOf": [
                                {
                                    "field": "Microsoft.Compute/imagePublisher",
                                    "equals": "Oracle"
                                },
                                {
                                    "field": "Microsoft.Compute/imageSKU",
                                    "notLike": "6*"
                                }
                            ]
                        },
                        {
                            "allOf": [
                                {
                                    "field": "Microsoft.Compute/imagePublisher",
                                    "equals": "RedHat"
                                },
                                {
                                    "field": "Microsoft.Compute/imageSKU",
                                    "notLike": "6*"
                                }
                            ]
                        },
                        {
                            "allOf": [
                                {
                                    "field": "Microsoft.Compute/imagePublisher",
                                    "equals": "center-for-internet-security-inc"
                                },
                                {
                                    "field": "Microsoft.Compute/imageOffer",
                                    "notLike": "cis-windows*"
                                }
                            ]
                        },
                        {
                            "allOf": [
                                {
                                    "field": "Microsoft.Compute/imagePublisher",
                                    "equals": "Suse"
                                },
                                {
                                    "field": "Microsoft.Compute/imageSKU",
                                    "notLike": "11*"
                                }
                            ]
                        },
                        {
                            "allOf": [
                                {
                                    "field": "Microsoft.Compute/imagePublisher",
                                    "equals": "Canonical"
                                },
                                {
                                    "field": "Microsoft.Compute/imageSKU",
                                    "notLike": "12*"
                                }
                            ]
                        },
                        {
                            "allOf": [
                                {
                                    "field": "Microsoft.Compute/imagePublisher",
                                    "equals": "microsoft-dsvm"
                                },
                                {
                                    "field": "Microsoft.Compute/imageOffer",
                                    "notLike": "dsvm-win*"
                                }
                            ]
                        },
                        {
                            "allOf": [
                                {
                                    "field": "Microsoft.Compute/imagePublisher",
                                    "equals": "cloudera"
                                },
                                {
                                    "field": "Microsoft.Compute/imageSKU",
                                    "notLike": "6*"
                                }
                            ]
                        },
                        {
                            "allOf": [
                                {
                                    "field": "Microsoft.Compute/imagePublisher",
                                    "equals": "microsoft-ads"
                                },
                                {
                                    "field": "Microsoft.Compute/imageOffer",
                                    "like": "linux*"
                                }
                            ]
                        },
                        {
                            "allOf": [
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration",
                                            "exists": true
                                        },
                                        {
                                            "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
                                            "like": "Linux*"
                                        }
                                    ]
                                },
                                {
                                    "anyOf": [
                                        {
                                            "field": "Microsoft.Compute/imagePublisher",
                                            "exists": false
                                        },
                                        {
                                            "field": "Microsoft.Compute/imagePublisher",
                                            "notIn": [
                                                "OpenLogic",
                                                "RedHat",
                                                "credativ",
                                                "Suse",
                                                "Canonical",
                                                "microsoft-dsvm",
                                                "cloudera",
                                                "microsoft-ads",
                                                "center-for-internet-security-inc",
                                                "Oracle",
                                                "AzureDatabricks",
                                                "azureopenshift"
                                            ]
                                        }
                                    ]
                                }
                            ]
                        }
                    ]
                }
            ]
        },
        {
            "allOf": [
                {
                    "value": "[parameters('IncludeArcMachines')]",
                    "equals": true
                },
                {
                    "anyOf": [
                        {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.HybridCompute/machines"
                                },
                                {
                                    "field": "Microsoft.HybridCompute/imageOffer",
                                    "like": "linux*"
                                }
                            ]
                        },
                        {
                            "allOf": [
                                {
                                    "field": "type",
                                    "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines"
                                },
                                {
                                    "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType",
                                    "like": "linux*"
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ]
}