Bylaw

Gallery › Guest Configuration › Azure built-in policies

[Deprecated]: Audit Linux VMs that do not have the specified applications installed

Converted Initiative Version 1.1.0-deprecated Deprecated

This initiative deploys the policy requirements and audits Linux virtual machines that do not have the specified applications installed. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol

ConvertTo-Bylaw converted this initiative, and proved that the file compiles back to the same definition.

Azure Policy JSONInstalledApplicationLinux.json · 44 lines
{
  "properties": {
    "displayName": "[Deprecated]: Audit Linux VMs that do not have the specified applications installed",
    "policyType": "BuiltIn",
    "description": "This initiative deploys the policy requirements and audits Linux virtual machines that do not have the specified applications installed. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
    "metadata": {
      "version": "1.1.0-deprecated",
      "category": "Guest Configuration",
      "deprecated": true
    },
    "version": "1.1.0",
    "parameters": {
      "ApplicationName": {
        "type": "string",
        "metadata": {
          "displayName": "Application names",
          "description": "A semicolon-separated list of the names of the applications that should be installed. e.g. 'python; powershell'"
        }
      }
    },
    "policyDefinitions": [
      {
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/4d1c04de-2172-403f-901b-90608c35c721",
        "definitionVersion": "4.*.*",
        "policyDefinitionReferenceId": "Deploy_InstalledApplicationLinux",
        "parameters": {
          "ApplicationName": {
            "value": "[parameters('ApplicationName')]"
          }
        }
      },
      {
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/fee5cb2b-9d9b-410e-afe3-2902d90d0004",
        "definitionVersion": "4.*.*",
        "policyDefinitionReferenceId": "Audit_InstalledApplicationLinux"
      }
    ],
    "versions": [
      "1.1.0"
    ]
  },
  "id": "/providers/Microsoft.Authorization/policySetDefinitions/c937dcb4-4398-4b39-8d63-4a6be432252e",
  "name": "c937dcb4-4398-4b39-8d63-4a6be432252e"
}
Bylawc937dcb4-4398-4b39-8d63-4a6be432252e.bylaw.ps1 · 34 lines
# Converted from InstalledApplicationLinux.json by ConvertTo-Bylaw.
Initiative 'c937dcb4-4398-4b39-8d63-4a6be432252e' {

    Properties @{
        DisplayName   = '[Deprecated]: Audit Linux VMs that do not have the specified applications installed'
        Description   = 'This initiative deploys the policy requirements and audits Linux virtual machines that do not have the specified applications installed. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol'
        Version       = '1.1.0-deprecated'
        Category      = 'Guest Configuration'
        Deprecated    = $true
        PolicyVersion = '1.1.0'
    }

    Parameter ApplicationName @{
        Type        = 'string'
        DisplayName = 'Application names'
        Description = 'A semicolon-separated list of the names of the applications that should be installed. e.g. ''python; powershell'''
        JsonName    = 'ApplicationName'
    }

    PolicyDefinition @{
        Id          = '4d1c04de-2172-403f-901b-90608c35c721'
        ReferenceId = 'Deploy_InstalledApplicationLinux'
        Version     = '4.*.*'
        Parameters  = @{
            ApplicationName = (Param ApplicationName)
        }
    }

    PolicyDefinition @{
        Id          = 'fee5cb2b-9d9b-410e-afe3-2902d90d0004'
        ReferenceId = 'Audit_InstalledApplicationLinux'
        Version     = '4.*.*'
    }
}

Members (2)

Source: built-in-policies/policySetDefinitions/Guest Configuration/InstalledApplicationLinux.json in Azure/azure-policy, under the MIT licence.