{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure/json-schema/microsoft-azure-account-5-schema.json",
  "title": "Account_5",
  "description": "An account is a parent resource for most of the other service resources. It's directly mapped to an ARM resource and helps to create a link between control-plane and data-plane resources.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-accounts-api-openapi.yml#/components/schemas/Account_5",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The account id.",
      "readOnly": true
    },
    "resourceId": {
      "type": "string",
      "description": "The ARM fully-qualified resource id for the account.",
      "readOnly": true
    },
    "name": {
      "type": "string",
      "description": "The account name.",
      "readOnly": true
    },
    "state": {
      "$ref": "#/$defs/AccountState",
      "description": "The state of account - Active | Inactive",
      "readOnly": true
    },
    "subscriptionId": {
      "$ref": "#/$defs/Azure.Core.uuid",
      "description": "The ARM-based subscription id for the account.",
      "readOnly": true
    },
    "subscriptionState": {
      "$ref": "#/$defs/SubscriptionState",
      "description": "The ARM-based subscription state - Registered | Unregistered | Warned | Suspended | Deleted",
      "readOnly": true
    },
    "tenantId": {
      "$ref": "#/$defs/Azure.Core.uuid",
      "description": "The Azure tenant id of the account.",
      "readOnly": true
    },
    "location": {
      "type": "string",
      "description": "The account resource ARM location, for eg. eastus, southeastasia.",
      "readOnly": true
    },
    "regionalAffinity": {
      "type": "string",
      "description": "This property sets the connection region for Playwright client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created.",
      "default": "Enabled",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "EnablementStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "Enabled",
            "value": "Enabled",
            "description": "The feature is Enabled."
          },
          {
            "name": "Disabled",
            "value": "Disabled",
            "description": "The feature is Disabled."
          }
        ]
      },
      "readOnly": true
    },
    "scalableExecution": {
      "type": "string",
      "description": "When enabled, Playwright client workers can connect to cloud-hosted browsers. This can increase the number of parallel workers for a test run, significantly minimizing test completion durations.",
      "default": "Enabled",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "EnablementStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "Enabled",
            "value": "Enabled",
            "description": "The feature is Enabled."
          },
          {
            "name": "Disabled",
            "value": "Disabled",
            "description": "The feature is Disabled."
          }
        ]
      },
      "readOnly": true
    },
    "reporting": {
      "type": "string",
      "description": "When enabled, this feature allows the workspace to upload and display test results, including artifacts like traces and screenshots, in the Playwright portal. This enables faster and more efficient troubleshooting.",
      "default": "Disabled",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "EnablementStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "Enabled",
            "value": "Enabled",
            "description": "The feature is Enabled."
          },
          {
            "name": "Disabled",
            "value": "Disabled",
            "description": "The feature is Disabled."
          }
        ]
      },
      "readOnly": true
    }
  },
  "required": [
    "id",
    "resourceId",
    "name",
    "state",
    "subscriptionId",
    "subscriptionState",
    "tenantId",
    "location"
  ],
  "$defs": {
    "AccountState": {
      "type": "string",
      "description": "The account state.",
      "enum": [
        "Active",
        "Inactive"
      ],
      "x-ms-enum": {
        "name": "AccountState",
        "modelAsString": true,
        "values": [
          {
            "name": "Active",
            "value": "Active",
            "description": "The account is Active."
          },
          {
            "name": "Inactive",
            "value": "Inactive",
            "description": "The account is Inactive."
          }
        ]
      }
    },
    "Azure.Core.uuid": {
      "type": "string",
      "format": "uuid",
      "description": "Universally Unique Identifier"
    },
    "SubscriptionState": {
      "type": "string",
      "description": "The ARM-based subscription state.",
      "enum": [
        "Registered",
        "Warned",
        "Suspended",
        "Deleted",
        "Unregistered"
      ],
      "x-ms-enum": {
        "name": "SubscriptionState",
        "modelAsString": true,
        "values": [
          {
            "name": "Registered",
            "value": "Registered",
            "description": "The subscription state is Registered."
          },
          {
            "name": "Warned",
            "value": "Warned",
            "description": "The subscription state is Warned."
          },
          {
            "name": "Suspended",
            "value": "Suspended",
            "description": "The subscription state is Suspended."
          },
          {
            "name": "Deleted",
            "value": "Deleted",
            "description": "The subscription state is Deleted."
          },
          {
            "name": "Unregistered",
            "value": "Unregistered",
            "description": "The subscription state is Unregistered."
          }
        ]
      }
    }
  }
}