Azure DevTest Labs · Schema
PolicyFragment
A Policy.
Microsoft AzureDevelopmentInfrastructureLabsTestingVirtual Machines
Properties
| Name | Type | Description |
|---|---|---|
| tags | object | The tags of the resource. |
| properties | object | The properties of the resource. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/azure-test-labs/json-schema/azure-test-labs-policy-fragment-schema.json",
"title": "PolicyFragment",
"description": "A Policy.",
"x-generated": "2026-11-05",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/azure-test-labs-policies-api-openapi.yml#/components/schemas/PolicyFragment",
"allOf": [
{
"$ref": "#/$defs/UpdateResource"
}
],
"properties": {
"properties": {
"$ref": "#/$defs/PolicyPropertiesFragment",
"description": "The properties of the resource.",
"x-ms-client-flatten": true
}
},
"type": "object",
"$defs": {
"PolicyPropertiesFragment": {
"description": "Properties of a Policy.",
"properties": {
"description": {
"description": "The description of the policy.",
"type": "string"
},
"evaluatorType": {
"description": "The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy).",
"enum": [
"AllowedValuesPolicy",
"MaxValuePolicy"
],
"type": "string",
"x-ms-enum": {
"modelAsString": true,
"name": "PolicyEvaluatorType"
}
},
"factData": {
"description": "The fact data of the policy.",
"type": "string"
},
"factName": {
"description": "The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc.",
"enum": [
"UserOwnedLabVmCount",
"UserOwnedLabPremiumVmCount",
"LabVmCount",
"LabPremiumVmCount",
"LabVmSize",
"GalleryImage",
"UserOwnedLabVmCountInSubnet",
"LabTargetCost",
"EnvironmentTemplate",
"ScheduleEditPermission"
],
"type": "string",
"x-ms-enum": {
"modelAsString": true,
"name": "PolicyFactName"
}
},
"status": {
"description": "The status of the policy.",
"enum": [
"Enabled",
"Disabled"
],
"type": "string",
"x-ms-enum": {
"modelAsString": true,
"name": "PolicyStatus"
}
},
"threshold": {
"description": "The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy).",
"type": "string"
}
},
"type": "object"
},
"UpdateResource": {
"description": "Represents an update resource",
"properties": {
"tags": {
"additionalProperties": {
"type": "string"
},
"description": "The tags of the resource.",
"type": "object"
}
},
"type": "object"
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/azure-test-labs-policy-fragment"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.