Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions schemas/2018-05-01/subscriptionDeploymentTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -965,6 +965,9 @@
{
"$ref": "https://schema.management.azure.com/schemas/2021-01-01/Microsoft.PolicyInsights.json#/subscription_resourceDefinitions/attestations"
},
{
"$ref": "https://schema.management.azure.com/schemas/2021-10-01/Microsoft.PolicyInsights.json#/subscription_resourceDefinitions/remediations"
},
{
"$ref": "https://schema.management.azure.com/schemas/2020-11-20/Microsoft.ProviderHub.json#/subscription_resourceDefinitions/providerRegistrations"
},
Expand Down
3 changes: 3 additions & 0 deletions schemas/2019-08-01/managementGroupDeploymentTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,9 @@
{
"$ref": "https://schema.management.azure.com/schemas/2019-07-01/Microsoft.PolicyInsights.json#/unknown_resourceDefinitions/remediations"
},
{
"$ref": "https://schema.management.azure.com/schemas/2021-10-01/Microsoft.PolicyInsights.json#/unknown_resourceDefinitions/remediations"
},
{
"$ref": "https://schema.management.azure.com/schemas/2019-05-01/Microsoft.Resources.json#/managementGroup_resourceDefinitions/deployments"
},
Expand Down
282 changes: 282 additions & 0 deletions schemas/2021-10-01/Microsoft.PolicyInsights.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,282 @@
{
"id": "https://schema.management.azure.com/schemas/2021-10-01/Microsoft.PolicyInsights.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Microsoft.PolicyInsights",
"description": "Microsoft PolicyInsights Resource Types",
"resourceDefinitions": {
"remediations": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2021-10-01"
]
},
"name": {
"type": "string",
"description": "The name of the remediation."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/RemediationProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The remediation properties."
},
"type": {
"type": "string",
"enum": [
"Microsoft.PolicyInsights/remediations"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.PolicyInsights/remediations"
}
},
"subscription_resourceDefinitions": {
"remediations": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2021-10-01"
]
},
"name": {
"type": "string",
"description": "The name of the remediation."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/RemediationProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The remediation properties."
},
"type": {
"type": "string",
"enum": [
"Microsoft.PolicyInsights/remediations"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.PolicyInsights/remediations"
}
},
"extension_resourceDefinitions": {
"remediations": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2021-10-01"
]
},
"name": {
"type": "string",
"description": "The name of the remediation."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/RemediationProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The remediation properties."
},
"type": {
"type": "string",
"enum": [
"Microsoft.PolicyInsights/remediations"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.PolicyInsights/remediations"
}
},
"unknown_resourceDefinitions": {
"remediations": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2021-10-01"
]
},
"name": {
"type": "string",
"description": "The name of the remediation."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/RemediationProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The remediation properties."
},
"type": {
"type": "string",
"enum": [
"Microsoft.PolicyInsights/remediations"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.PolicyInsights/remediations"
}
},
"definitions": {
"RemediationFilters": {
"type": "object",
"properties": {
"locations": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The resource locations that will be remediated."
}
},
"description": "The filters that will be applied to determine which resources to remediate."
},
"RemediationProperties": {
"type": "object",
"properties": {
"failureThreshold": {
"oneOf": [
{
"$ref": "#/definitions/RemediationPropertiesFailureThreshold"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The remediation failure threshold settings"
},
"filters": {
"oneOf": [
{
"$ref": "#/definitions/RemediationFilters"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The filters that will be applied to determine which resources to remediate."
},
"parallelDeployments": {
"oneOf": [
{
"type": "integer"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Determines how many resources to remediate at any given time. Can be used to increase or reduce the pace of the remediation. If not provided, the default parallel deployments value is used."
},
"policyAssignmentId": {
"type": "string",
"description": "The resource ID of the policy assignment that should be remediated."
},
"policyDefinitionReferenceId": {
"type": "string",
"description": "The policy definition reference ID of the individual definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition."
},
"resourceCount": {
"oneOf": [
{
"type": "integer"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Determines the max number of resources that can be remediated by the remediation job. If not provided, the default resource count is used."
},
"resourceDiscoveryMode": {
"oneOf": [
{
"type": "string",
"enum": [
"ExistingNonCompliant",
"ReEvaluateCompliance"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The way resources to remediate are discovered. Defaults to ExistingNonCompliant if not specified."
}
},
"description": "The remediation properties."
},
"RemediationPropertiesFailureThreshold": {
"type": "object",
"properties": {
"percentage": {
"oneOf": [
{
"type": "number"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "A number between 0.0 to 1.0 representing the percentage failure threshold. The remediation will fail if the percentage of failed remediation operations (i.e. failed deployments) exceeds this threshold."
}
},
"description": "The remediation failure threshold settings"
}
}
}
3 changes: 3 additions & 0 deletions schemas/common/autogeneratedResources.json
Original file line number Diff line number Diff line change
Expand Up @@ -9841,6 +9841,9 @@
{
"$ref": "https://schema.management.azure.com/schemas/2021-01-01/Microsoft.PolicyInsights.json#/resourceDefinitions/attestations"
},
{
"$ref": "https://schema.management.azure.com/schemas/2021-10-01/Microsoft.PolicyInsights.json#/resourceDefinitions/remediations"
},
{
"$ref": "https://schema.management.azure.com/schemas/2015-08-01-preview/Microsoft.Portal.json#/resourceDefinitions/dashboards"
},
Expand Down