last sync: 2021-May-14 16:08:21 UTC

Azure Policy Initiative

[Deprecated]: Audit Windows VMs that have not restarted within the specified number of days

Name[Deprecated]: Audit Windows VMs that have not restarted within the specified number of days
Azure Portal
Idb8b5b0a8-b809-4e5d-8082-382c686e35b7
Version1.0.0-deprecated
details on versioning
CategoryGuest Configuration
Microsoft docs
DescriptionThis initiative deploys the policy requirements and audits Windows virtual machines that have not restarted within the specified number of days. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol
TypeBuiltIn
DeprecatedTrue
PreviewFalse
History
Date/Time (UTC ymd) (i) Changes
2020-09-09 11:24:08 Name change: 'Audit Windows VMs that have not restarted within the specified number of days' to '[Deprecated]: Audit Windows VMs that have not restarted within the specified number of days'
2020-06-11 19:46:04 Name change: '[Preview]: Audit Windows VMs that have not restarted within the specified number of days' to 'Audit Windows VMs that have not restarted within the specified number of days'
Policy count Total Policies: 2
Builtin Policies: 2
Static Policies: 0
Policy used
Policy DisplayName Policy Id Category Effect State
[Deprecated]: Deploy prerequisites to audit Windows VMs that have not restarted within the specified number of days f4b245d4-46c9-42be-9b1a-49e2b5b94194 Guest Configuration Fixed: deployIfNotExists Deprecated
[Deprecated]: Show audit results from Windows VMs that have not restarted within the specified number of days 7e84ba44-6d03-46fd-950e-5efa5a1112fa Guest Configuration Fixed: auditIfNotExists Deprecated
JSON
{
  "properties": {
  "displayName": "[Deprecated]: Audit Windows VMs that have not restarted within the specified number of days",
    "policyType": "BuiltIn",
    "description": "This initiative deploys the policy requirements and audits Windows virtual machines that have not restarted within the specified number of days. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
    "metadata": {
      "version": "1.0.0-deprecated",
      "category": "Guest Configuration",
      "deprecated": true
    },
    "parameters": {
      "NumberOfDays": {
        "type": "String",
        "metadata": {
        "displayName": "[Deprecated]: Number of days",
          "description": "The number of days without restart until the machine is considered non-compliant"
        },
        "defaultValue": "12"
      }
    },
    "policyDefinitions": [
      {
        "policyDefinitionReferenceId": "Deploy_MachineLastBootUpTime",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/f4b245d4-46c9-42be-9b1a-49e2b5b94194",
        "parameters": {
          "NumberOfDays": {
          "value": "[parameters('NumberOfDays')]"
          }
        }
      },
      {
        "policyDefinitionReferenceId": "Audit_MachineLastBootUpTime",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/7e84ba44-6d03-46fd-950e-5efa5a1112fa"
      }
    ]
  },
  "id": "/providers/Microsoft.Authorization/policySetDefinitions/b8b5b0a8-b809-4e5d-8082-382c686e35b7",
  "type": "Microsoft.Authorization/policySetDefinitions",
  "name": "b8b5b0a8-b809-4e5d-8082-382c686e35b7"
}