Partager via


Microsoft.ContainerService snapshots 2022-10-02-preview

Bicep resource definition

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

resource symbolicname 'Microsoft.ContainerService/snapshots@2022-10-02-preview' = {
  location: 'string'
  name: 'string'
  properties: {
    creationData: {
      sourceResourceId: 'string'
    }
    snapshotType: 'string'
  }
  tags: {
    {customized property}: 'string'
  }
}

Property Values

CreationData

Name Description Value
sourceResourceId This is the ARM ID of the source object to be used to create the target object. string

Microsoft.ContainerService/snapshots

Name Description Value
location The geo-location where the resource lives string (required)
name The resource name string

Constraints:
Min length = 1
Max length = 63
Pattern = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$ (required)
properties Properties of a snapshot. SnapshotProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates

SnapshotProperties

Name Description Value
creationData CreationData to be used to specify the source agent pool resource ID to create this snapshot. CreationData
snapshotType The type of a snapshot. The default is NodePool. 'ManagedCluster'
'NodePool'

TrackedResourceTags

Name Description Value

ARM template resource definition

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

{
  "type": "Microsoft.ContainerService/snapshots",
  "apiVersion": "2022-10-02-preview",
  "name": "string",
  "location": "string",
  "properties": {
    "creationData": {
      "sourceResourceId": "string"
    },
    "snapshotType": "string"
  },
  "tags": {
    "{customized property}": "string"
  }
}

Property Values

CreationData

Name Description Value
sourceResourceId This is the ARM ID of the source object to be used to create the target object. string

Microsoft.ContainerService/snapshots

Name Description Value
apiVersion The api version '2022-10-02-preview'
location The geo-location where the resource lives string (required)
name The resource name string

Constraints:
Min length = 1
Max length = 63
Pattern = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$ (required)
properties Properties of a snapshot. SnapshotProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates
type The resource type 'Microsoft.ContainerService/snapshots'

SnapshotProperties

Name Description Value
creationData CreationData to be used to specify the source agent pool resource ID to create this snapshot. CreationData
snapshotType The type of a snapshot. The default is NodePool. 'ManagedCluster'
'NodePool'

TrackedResourceTags

Name Description Value

Exemples d’utilisation

Terraform (AzAPI provider) resource definition

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.ContainerService/snapshots@2022-10-02-preview"
  name = "string"
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    properties = {
      creationData = {
        sourceResourceId = "string"
      }
      snapshotType = "string"
    }
  }
}

Property Values

CreationData

Name Description Value
sourceResourceId This is the ARM ID of the source object to be used to create the target object. string

Microsoft.ContainerService/snapshots

Name Description Value
location The geo-location where the resource lives string (required)
name The resource name string

Constraints:
Min length = 1
Max length = 63
Pattern = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$ (required)
properties Properties of a snapshot. SnapshotProperties
tags Resource tags Dictionary of tag names and values.
type The resource type "Microsoft.ContainerService/snapshots@2022-10-02-preview"

SnapshotProperties

Name Description Value
creationData CreationData to be used to specify the source agent pool resource ID to create this snapshot. CreationData
snapshotType The type of a snapshot. The default is NodePool. 'ManagedCluster'
'NodePool'

TrackedResourceTags

Name Description Value