Microsoft.ContainerRegistry registries/scopeMaps 2021-12-01-preview

Bicep resource definition

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

resource symbolicname 'Microsoft.ContainerRegistry/registries/scopeMaps@2021-12-01-preview' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    actions: [
      'string'
    ]
    description: 'string'
  }
}

Property values

Microsoft.ContainerRegistry/registries/scopeMaps

Name Description Value
name The resource name string

Constraints:
Min length = 5
Max length = 5
Pattern = ^[a-zA-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: registries
properties The properties of the scope map. ScopeMapProperties

ScopeMapProperties

Name Description Value
actions The list of scoped permissions for registry artifacts.
E.g. repositories/repository-name/content/read,
repositories/repository-name/metadata/write
string[] (required)
description The user friendly description of the scope map. string

ARM template resource definition

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

{
  "type": "Microsoft.ContainerRegistry/registries/scopeMaps",
  "apiVersion": "2021-12-01-preview",
  "name": "string",
  "properties": {
    "actions": [ "string" ],
    "description": "string"
  }
}

Property values

Microsoft.ContainerRegistry/registries/scopeMaps

Name Description Value
apiVersion The api version '2021-12-01-preview'
name The resource name string

Constraints:
Min length = 5
Max length = 5
Pattern = ^[a-zA-Z0-9-_]*$ (required)
properties The properties of the scope map. ScopeMapProperties
type The resource type 'Microsoft.ContainerRegistry/registries/scopeMaps'

ScopeMapProperties

Name Description Value
actions The list of scoped permissions for registry artifacts.
E.g. repositories/repository-name/content/read,
repositories/repository-name/metadata/write
string[] (required)
description The user friendly description of the scope map. string

Terraform (AzAPI provider) resource definition

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.ContainerRegistry/registries/scopeMaps@2021-12-01-preview"
  name = "string"
  body = jsonencode({
    properties = {
      actions = [
        "string"
      ]
      description = "string"
    }
  })
}

Property values

Microsoft.ContainerRegistry/registries/scopeMaps

Name Description Value
name The resource name string

Constraints:
Min length = 5
Max length = 5
Pattern = ^[a-zA-Z0-9-_]*$ (required)
parent_id The ID of the resource that is the parent for this resource. ID for resource of type: registries
properties The properties of the scope map. ScopeMapProperties
type The resource type "Microsoft.ContainerRegistry/registries/scopeMaps@2021-12-01-preview"

ScopeMapProperties

Name Description Value
actions The list of scoped permissions for registry artifacts.
E.g. repositories/repository-name/content/read,
repositories/repository-name/metadata/write
string[] (required)
description The user friendly description of the scope map. string