{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-cognitive-services/json-schema/microsoft-cognitive-services-account-write-schema.json",
  "title": "AccountWrite",
  "description": "Cognitive Services account parameters accepted by create and update operations.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-cognitive-services-cognitiveservicesaccounts-api-openapi.yml#/components/schemas/AccountWrite",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/AccountProperties",
      "description": "Properties of Cognitive Services account."
    },
    "tags": {
      "type": "object",
      "description": "Resource tags.",
      "additionalProperties": {
        "type": "string"
      },
      "x-ms-mutability": [
        "read",
        "update",
        "create"
      ]
    },
    "location": {
      "type": "string",
      "description": "The geo-location where the resource lives",
      "x-ms-mutability": [
        "read",
        "create"
      ]
    },
    "etag": {
      "type": "string",
      "description": "Resource Etag.",
      "readOnly": true
    },
    "kind": {
      "type": "string",
      "description": "The kind (type) of cognitive service account."
    },
    "sku": {
      "$ref": "#/$defs/Sku",
      "description": "The resource model definition representing SKU"
    },
    "identity": {
      "$ref": "#/$defs/Identity",
      "description": "Identity for the resource."
    }
  },
  "allOf": [
    {
      "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
    }
  ],
  "$defs": {
    "AbusePenalty": {
      "type": "object",
      "description": "The abuse penalty.",
      "properties": {
        "action": {
          "$ref": "#/$defs/AbusePenaltyAction",
          "description": "The action of AbusePenalty."
        },
        "rateLimitPercentage": {
          "type": "number",
          "format": "float",
          "description": "The percentage of rate limit."
        },
        "expiration": {
          "type": "string",
          "format": "date-time",
          "description": "The datetime of expiration of the AbusePenalty."
        }
      }
    },
    "AbusePenaltyAction": {
      "type": "string",
      "description": "The action of AbusePenalty.",
      "enum": [
        "Throttle",
        "Block"
      ],
      "x-ms-enum": {
        "name": "AbusePenaltyAction",
        "modelAsString": true,
        "values": [
          {
            "name": "Throttle",
            "value": "Throttle"
          },
          {
            "name": "Block",
            "value": "Block"
          }
        ]
      }
    },
    "AccountProperties": {
      "type": "object",
      "description": "Properties of Cognitive Services account.",
      "properties": {
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "Gets the status of the cognitive services account at the time the operation was called.",
          "readOnly": true
        },
        "endpoint": {
          "type": "string",
          "description": "Endpoint of the created account.",
          "readOnly": true
        },
        "internalId": {
          "type": "string",
          "description": "The internal identifier (deprecated, do not use this property).",
          "readOnly": true
        },
        "capabilities": {
          "type": "array",
          "description": "Gets the capabilities of the cognitive services account. Each item indicates the capability of a specific feature. The values are read-only and for reference only.",
          "items": {
            "$ref": "#/$defs/SkuCapability"
          },
          "readOnly": true,
          "x-ms-identifiers": [
            "name"
          ]
        },
        "isMigrated": {
          "type": "boolean",
          "description": "If the resource is migrated from an existing key.",
          "readOnly": true
        },
        "migrationToken": {
          "type": "string",
          "format": "password",
          "description": "Resource migration token.",
          "x-ms-mutability": [
            "update",
            "create"
          ],
          "x-ms-secret": true
        },
        "skuChangeInfo": {
          "$ref": "#/$defs/SkuChangeInfo",
          "description": "Sku change info of account.",
          "readOnly": true
        },
        "customSubDomainName": {
          "type": "string",
          "description": "Optional subdomain name used for token-based authentication."
        },
        "networkAcls": {
          "$ref": "#/$defs/NetworkRuleSet",
          "description": "A collection of rules governing the accessibility from specific network locations."
        },
        "encryption": {
          "$ref": "#/$defs/Encryption",
          "description": "The encryption properties for this resource."
        },
        "userOwnedStorage": {
          "type": "array",
          "description": "The storage accounts for this resource.",
          "items": {
            "$ref": "#/$defs/UserOwnedStorage"
          },
          "x-ms-identifiers": [
            "resourceId"
          ]
        },
        "amlWorkspace": {
          "$ref": "#/$defs/UserOwnedAmlWorkspace",
          "description": "The user owned AML account properties."
        },
        "privateEndpointConnections": {
          "type": "array",
          "description": "The private endpoint connection associated with the Cognitive Services account.",
          "items": {
            "$ref": "#/$defs/PrivateEndpointConnection"
          },
          "readOnly": true
        },
        "publicNetworkAccess": {
          "$ref": "#/$defs/PublicNetworkAccess",
          "description": "Whether or not public endpoint access is allowed for this account."
        },
        "apiProperties": {
          "$ref": "#/$defs/ApiProperties",
          "description": "The api properties for special APIs."
        },
        "dateCreated": {
          "type": "string",
          "description": "Gets the date of cognitive services account creation.",
          "readOnly": true
        },
        "callRateLimit": {
          "$ref": "#/$defs/CallRateLimit",
          "description": "The call rate limit Cognitive Services account.",
          "readOnly": true
        },
        "dynamicThrottlingEnabled": {
          "type": "boolean",
          "description": "The flag to enable dynamic throttling."
        },
        "storedCompletionsDisabled": {
          "type": "boolean",
          "description": "The flag to disable stored completions."
        },
        "a365LoggingEnabled": {
          "type": "boolean",
          "description": "Specifies whether A365 logging is enabled. Defaults to true. Set to false to opt out."
        },
        "quotaLimit": {
          "$ref": "#/$defs/QuotaLimit",
          "readOnly": true
        },
        "restrictOutboundNetworkAccess": {
          "type": "boolean"
        },
        "allowedFqdnList": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "disableLocalAuth": {
          "type": "boolean"
        },
        "endpoints": {
          "type": "object",
          "description": "Dictionary of <string>",
          "additionalProperties": {
            "type": "string"
          },
          "readOnly": true
        },
        "restore": {
          "type": "boolean",
          "x-ms-mutability": [
            "update",
            "create"
          ]
        },
        "deletionDate": {
          "type": "string",
          "description": "The deletion date, only available for deleted account.",
          "readOnly": true
        },
        "scheduledPurgeDate": {
          "type": "string",
          "description": "The scheduled purge date, only available for deleted account.",
          "readOnly": true
        },
        "locations": {
          "$ref": "#/$defs/MultiRegionSettings",
          "description": "The multiregion settings of Cognitive Services account."
        },
        "commitmentPlanAssociations": {
          "type": "array",
          "description": "The commitment plan associations of Cognitive Services account.",
          "items": {
            "$ref": "#/$defs/CommitmentPlanAssociation"
          },
          "readOnly": true,
          "x-ms-identifiers": [
            "commitmentPlanId"
          ]
        },
        "abusePenalty": {
          "$ref": "#/$defs/AbusePenalty",
          "description": "The abuse penalty.",
          "readOnly": true
        },
        "raiMonitorConfig": {
          "$ref": "#/$defs/RaiMonitorConfig",
          "description": "Cognitive Services Rai Monitor Config."
        },
        "networkInjections": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/NetworkInjection"
          }
        },
        "allowProjectManagement": {
          "type": "boolean",
          "description": "Specifies whether this resource support project management as child resources, used as containers for access management, data isolation and cost in AI Foundry."
        },
        "defaultProject": {
          "type": "string",
          "description": "Specifies the project, by project name, that is targeted when data plane endpoints are called without a project parameter."
        },
        "associatedProjects": {
          "type": "array",
          "description": "Specifies the projects, by project name, that are associated with this resource.",
          "items": {
            "type": "string"
          }
        },
        "trustedCertificateSources": {
          "type": [
            "array",
            "null"
          ],
          "description": "Private CA trust sources for supported features in an AIServices account with allowProjectManagement enabled. Supports one Azure Key Vault source containing version-pinned references to secrets with PEM-encoded CA certificates or certificate bundles. On PUT or PATCH, a non-null array replaces the complete configuration, so include all references to retain. Omit this property or send null to preserve the existing configuration; send an empty array to clear it.",
          "maxItems": 1,
          "items": {
            "$ref": "#/$defs/TrustedCertificateSource"
          },
          "x-ms-identifiers": [
            "resourceId"
          ],
          "x-ms-mutability": [
            "read",
            "update",
            "create"
          ]
        }
      }
    },
    "ApiProperties": {
      "type": "object",
      "description": "The api properties for special APIs.",
      "properties": {
        "qnaRuntimeEndpoint": {
          "type": "string",
          "description": "(QnAMaker Only) The runtime endpoint of QnAMaker."
        },
        "qnaAzureSearchEndpointKey": {
          "type": "string",
          "format": "password",
          "description": "(QnAMaker Only) The Azure Search endpoint key of QnAMaker.",
          "x-ms-mutability": [
            "update",
            "create"
          ],
          "x-ms-secret": true
        },
        "qnaAzureSearchEndpointId": {
          "type": "string",
          "description": "(QnAMaker Only) The Azure Search endpoint id of QnAMaker."
        },
        "statisticsEnabled": {
          "type": "boolean",
          "description": "(Bing Search Only) The flag to enable statistics of Bing Search."
        },
        "eventHubConnectionString": {
          "type": "string",
          "format": "password",
          "description": "(Personalization Only) The flag to enable statistics of Bing Search.",
          "maxLength": 1000,
          "pattern": "^( *)Endpoint=sb://(.*);( *)SharedAccessKeyName=(.*);( *)SharedAccessKey=(.*)$",
          "x-ms-mutability": [
            "update",
            "create"
          ],
          "x-ms-secret": true
        },
        "storageAccountConnectionString": {
          "type": "string",
          "format": "password",
          "description": "(Personalization Only) The storage account connection string.",
          "maxLength": 1000,
          "pattern": "^(( *)DefaultEndpointsProtocol=(http|https)( *);( *))?AccountName=(.*)AccountKey=(.*)EndpointSuffix=(.*)$",
          "x-ms-mutability": [
            "update",
            "create"
          ],
          "x-ms-secret": true
        },
        "aadClientId": {
          "type": "string",
          "description": "(Metrics Advisor Only) The Azure AD Client Id (Application Id).",
          "maxLength": 500
        },
        "aadTenantId": {
          "type": "string",
          "description": "(Metrics Advisor Only) The Azure AD Tenant Id.",
          "maxLength": 500
        },
        "superUser": {
          "type": "string",
          "description": "(Metrics Advisor Only) The super user of Metrics Advisor.",
          "maxLength": 500
        },
        "websiteName": {
          "type": "string",
          "description": "(Metrics Advisor Only) The website name of Metrics Advisor.",
          "maxLength": 500
        }
      },
      "additionalProperties": {}
    },
    "ByPassSelection": {
      "type": "string",
      "description": "Setting for trusted services.",
      "enum": [
        "None",
        "AzureServices"
      ],
      "x-ms-enum": {
        "name": "ByPassSelection",
        "modelAsString": true,
        "values": [
          {
            "name": "None",
            "value": "None"
          },
          {
            "name": "AzureServices",
            "value": "AzureServices"
          }
        ]
      }
    },
    "CallRateLimit": {
      "type": "object",
      "description": "The call rate limit Cognitive Services account.",
      "properties": {
        "count": {
          "type": "number",
          "format": "float",
          "description": "The count value of Call Rate Limit."
        },
        "renewalPeriod": {
          "type": "number",
          "format": "float",
          "description": "The renewal period in seconds of Call Rate Limit."
        },
        "rules": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ThrottlingRule"
          },
          "x-ms-identifiers": [
            "key"
          ]
        }
      }
    },
    "CertificateBundleReference": {
      "type": "object",
      "description": "A reference to a specific version of a Key Vault secret containing a PEM-encoded CA certificate or certificate bundle.",
      "properties": {
        "secretName": {
          "type": "string",
          "description": "Name of the Key Vault secret containing the CA certificate or certificate bundle.",
          "minLength": 1,
          "maxLength": 127,
          "pattern": "^[0-9a-zA-Z-]{1,127}$"
        },
        "secretVersion": {
          "type": "string",
          "description": "Required, pinned version of the Key Vault secret. Newer secret versions are not followed automatically. To rotate a bundle, update this value and resubmit the complete account trust configuration.",
          "minLength": 1,
          "maxLength": 127,
          "pattern": "^[0-9a-zA-Z-]{1,127}$"
        }
      },
      "required": [
        "secretName",
        "secretVersion"
      ]
    },
    "CommitmentPlanAssociation": {
      "type": "object",
      "description": "The commitment plan association.",
      "properties": {
        "commitmentPlanId": {
          "type": "string",
          "description": "The Azure resource id of the commitment plan."
        },
        "commitmentPlanLocation": {
          "type": "string",
          "description": "The location of of the commitment plan."
        }
      }
    },
    "Encryption": {
      "type": "object",
      "description": "Properties to configure Encryption",
      "properties": {
        "keyVaultProperties": {
          "$ref": "#/$defs/KeyVaultProperties",
          "description": "Properties of KeyVault"
        },
        "keySource": {
          "type": "string",
          "description": "Enumerates the possible value of keySource for Encryption",
          "default": "Microsoft.KeyVault",
          "enum": [
            "Microsoft.CognitiveServices",
            "Microsoft.KeyVault"
          ],
          "x-ms-enum": {
            "name": "KeySource",
            "modelAsString": true,
            "values": [
              {
                "name": "Microsoft.CognitiveServices",
                "value": "Microsoft.CognitiveServices"
              },
              {
                "name": "Microsoft.KeyVault",
                "value": "Microsoft.KeyVault"
              }
            ]
          }
        }
      }
    },
    "Identity": {
      "type": "object",
      "description": "Identity for the resource.",
      "properties": {
        "type": {
          "$ref": "#/$defs/ResourceIdentityType",
          "description": "The identity type."
        },
        "tenantId": {
          "type": "string",
          "description": "The tenant ID of resource.",
          "readOnly": true
        },
        "principalId": {
          "type": "string",
          "description": "The principal ID of resource identity.",
          "readOnly": true
        },
        "userAssignedIdentities": {
          "type": "object",
          "description": "The list of user assigned identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}",
          "additionalProperties": {
            "$ref": "#/$defs/UserAssignedIdentity"
          }
        }
      }
    },
    "IpRule": {
      "type": "object",
      "description": "A rule governing the accessibility from a specific ip address or ip range.",
      "properties": {
        "value": {
          "type": "string",
          "description": "An IPv4 address range in CIDR notation, such as '124.56.78.91' (simple IP address) or '124.56.78.0/24' (all addresses that start with 124.56.78)."
        }
      },
      "required": [
        "value"
      ]
    },
    "KeyVaultProperties": {
      "type": "object",
      "description": "Properties to configure keyVault Properties",
      "properties": {
        "keyName": {
          "type": "string",
          "description": "Name of the Key from KeyVault"
        },
        "keyVersion": {
          "type": "string",
          "description": "Version of the Key from KeyVault"
        },
        "keyVaultUri": {
          "type": "string",
          "description": "Uri of KeyVault"
        },
        "identityClientId": {
          "type": "string"
        }
      }
    },
    "MultiRegionSettings": {
      "type": "object",
      "description": "The multiregion settings Cognitive Services account.",
      "properties": {
        "routingMethod": {
          "$ref": "#/$defs/RoutingMethods",
          "description": "Multiregion routing methods."
        },
        "regions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RegionSetting"
          },
          "x-ms-identifiers": [
            "name"
          ]
        }
      }
    },
    "NetworkInjection": {
      "type": "object",
      "description": "Specifies in AI Foundry where virtual network injection occurs to secure scenarios like Agents entirely within the user's private network, eliminating public internet exposure while maintaining control over network configurations and resources.",
      "properties": {
        "scenario": {
          "$ref": "#/$defs/ScenarioType",
          "description": "Specifies what features in AI Foundry network injection applies to. Currently only supports 'agent' for agent scenarios. 'none' means no network injection."
        },
        "subnetArmId": {
          "type": "string",
          "format": "arm-id",
          "description": "Specify the subnet for which your Agent Client is injected into.",
          "x-ms-arm-id-details": {
            "allowedResources": [
              {
                "type": "Microsoft.Network/virtualNetworks/subnets"
              }
            ]
          }
        },
        "useMicrosoftManagedNetwork": {
          "type": "boolean",
          "description": "Boolean to enable Microsoft Managed Network for subnet delegation"
        }
      }
    },
    "NetworkRuleAction": {
      "type": "string",
      "description": "The default action when no rule from ipRules and from virtualNetworkRules match. This is only used after the bypass property has been evaluated.",
      "enum": [
        "Allow",
        "Deny"
      ],
      "x-ms-enum": {
        "name": "NetworkRuleAction",
        "modelAsString": true,
        "values": [
          {
            "name": "Allow",
            "value": "Allow"
          },
          {
            "name": "Deny",
            "value": "Deny"
          }
        ]
      }
    },
    "NetworkRuleSet": {
      "type": "object",
      "description": "A set of rules governing the network accessibility.",
      "properties": {
        "defaultAction": {
          "$ref": "#/$defs/NetworkRuleAction",
          "description": "The default action when no rule from ipRules and from virtualNetworkRules match. This is only used after the bypass property has been evaluated."
        },
        "bypass": {
          "$ref": "#/$defs/ByPassSelection",
          "description": "Setting for trusted services."
        },
        "ipRules": {
          "type": "array",
          "description": "The list of IP address rules.",
          "items": {
            "$ref": "#/$defs/IpRule"
          },
          "x-ms-identifiers": []
        },
        "virtualNetworkRules": {
          "type": "array",
          "description": "The list of virtual network rules.",
          "items": {
            "$ref": "#/$defs/VirtualNetworkRule"
          }
        }
      }
    },
    "PrivateEndpointConnection": {
      "type": "object",
      "description": "The Private Endpoint Connection resource.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/PrivateEndpointConnectionProperties",
          "description": "Resource properties."
        },
        "etag": {
          "type": "string",
          "description": "Resource Etag.",
          "readOnly": true
        },
        "location": {
          "type": "string",
          "description": "The location of the private endpoint connection"
        }
      },
      "allOf": [
        {
          "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
        }
      ]
    },
    "PrivateEndpointConnectionProperties": {
      "type": "object",
      "description": "Properties of the PrivateEndpointConnectProperties.",
      "properties": {
        "privateEndpoint": {
          "$ref": "../../../../../../common-types/resource-management/v3/privatelinks.json#/definitions/PrivateEndpoint",
          "description": "The resource of private end point."
        },
        "privateLinkServiceConnectionState": {
          "$ref": "../../../../../../common-types/resource-management/v3/privatelinks.json#/definitions/PrivateLinkServiceConnectionState",
          "description": "A collection of information about the state of the connection between service consumer and provider."
        },
        "provisioningState": {
          "$ref": "../../../../../../common-types/resource-management/v3/privatelinks.json#/definitions/PrivateEndpointConnectionProvisioningState",
          "description": "The provisioning state of the private endpoint connection resource.",
          "readOnly": true
        },
        "groupIds": {
          "type": "array",
          "description": "The private link resource group ids.",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "privateLinkServiceConnectionState"
      ]
    },
    "ProvisioningState": {
      "type": "string",
      "description": "Gets the status of the cognitive services account at the time the operation was called.",
      "enum": [
        "Accepted",
        "Creating",
        "Deleting",
        "Moving",
        "Failed",
        "Succeeded",
        "Canceled",
        "ResolvingDNS"
      ],
      "x-ms-enum": {
        "name": "ProvisioningState",
        "modelAsString": true,
        "values": [
          {
            "name": "Accepted",
            "value": "Accepted"
          },
          {
            "name": "Creating",
            "value": "Creating"
          },
          {
            "name": "Deleting",
            "value": "Deleting"
          },
          {
            "name": "Moving",
            "value": "Moving"
          },
          {
            "name": "Failed",
            "value": "Failed"
          },
          {
            "name": "Succeeded",
            "value": "Succeeded"
          },
          {
            "name": "Canceled",
            "value": "Canceled"
          },
          {
            "name": "ResolvingDNS",
            "value": "ResolvingDNS"
          }
        ]
      },
      "readOnly": true
    },
    "PublicNetworkAccess": {
      "type": "string",
      "description": "Whether or not public endpoint access is allowed for this account.",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "PublicNetworkAccess",
        "modelAsString": true,
        "values": [
          {
            "name": "Enabled",
            "value": "Enabled"
          },
          {
            "name": "Disabled",
            "value": "Disabled"
          }
        ]
      }
    },
    "QuotaLimit": {
      "type": "object",
      "properties": {
        "count": {
          "type": "number",
          "format": "float"
        },
        "renewalPeriod": {
          "type": "number",
          "format": "float"
        },
        "rules": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ThrottlingRule"
          },
          "x-ms-identifiers": [
            "key"
          ]
        }
      }
    },
    "RaiMonitorConfig": {
      "type": "object",
      "description": "Cognitive Services Rai Monitor Config.",
      "properties": {
        "adxStorageResourceId": {
          "type": "string",
          "description": "The storage resource Id."
        },
        "identityClientId": {
          "type": "string",
          "description": "The identity client Id to access the storage."
        }
      }
    },
    "RegionSetting": {
      "type": "object",
      "description": "The call rate limit Cognitive Services account.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the region."
        },
        "value": {
          "type": "number",
          "format": "float",
          "description": "A value for priority or weighted routing methods."
        },
        "customsubdomain": {
          "type": "string",
          "description": "Maps the region to the regional custom subdomain."
        }
      }
    },
    "RequestMatchPattern": {
      "type": "object",
      "properties": {
        "path": {
          "type": "string"
        },
        "method": {
          "type": "string"
        }
      }
    },
    "ResourceIdentityType": {
      "type": "string",
      "description": "The identity type.",
      "enum": [
        "None",
        "SystemAssigned",
        "UserAssigned",
        "SystemAssigned, UserAssigned"
      ],
      "x-ms-enum": {
        "name": "ResourceIdentityType",
        "modelAsString": false
      }
    },
    "RoutingMethods": {
      "type": "string",
      "description": "Multiregion routing methods.",
      "enum": [
        "Priority",
        "Weighted",
        "Performance"
      ],
      "x-ms-enum": {
        "name": "RoutingMethods",
        "modelAsString": true,
        "values": [
          {
            "name": "Priority",
            "value": "Priority"
          },
          {
            "name": "Weighted",
            "value": "Weighted"
          },
          {
            "name": "Performance",
            "value": "Performance"
          }
        ]
      }
    },
    "ScenarioType": {
      "type": "string",
      "description": "Specifies what features in AI Foundry network injection applies to. Currently only supports 'agent' for agent scenarios. 'none' means no network injection.",
      "enum": [
        "none",
        "agent"
      ],
      "x-ms-enum": {
        "name": "ScenarioType",
        "modelAsString": true,
        "values": [
          {
            "name": "none",
            "value": "none"
          },
          {
            "name": "agent",
            "value": "agent"
          }
        ]
      }
    },
    "Sku": {
      "type": "object",
      "description": "The resource model definition representing SKU",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the SKU. Ex - P3. It is typically a letter+number code"
        },
        "tier": {
          "$ref": "#/$defs/SkuTier",
          "description": "This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT."
        },
        "size": {
          "type": "string",
          "description": "The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code."
        },
        "family": {
          "type": "string",
          "description": "If the service has different generations of hardware, for the same SKU, then that can be captured here."
        },
        "capacity": {
          "type": "integer",
          "format": "int32",
          "description": "If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted."
        }
      },
      "required": [
        "name"
      ]
    },
    "SkuCapability": {
      "type": "object",
      "description": "SkuCapability indicates the capability of a certain feature.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the SkuCapability."
        },
        "value": {
          "type": "string",
          "description": "The value of the SkuCapability."
        }
      }
    },
    "SkuChangeInfo": {
      "type": "object",
      "description": "Sku change info of account.",
      "properties": {
        "countOfDowngrades": {
          "type": "number",
          "format": "float",
          "description": "Gets the count of downgrades."
        },
        "countOfUpgradesAfterDowngrades": {
          "type": "number",
          "format": "float",
          "description": "Gets the count of upgrades after downgrades."
        },
        "lastChangeDate": {
          "type": "string",
          "description": "Gets the last change date."
        }
      }
    },
    "SkuTier": {
      "type": "string",
      "description": "This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.",
      "enum": [
        "Free",
        "Basic",
        "Standard",
        "Premium",
        "Enterprise"
      ],
      "x-ms-enum": {
        "name": "SkuTier",
        "modelAsString": true,
        "values": [
          {
            "name": "Free",
            "value": "Free"
          },
          {
            "name": "Basic",
            "value": "Basic"
          },
          {
            "name": "Standard",
            "value": "Standard"
          },
          {
            "name": "Premium",
            "value": "Premium"
          },
          {
            "name": "Enterprise",
            "value": "Enterprise"
          }
        ]
      }
    },
    "ThrottlingRule": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string"
        },
        "renewalPeriod": {
          "type": "number",
          "format": "float"
        },
        "count": {
          "type": "number",
          "format": "float"
        },
        "minCount": {
          "type": "number",
          "format": "float"
        },
        "dynamicThrottlingEnabled": {
          "type": "boolean"
        },
        "matchPatterns": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RequestMatchPattern"
          },
          "x-ms-identifiers": [
            "path",
            "method"
          ]
        }
      }
    },
    "TrustedCertificateSource": {
      "type": "object",
      "description": "An Azure resource containing the CA certificate bundles trusted by supported features in the account.",
      "properties": {
        "type": {
          "$ref": "#/$defs/TrustedCertificateSourceType",
          "description": "Type of resource containing the certificate bundles. Currently only AzureKeyVault is supported."
        },
        "resourceId": {
          "type": "string",
          "format": "arm-id",
          "description": "Azure resource ID of the Key Vault containing the referenced secrets. The account identity must have permission to read these secrets.",
          "x-ms-arm-id-details": {
            "allowedResources": [
              {
                "type": "Microsoft.KeyVault/vaults"
              }
            ]
          }
        },
        "certificateBundleReferences": {
          "type": "array",
          "description": "References to secrets containing one or more PEM-encoded CA certificates. Each secret name and version pair must be unique within the source, using case-insensitive comparison. The same secret name can be referenced with different versions.",
          "minItems": 1,
          "maxItems": 25,
          "items": {
            "$ref": "#/$defs/CertificateBundleReference"
          },
          "x-ms-identifiers": [
            "secretName",
            "secretVersion"
          ]
        }
      },
      "required": [
        "type",
        "resourceId",
        "certificateBundleReferences"
      ]
    },
    "TrustedCertificateSourceType": {
      "type": "string",
      "description": "Type of Azure resource containing trusted CA certificate bundles.",
      "enum": [
        "AzureKeyVault"
      ],
      "x-ms-enum": {
        "name": "TrustedCertificateSourceType",
        "modelAsString": true,
        "values": [
          {
            "name": "AzureKeyVault",
            "value": "AzureKeyVault",
            "description": "Azure Key Vault secrets containing CA certificates or certificate bundles."
          }
        ]
      }
    },
    "UserAssignedIdentity": {
      "type": "object",
      "description": "User-assigned managed identity.",
      "properties": {
        "principalId": {
          "type": "string",
          "description": "Azure Active Directory principal ID associated with this Identity.",
          "readOnly": true
        },
        "clientId": {
          "type": "string",
          "description": "Client App Id associated with this identity.",
          "readOnly": true
        }
      }
    },
    "UserOwnedAmlWorkspace": {
      "type": "object",
      "description": "The user owned AML account for Cognitive Services account.",
      "properties": {
        "resourceId": {
          "type": "string",
          "description": "Full resource id of a AML account resource."
        },
        "identityClientId": {
          "type": "string",
          "description": "Identity Client id of a AML account resource."
        }
      }
    },
    "UserOwnedStorage": {
      "type": "object",
      "description": "The user owned storage for Cognitive Services account.",
      "properties": {
        "resourceId": {
          "type": "string",
          "description": "Full resource id of a Microsoft.Storage resource."
        },
        "identityClientId": {
          "type": "string"
        }
      }
    },
    "VirtualNetworkRule": {
      "type": "object",
      "description": "A rule governing the accessibility from a specific virtual network.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Full resource id of a vnet subnet, such as '/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1'."
        },
        "state": {
          "type": "string",
          "description": "Gets the state of virtual network rule."
        },
        "ignoreMissingVnetServiceEndpoint": {
          "type": "boolean",
          "description": "Ignore missing vnet service endpoint or not."
        }
      },
      "required": [
        "id"
      ]
    }
  }
}