Share via


Microsoft.StorageCache caches 2019-08-01-preview

Bicep resource definition

The caches 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.StorageCache/caches resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.StorageCache/caches@2019-08-01-preview' = {
  location: 'string'
  name: 'string'
  properties: {
    cacheSizeGB: int
    provisioningState: 'string'
    subnet: 'string'
    upgradeStatus: {}
  }
  sku: {
    name: 'string'
  }
  tags: any(...)
}

Property Values

Microsoft.StorageCache/caches

Name Description Value
location Region name string. string
name The resource name string

Constraints:
Pattern = ^[-0-9a-zA-Z_]{1,31}$ (required)
properties Properties for the cache. CacheProperties
sku Sku for the cache. CacheSku
tags Resource tags Dictionary of tag names and values. See Tags in templates

CacheProperties

Name Description Value
cacheSizeGB The size of this cache's cache, in GB. int
provisioningState ARM provisioning state, see https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property 'Cancelled'
'Creating'
'Deleting'
'Failed'
'Succeeded'
'Updating'
subnet Subnet used for the cache. string
upgradeStatus Upgrade status of the cache. CacheUpgradeStatus

CacheSku

Name Description Value
name Sku name for this cache. string

CacheUpgradeStatus

Name Description Value

ARM template resource definition

The caches 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.StorageCache/caches resource, add the following JSON to your template.

{
  "type": "Microsoft.StorageCache/caches",
  "apiVersion": "2019-08-01-preview",
  "name": "string",
  "location": "string",
  "properties": {
    "cacheSizeGB": "int",
    "provisioningState": "string",
    "subnet": "string",
    "upgradeStatus": {
    }
  },
  "sku": {
    "name": "string"
  },
  "tags": {}
}

Property Values

Microsoft.StorageCache/caches

Name Description Value
apiVersion The api version '2019-08-01-preview'
location Region name string. string
name The resource name string

Constraints:
Pattern = ^[-0-9a-zA-Z_]{1,31}$ (required)
properties Properties for the cache. CacheProperties
sku Sku for the cache. CacheSku
tags Resource tags Dictionary of tag names and values. See Tags in templates
type The resource type 'Microsoft.StorageCache/caches'

CacheProperties

Name Description Value
cacheSizeGB The size of this cache's cache, in GB. int
provisioningState ARM provisioning state, see https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property 'Cancelled'
'Creating'
'Deleting'
'Failed'
'Succeeded'
'Updating'
subnet Subnet used for the cache. string
upgradeStatus Upgrade status of the cache. CacheUpgradeStatus

CacheSku

Name Description Value
name Sku name for this cache. string

CacheUpgradeStatus

Name Description Value

Usage Examples

Terraform (AzAPI provider) resource definition

The caches 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.StorageCache/caches resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.StorageCache/caches@2019-08-01-preview"
  name = "string"
  parent_id = "string"
  location = "string"
  tags = ?
  body = {
    properties = {
      cacheSizeGB = int
      provisioningState = "string"
      subnet = "string"
      upgradeStatus = {
      }
    }
    sku = {
      name = "string"
    }
  }
}

Property Values

Microsoft.StorageCache/caches

Name Description Value
location Region name string. string
name The resource name string

Constraints:
Pattern = ^[-0-9a-zA-Z_]{1,31}$ (required)
properties Properties for the cache. CacheProperties
sku Sku for the cache. CacheSku
tags Resource tags Dictionary of tag names and values.
type The resource type "Microsoft.StorageCache/caches@2019-08-01-preview"

CacheProperties

Name Description Value
cacheSizeGB The size of this cache's cache, in GB. int
provisioningState ARM provisioning state, see https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property 'Cancelled'
'Creating'
'Deleting'
'Failed'
'Succeeded'
'Updating'
subnet Subnet used for the cache. string
upgradeStatus Upgrade status of the cache. CacheUpgradeStatus

CacheSku

Name Description Value
name Sku name for this cache. string

CacheUpgradeStatus

Name Description Value