{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-test-labs/json-schema/azure-test-labs-dtl-environment-fragment-schema.json",
  "title": "DtlEnvironmentFragment",
  "description": "An environment, which is essentially an ARM template deployment.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-test-labs-environments-api-openapi.yml#/components/schemas/DtlEnvironmentFragment",
  "allOf": [
    {
      "$ref": "#/$defs/UpdateResource"
    }
  ],
  "properties": {
    "properties": {
      "$ref": "#/$defs/EnvironmentPropertiesFragment",
      "description": "The properties of the resource.",
      "x-ms-client-flatten": true
    }
  },
  "type": "object",
  "$defs": {
    "ArmTemplateParameterPropertiesFragment": {
      "description": "Properties of an Azure Resource Manager template parameter.",
      "properties": {
        "name": {
          "description": "The name of the template parameter.",
          "type": "string"
        },
        "value": {
          "description": "The value of the template parameter.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "EnvironmentDeploymentPropertiesFragment": {
      "description": "Properties of an environment deployment.",
      "properties": {
        "armTemplateId": {
          "description": "The Azure Resource Manager template's identifier.",
          "type": "string"
        },
        "parameters": {
          "description": "The parameters of the Azure Resource Manager template.",
          "items": {
            "$ref": "#/$defs/ArmTemplateParameterPropertiesFragment"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "EnvironmentPropertiesFragment": {
      "description": "Properties of an environment.",
      "properties": {
        "armTemplateDisplayName": {
          "description": "The display name of the Azure Resource Manager template that produced the environment.",
          "type": "string"
        },
        "deploymentProperties": {
          "$ref": "#/$defs/EnvironmentDeploymentPropertiesFragment",
          "description": "The deployment properties of the environment."
        }
      },
      "type": "object"
    },
    "UpdateResource": {
      "description": "Represents an update resource",
      "properties": {
        "tags": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "The tags of the resource.",
          "type": "object"
        }
      },
      "type": "object"
    }
  }
}