azure-resource-manager-schemas/schemas/2021-09-01-preview/Microsoft.Maintenance.json

506 строки
17 KiB
JSON

{
"id": "https://schema.management.azure.com/schemas/2021-09-01-preview/Microsoft.Maintenance.json#",
"title": "Microsoft.Maintenance",
"description": "Microsoft Maintenance Resource Types",
"$schema": "http://json-schema.org/draft-04/schema#",
"resourceDefinitions": {
"maintenanceConfigurations": {
"description": "Microsoft.Maintenance/maintenanceConfigurations",
"properties": {
"apiVersion": {
"enum": [
"2021-09-01-preview"
],
"type": "string"
},
"location": {
"description": "Gets or sets location of the resource",
"type": "string"
},
"name": {
"description": "Maintenance Configuration Name",
"type": "string"
},
"properties": {
"description": "Gets or sets properties of the resource",
"oneOf": [
{
"$ref": "#/definitions/MaintenanceConfigurationProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"tags": {
"description": "Gets or sets tags of the resource",
"oneOf": [
{
"additionalProperties": {
"type": "string"
},
"properties": {},
"type": "object"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"type": {
"enum": [
"Microsoft.Maintenance/maintenanceConfigurations"
],
"type": "string"
}
},
"required": [
"name",
"properties",
"apiVersion",
"type"
],
"type": "object"
}
},
"extension_resourceDefinitions": {
"applyUpdates": {
"description": "Microsoft.Maintenance/applyUpdates",
"properties": {
"apiVersion": {
"enum": [
"2021-09-01-preview"
],
"type": "string"
},
"name": {
"oneOf": [
{
"enum": [
"default"
],
"type": "string"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"type": {
"enum": [
"Microsoft.Maintenance/applyUpdates"
],
"type": "string"
}
},
"required": [
"name",
"apiVersion",
"type"
],
"type": "object"
},
"configurationAssignments": {
"description": "Microsoft.Maintenance/configurationAssignments",
"properties": {
"apiVersion": {
"enum": [
"2021-09-01-preview"
],
"type": "string"
},
"location": {
"description": "Location of the resource",
"type": "string"
},
"name": {
"description": "Configuration assignment name",
"type": "string"
},
"properties": {
"description": "Properties of the configuration assignment",
"oneOf": [
{
"$ref": "#/definitions/ConfigurationAssignmentProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"type": {
"enum": [
"Microsoft.Maintenance/configurationAssignments"
],
"type": "string"
}
},
"required": [
"name",
"properties",
"apiVersion",
"type"
],
"type": "object"
}
},
"definitions": {
"ConfigurationAssignmentProperties": {
"description": "Properties for configuration assignment",
"properties": {
"maintenanceConfigurationId": {
"description": "The maintenance configuration Id",
"type": "string"
},
"resourceId": {
"description": "The unique resourceId",
"type": "string"
}
},
"type": "object"
},
"InputLinuxParameters": {
"description": "Input properties for patching a Linux machine. This property only applies to Guest (InGuestPatch) scope.",
"properties": {
"classificationsToInclude": {
"description": "Classification category of patches to be patched",
"oneOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"packageNameMasksToExclude": {
"description": "Package names to be excluded for patching.",
"oneOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"packageNameMasksToInclude": {
"description": "Package names to be included for patching.",
"oneOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"type": "object"
},
"InputPatchConfiguration": {
"description": "Input configuration for a patch run",
"properties": {
"linuxParameters": {
"description": "Input parameters specific to patching Linux machine. For Windows machines, do not pass this property. This property only applies to Guest (InGuestPatch) scope.",
"oneOf": [
{
"$ref": "#/definitions/InputLinuxParameters"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"rebootSetting": {
"description": "Possible reboot preference as defined by the user based on which it would be decided to reboot the machine or not after the patch operation is completed. This property only applies to Guest (InGuestPatch) scope.",
"oneOf": [
{
"enum": [
"IfRequired",
"Never",
"Always"
],
"type": "string"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"tasks": {
"description": "[Not supported] Tasks information for the Software update configuration.",
"oneOf": [
{
"$ref": "#/definitions/SoftwareUpdateConfigurationTasks"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"windowsParameters": {
"description": "Input parameters specific to patching a Windows machine. For Linux machines, do not pass this property. This property only applies to Guest (InGuestPatch) scope.",
"oneOf": [
{
"$ref": "#/definitions/InputWindowsParameters"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"type": "object"
},
"InputWindowsParameters": {
"description": "Input properties for patching a Windows machine. This property only applies to Guest (InGuestPatch) scope.",
"properties": {
"classificationsToInclude": {
"description": "Classification category of patches to be patched",
"oneOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"excludeKbsRequiringReboot": {
"description": "Exclude patches which need reboot",
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"kbNumbersToExclude": {
"description": "Windows KBID to be excluded for patching.",
"oneOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"kbNumbersToInclude": {
"description": "Windows KBID to be included for patching.",
"oneOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"type": "object"
},
"MaintenanceConfigurationProperties": {
"description": "Properties for maintenance configuration",
"properties": {
"extensionProperties": {
"description": "Gets or sets extensionProperties of the maintenanceConfiguration",
"oneOf": [
{
"additionalProperties": {
"type": "string"
},
"properties": {},
"type": "object"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"installPatches": {
"description": "The input parameters to be passed to the patch run operation. This property only applies to Guest (InGuestPatch) scope.",
"oneOf": [
{
"$ref": "#/definitions/InputPatchConfiguration"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"maintenanceScope": {
"description": "Gets or sets maintenanceScope of the configuration",
"oneOf": [
{
"enum": [
"Host",
"OSImage",
"Extension",
"InGuestPatch",
"SQLDB",
"SQLManagedInstance"
],
"type": "string"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"maintenanceWindow": {
"description": "Definition of a MaintenanceWindow",
"oneOf": [
{
"$ref": "#/definitions/MaintenanceWindow"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"namespace": {
"description": "Gets or sets namespace of the resource",
"type": "string"
},
"visibility": {
"description": "Gets or sets the visibility of the configuration. The default value is 'Custom'",
"oneOf": [
{
"enum": [
"Custom",
"Public"
],
"type": "string"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"type": "object"
},
"MaintenanceWindow": {
"description": "Definition of a MaintenanceWindow",
"properties": {
"duration": {
"description": "Duration of the maintenance window in HH:mm format. If not provided, default value will be used based on maintenance scope provided. Example: 05:00.",
"type": "string"
},
"expirationDateTime": {
"description": "Effective expiration date of the maintenance window in YYYY-MM-DD hh:mm format. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone. Expiration date must be set to a future date. If not provided, it will be set to the maximum datetime 9999-12-31 23:59:59.",
"type": "string"
},
"recurEvery": {
"description": "Rate at which a Maintenance window is expected to recur. The rate can be expressed as daily, weekly, or monthly schedules. Daily schedule are formatted as recurEvery: [Frequency as integer]['Day(s)']. If no frequency is provided, the default frequency is 1. Daily schedule examples are recurEvery: Day, recurEvery: 3Days. Weekly schedule are formatted as recurEvery: [Frequency as integer]['Week(s)'] [Optional comma separated list of weekdays Monday-Sunday]. Weekly schedule examples are recurEvery: 3Weeks, recurEvery: Week Saturday,Sunday. Monthly schedules are formatted as [Frequency as integer]['Month(s)'] [Comma separated list of month days] or [Frequency as integer]['Month(s)'] [Week of Month (First, Second, Third, Fourth, Last)] [Weekday Monday-Sunday] [Optional Offset(No. of days)]. Offset value must be between -6 to 6 inclusive. Monthly schedule examples are recurEvery: Month, recurEvery: 2Months, recurEvery: Month day23,day24, recurEvery: Month Last Sunday, recurEvery: Month Fourth Monday, recurEvery: Month Last Sunday Offset-3, recurEvery: Month Third Sunday Offset6.",
"type": "string"
},
"startDateTime": {
"description": "Effective start date of the maintenance window in YYYY-MM-DD hh:mm format. The start date can be set to either the current date or future date. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone.",
"type": "string"
},
"timeZone": {
"description": "Name of the timezone. List of timezones can be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. Example: Pacific Standard Time, UTC, W. Europe Standard Time, Korea Standard Time, Cen. Australia Standard Time.",
"type": "string"
}
},
"type": "object"
},
"SoftwareUpdateConfigurationTasks": {
"description": "[Not supported] Task properties of the software update configuration.",
"properties": {
"postTasks": {
"description": "[Not supported] List of post tasks. e.g. [{'source' :'runbook', 'taskScope': 'Resource', 'parameters': { 'arg1': 'value1'}}]",
"oneOf": [
{
"items": {
"$ref": "#/definitions/TaskProperties"
},
"type": "array"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"preTasks": {
"description": "[Not supported] List of pre tasks. e.g. [{'source' :'runbook', 'taskScope': 'Global', 'parameters': { 'arg1': 'value1'}}]",
"oneOf": [
{
"items": {
"$ref": "#/definitions/TaskProperties"
},
"type": "array"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"type": "object"
},
"TaskProperties": {
"description": "[Not supported] Task properties of the software update configuration.",
"properties": {
"parameters": {
"description": "[Not supported] Gets or sets the parameters of the task.",
"oneOf": [
{
"additionalProperties": {
"type": "string"
},
"properties": {},
"type": "object"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"source": {
"description": "[Not supported] Gets or sets the name of the runbook.",
"type": "string"
},
"taskScope": {
"description": "[Not supported] Global Task execute once when schedule trigger. Resource task execute for each VM.",
"oneOf": [
{
"enum": [
"Global",
"Resource"
],
"type": "string"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"type": "object"
}
}
}