Microsoft.Storage contextCaches/contextCacheContainers 2026-09-01

Bicep resource definition

The contextCaches/contextCacheContainers resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Storage/contextCaches/contextCacheContainers resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.Storage/contextCaches/contextCacheContainers@2026-09-01' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    description: 'string'
    modelName: 'string'
    provider: 'string'
    timeToLive: int
  }
}

Property Values

Microsoft.Storage/contextCaches/contextCacheContainers

Name Description Value
name The resource name string

Constraints:
Pattern = ^[a-z0-9](?!.*--)[a-z0-9-]{1,61}[a-z0-9]$ (required)
parent In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.

For more information, see Child resource outside parent resource.
Symbolic name for resource of type: contextCaches
properties The resource-specific properties for this resource. ContextCacheContainerProperties (required)

ContextCacheContainerProperties

Name Description Value
description Container description. string

Constraints:
Max length = 250
modelName The model name associated with this container (e.g., gpt-4, claude-3). string (required)
provider The AI provider associated with this container. 'OpenAI' (required)
timeToLive The Time to Live (TTL) in days (1–30) for this container. Blobs in the container that have not been accessed within this number of days will be automatically deleted. If not specified at creation time, it defaults to 1 day. int

Constraints:
Min value = 1
Max value = 30

ARM template resource definition

The contextCaches/contextCacheContainers resource type can be deployed with operations that target:

Usage Examples

Resource format

To create a Microsoft.Storage/contextCaches/contextCacheContainers resource, add the following JSON to your template.

{
  "type": "Microsoft.Storage/contextCaches/contextCacheContainers",
  "apiVersion": "2026-09-01",
  "name": "string",
  "properties": {
    "description": "string",
    "modelName": "string",
    "provider": "string",
    "timeToLive": "int"
  }
}

Property Values

Microsoft.Storage/contextCaches/contextCacheContainers

Name Description Value
apiVersion The api version '2026-09-01'
name The resource name string

Constraints:
Pattern = ^[a-z0-9](?!.*--)[a-z0-9-]{1,61}[a-z0-9]$ (required)
properties The resource-specific properties for this resource. ContextCacheContainerProperties (required)
type The resource type 'Microsoft.Storage/contextCaches/contextCacheContainers'

ContextCacheContainerProperties

Name Description Value
description Container description. string

Constraints:
Max length = 250
modelName The model name associated with this container (e.g., gpt-4, claude-3). string (required)
provider The AI provider associated with this container. 'OpenAI' (required)
timeToLive The Time to Live (TTL) in days (1–30) for this container. Blobs in the container that have not been accessed within this number of days will be automatically deleted. If not specified at creation time, it defaults to 1 day. int

Constraints:
Min value = 1
Max value = 30

Terraform (AzAPI provider) resource definition

The contextCaches/contextCacheContainers resource type can be deployed with operations that target:

  • Resource groups For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Storage/contextCaches/contextCacheContainers resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Storage/contextCaches/contextCacheContainers@2026-09-01"
  name = "string"
  parent_id = "string"
  body = {
    properties = {
      description = "string"
      modelName = "string"
      provider = "string"
      timeToLive = int
    }
  }
}

Property Values

Microsoft.Storage/contextCaches/contextCacheContainers

Name Description Value
name The resource name string

Constraints:
Pattern = ^[a-z0-9](?!.*--)[a-z0-9-]{1,61}[a-z0-9]$ (required)
parent_id The ID of the resource that is the parent for this resource. ID for resource of type: contextCaches
properties The resource-specific properties for this resource. ContextCacheContainerProperties (required)
type The resource type "Microsoft.Storage/contextCaches/contextCacheContainers@2026-09-01"

ContextCacheContainerProperties

Name Description Value
description Container description. string

Constraints:
Max length = 250
modelName The model name associated with this container (e.g., gpt-4, claude-3). string (required)
provider The AI provider associated with this container. 'OpenAI' (required)
timeToLive The Time to Live (TTL) in days (1–30) for this container. Blobs in the container that have not been accessed within this number of days will be automatically deleted. If not specified at creation time, it defaults to 1 day. int

Constraints:
Min value = 1
Max value = 30