{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-virtual-machines/json-schema/microsoft-azure-virtual-machines-cloud-service-role-schema.json",
  "title": "CloudServiceRole",
  "description": "Describes a role of the cloud service.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-virtual-machines-cloudserviceroles-api-openapi.yml#/components/schemas/CloudServiceRole",
  "type": "object",
  "properties": {
    "id": {
      "description": "Resource id",
      "type": "string",
      "readOnly": true
    },
    "name": {
      "description": "Resource name",
      "type": "string",
      "readOnly": true
    },
    "type": {
      "description": "Resource type",
      "type": "string",
      "readOnly": true
    },
    "location": {
      "description": "Resource location",
      "type": "string",
      "readOnly": true
    },
    "sku": {
      "$ref": "#/$defs/CloudServiceRoleSku"
    },
    "properties": {
      "$ref": "#/$defs/CloudServiceRoleProperties"
    }
  },
  "$defs": {
    "CloudServiceRoleProperties": {
      "description": "The cloud service role properties.",
      "type": "object",
      "properties": {
        "uniqueId": {
          "description": "Specifies the ID which uniquely identifies a cloud service role.",
          "type": "string",
          "readOnly": true
        }
      }
    },
    "CloudServiceRoleSku": {
      "description": "Describes the cloud service role sku.",
      "type": "object",
      "properties": {
        "name": {
          "description": "The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the old sku.",
          "type": "string"
        },
        "tier": {
          "description": "Specifies the tier of the cloud service. Possible Values are <br /><br /> **Standard** <br /><br /> **Basic**",
          "type": "string"
        },
        "capacity": {
          "format": "int64",
          "description": "Specifies the number of role instances in the cloud service.",
          "type": "integer"
        }
      }
    }
  }
}