{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure/json-schema/microsoft-azure-subscription-feature-registration-schema.json",
  "title": "SubscriptionFeatureRegistration",
  "description": "Subscription feature registration details",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-subscriptions-api-openapi.yml#/components/schemas/SubscriptionFeatureRegistration",
  "type": "object",
  "allOf": [
    {
      "$ref": "#/$defs/ProxyResource"
    }
  ],
  "properties": {
    "properties": {
      "properties": {
        "tenantId": {
          "type": "string",
          "description": "The tenantId.",
          "readOnly": true
        },
        "subscriptionId": {
          "type": "string",
          "description": "The subscriptionId.",
          "readOnly": true
        },
        "featureName": {
          "type": "string",
          "description": "The featureName.",
          "readOnly": true
        },
        "displayName": {
          "type": "string",
          "description": "The featureDisplayName.",
          "readOnly": true
        },
        "providerNamespace": {
          "type": "string",
          "description": "The providerNamespace.",
          "readOnly": true
        },
        "state": {
          "type": "string",
          "description": "The state.",
          "enum": [
            "NotSpecified",
            "NotRegistered",
            "Pending",
            "Registering",
            "Registered",
            "Unregistering",
            "Unregistered"
          ],
          "x-ms-enum": {
            "name": "SubscriptionFeatureRegistrationState",
            "modelAsString": true
          }
        },
        "authorizationProfile": {
          "$ref": "#/$defs/AuthorizationProfile"
        },
        "metadata": {
          "type": "object",
          "additionalProperties": {
            "type": "string",
            "maxLength": 1000
          },
          "description": "Key-value pairs for meta data."
        },
        "releaseDate": {
          "type": "string",
          "format": "date-time",
          "description": "The feature release date.",
          "readOnly": true
        },
        "registrationDate": {
          "type": "string",
          "format": "date-time",
          "description": "The feature registration date.",
          "readOnly": true
        },
        "documentationLink": {
          "type": "string",
          "maxLength": 1000,
          "description": "The feature documentation link.",
          "readOnly": true
        },
        "approvalType": {
          "type": "string",
          "description": "The feature approval type.",
          "enum": [
            "NotSpecified",
            "ApprovalRequired",
            "AutoApproval"
          ],
          "x-ms-enum": {
            "name": "SubscriptionFeatureRegistrationApprovalType",
            "modelAsString": true
          },
          "readOnly": true
        },
        "shouldFeatureDisplayInPortal": {
          "type": "boolean",
          "default": false,
          "description": "Indicates whether feature should be displayed in Portal."
        },
        "description": {
          "type": "string",
          "maxLength": 1000,
          "description": "The feature description."
        }
      },
      "type": "object"
    }
  },
  "$defs": {
    "AuthorizationProfile": {
      "description": "Authorization Profile",
      "type": "object",
      "properties": {
        "requestedTime": {
          "type": "string",
          "format": "date-time",
          "description": "The requested time",
          "readOnly": true
        },
        "requester": {
          "type": "string",
          "description": "The requester",
          "readOnly": true
        },
        "requesterObjectId": {
          "type": "string",
          "description": "The requester object id",
          "readOnly": true
        },
        "approvedTime": {
          "type": "string",
          "format": "date-time",
          "description": "The approved time",
          "readOnly": true
        },
        "approver": {
          "type": "string",
          "description": "The approver",
          "readOnly": true
        }
      }
    },
    "ProxyResource": {
      "type": "object",
      "description": "An Azure proxy resource.",
      "properties": {
        "id": {
          "description": "Azure resource Id.",
          "type": "string",
          "readOnly": true
        },
        "name": {
          "description": "Azure resource name.",
          "type": "string",
          "readOnly": true
        },
        "type": {
          "description": "Azure resource type.",
          "type": "string",
          "readOnly": true
        }
      },
      "x-ms-azure-resource": true
    }
  }
}