{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure/json-schema/microsoft-azure-subscription-alias-response-schema.json",
  "title": "SubscriptionAliasResponse",
  "description": "Subscription Information with the alias.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-providers-api-openapi.yml#/components/schemas/SubscriptionAliasResponse",
  "type": "object",
  "properties": {
    "id": {
      "description": "Fully qualified ID for the alias resource.",
      "readOnly": true,
      "type": "string"
    },
    "name": {
      "description": "Alias ID.",
      "readOnly": true,
      "type": "string"
    },
    "type": {
      "description": "Resource type, Microsoft.Subscription/aliases.",
      "readOnly": true,
      "type": "string"
    },
    "properties": {
      "$ref": "#/$defs/SubscriptionAliasResponseProperties",
      "description": "Subscription Alias response properties."
    },
    "systemData": {
      "$ref": "#/$defs/systemData",
      "readOnly": true
    }
  },
  "x-ms-azure-resource": true,
  "$defs": {
    "AcceptOwnershipState": {
      "readOnly": true,
      "type": "string",
      "description": "The accept ownership state of the resource.",
      "enum": [
        "Pending",
        "Completed",
        "Expired"
      ],
      "x-ms-enum": {
        "name": "AcceptOwnership",
        "modelAsString": true
      }
    },
    "BillingScope": {
      "description": "Billing scope of the subscription.\nFor CustomerLed and FieldLed - /billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}\nFor PartnerLed - /billingAccounts/{billingAccountName}/customers/{customerName}\nFor Legacy EA - /billingAccounts/{billingAccountName}/enrollmentAccounts/{enrollmentAccountName}",
      "type": "string"
    },
    "SubscriptionAliasResponseProperties": {
      "description": "Put subscription creation result properties.",
      "type": "object",
      "properties": {
        "subscriptionId": {
          "description": "Newly created subscription Id.",
          "readOnly": true,
          "type": "string"
        },
        "displayName": {
          "description": "The display name of the subscription.",
          "type": "string"
        },
        "provisioningState": {
          "type": "string",
          "description": "The provisioning state of the resource.",
          "enum": [
            "Accepted",
            "Succeeded",
            "Failed"
          ],
          "x-ms-enum": {
            "name": "ProvisioningState",
            "modelAsString": true
          }
        },
        "acceptOwnershipUrl": {
          "description": "Url to accept ownership of the subscription.",
          "type": "string",
          "readOnly": true
        },
        "acceptOwnershipState": {
          "$ref": "#/$defs/AcceptOwnershipState"
        },
        "billingScope": {
          "$ref": "#/$defs/BillingScope"
        },
        "workload": {
          "$ref": "#/$defs/Workload"
        },
        "resellerId": {
          "description": "Reseller Id",
          "type": "string"
        },
        "subscriptionOwnerId": {
          "description": "Owner Id of the subscription",
          "type": "string"
        },
        "managementGroupId": {
          "description": "The Management Group Id.",
          "type": "string"
        },
        "createdTime": {
          "description": "Created Time",
          "type": "string"
        },
        "tags": {
          "description": "Tags for the subscription",
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    },
    "Workload": {
      "description": "The workload type of the subscription. It can be either Production or DevTest.",
      "type": "string",
      "x-ms-enum": {
        "name": "workload",
        "modelAsString": true
      },
      "enum": [
        "Production",
        "DevTest"
      ]
    },
    "systemData": {
      "description": "Metadata pertaining to creation and last modification of the resource.",
      "type": "object",
      "readOnly": true,
      "properties": {
        "createdBy": {
          "type": "string",
          "description": "The identity that created the resource."
        },
        "createdByType": {
          "type": "string",
          "description": "The type of identity that created the resource.",
          "enum": [
            "User",
            "Application",
            "ManagedIdentity",
            "Key"
          ],
          "x-ms-enum": {
            "name": "createdByType",
            "modelAsString": true
          }
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of resource creation (UTC)."
        },
        "lastModifiedBy": {
          "type": "string",
          "description": "The identity that last modified the resource."
        },
        "lastModifiedByType": {
          "type": "string",
          "description": "The type of identity that last modified the resource.",
          "enum": [
            "User",
            "Application",
            "ManagedIdentity",
            "Key"
          ],
          "x-ms-enum": {
            "name": "createdByType",
            "modelAsString": true
          }
        },
        "lastModifiedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of resource last modification (UTC)"
        }
      }
    }
  }
}