{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-automation/json-schema/microsoft-azure-automation-dsc-configuration-schema.json",
  "title": "DscConfiguration",
  "description": "Definition of the configuration type.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-automation-dscconfiguration-api-openapi.yml#/components/schemas/DscConfiguration",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/DscConfigurationProperties",
      "description": "Gets or sets the configuration properties.",
      "x-ms-client-flatten": true
    },
    "etag": {
      "type": "string",
      "description": "Gets or sets the etag of the resource."
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/TrackedResource"
    }
  ],
  "$defs": {
    "ContentHash": {
      "type": "object",
      "description": "Definition of the runbook property type.",
      "properties": {
        "algorithm": {
          "type": "string",
          "description": "Gets or sets the content hash algorithm used to hash the content."
        },
        "value": {
          "type": "string",
          "description": "Gets or sets expected hash value of the content."
        }
      },
      "required": [
        "algorithm",
        "value"
      ]
    },
    "ContentSource": {
      "type": "object",
      "description": "Definition of the content source.",
      "properties": {
        "hash": {
          "$ref": "#/$defs/ContentHash",
          "description": "Gets or sets the hash."
        },
        "type": {
          "$ref": "#/$defs/ContentSourceType",
          "description": "Gets or sets the content source type."
        },
        "value": {
          "type": "string",
          "description": "Gets or sets the value of the content. This is based on the content source type."
        },
        "version": {
          "type": "string",
          "description": "Gets or sets the version of the content."
        }
      }
    },
    "ContentSourceType": {
      "type": "string",
      "description": "Gets or sets the content source type.",
      "enum": [
        "embeddedContent",
        "uri"
      ],
      "x-ms-enum": {
        "name": "ContentSourceType",
        "modelAsString": true,
        "values": [
          {
            "name": "embeddedContent",
            "value": "embeddedContent",
            "description": "embeddedContent"
          },
          {
            "name": "uri",
            "value": "uri",
            "description": "uri"
          }
        ]
      }
    },
    "DscConfigurationParameter": {
      "type": "object",
      "description": "Definition of the configuration parameter type.",
      "properties": {
        "type": {
          "type": "string",
          "description": "Gets or sets the type of the parameter."
        },
        "isMandatory": {
          "type": "boolean",
          "description": "Gets or sets a Boolean value to indicate whether the parameter is mandatory or not."
        },
        "position": {
          "type": "integer",
          "format": "int32",
          "description": "Get or sets the position of the parameter."
        },
        "defaultValue": {
          "type": "string",
          "description": "Gets or sets the default value of parameter."
        }
      }
    },
    "DscConfigurationProperties": {
      "type": "object",
      "description": "Definition of the configuration property type.",
      "properties": {
        "provisioningState": {
          "type": "string",
          "description": "Gets or sets the provisioning state of the configuration.",
          "enum": [
            "Succeeded"
          ],
          "x-ms-enum": {
            "modelAsString": false
          }
        },
        "jobCount": {
          "type": "integer",
          "format": "int32",
          "description": "Gets or sets the job count of the configuration."
        },
        "parameters": {
          "type": "object",
          "description": "Gets or sets the configuration parameters.",
          "additionalProperties": {
            "$ref": "#/$defs/DscConfigurationParameter"
          }
        },
        "source": {
          "$ref": "#/$defs/ContentSource",
          "description": "Gets or sets the source."
        },
        "state": {
          "$ref": "#/$defs/DscConfigurationState",
          "description": "Gets or sets the state of the configuration."
        },
        "logVerbose": {
          "type": "boolean",
          "description": "Gets or sets verbose log option."
        },
        "creationTime": {
          "type": "string",
          "format": "date-time",
          "description": "Gets or sets the creation time."
        },
        "lastModifiedTime": {
          "type": "string",
          "format": "date-time",
          "description": "Gets or sets the last modified time."
        },
        "nodeConfigurationCount": {
          "type": "integer",
          "format": "int32",
          "description": "Gets the number of compiled node configurations."
        },
        "description": {
          "type": "string",
          "description": "Gets or sets the description."
        }
      }
    },
    "DscConfigurationState": {
      "type": "string",
      "description": "Gets or sets the state of the configuration.",
      "enum": [
        "New",
        "Edit",
        "Published"
      ],
      "x-ms-enum": {
        "name": "DscConfigurationState",
        "modelAsString": true,
        "values": [
          {
            "name": "New",
            "value": "New",
            "description": "New"
          },
          {
            "name": "Edit",
            "value": "Edit",
            "description": "Edit"
          },
          {
            "name": "Published",
            "value": "Published",
            "description": "Published"
          }
        ]
      }
    },
    "TrackedResource": {
      "type": "object",
      "title": "Tracked Resource",
      "description": "The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'",
      "properties": {
        "tags": {
          "type": "object",
          "description": "Resource tags.",
          "additionalProperties": {
            "type": "string"
          },
          "x-ms-mutability": [
            "read",
            "create",
            "update"
          ]
        },
        "location": {
          "type": "string",
          "description": "The geo-location where the resource lives",
          "x-ms-mutability": [
            "read",
            "create"
          ]
        }
      },
      "required": [
        "location"
      ],
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    }
  }
}