Microsoft.ContainerRegistry registries/tokens 2019-05-01-preview

The registries/tokens resource type can be deployed to: Resource groups.

To learn about resource group deployments, see Bicep or ARM template.

Template format

To create a Microsoft.ContainerRegistry/registries/tokens resource, add the following Bicep or JSON to your template.

resource symbolicname 'Microsoft.ContainerRegistry/registries/tokens@2019-05-01-preview' = {
  name: 'string'
  parent: parentSymbolicName
  properties: {
    credentials: {
      activeDirectoryObject: {
        objectId: 'string'
        tenantId: 'string'
      }
      certificates: [
        {
          encodedPemCertificate: 'string'
          expiry: 'string'
          name: 'string'
          thumbprint: 'string'
        }
      ]
      passwords: [
        {
          creationTime: 'string'
          expiry: 'string'
          name: 'string'
        }
      ]
    }
    scopeMapId: 'string'
    status: 'string'
  }
}

Property values

registries/tokens

Name Description Value
type The resource type

For Bicep, set this value in the resource declaration.
'Microsoft.ContainerRegistry/registries/tokens'
apiVersion The resource api version

For Bicep, set this value in the resource declaration.
'2019-05-01-preview'
name The resource name

See how to set names and types for child resources in Bicep or JSON ARM templates.
string (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.
parentSymbolicName
properties The properties of a token. TokenProperties

TokenProperties

Name Description Value
credentials The properties of the credentials that can be used for authenticating the token. TokenCredentialsProperties
scopeMapId The resource ID of the scope map to which the token will be associated with. string
status The status of the token example enabled or disabled. 'disabled'
'enabled'

TokenCredentialsProperties

Name Description Value
activeDirectoryObject The Active Directory Object that will be used for authenticating the token of a container registry. ActiveDirectoryObject
certificates Array of TokenCertificate TokenCertificate[]
passwords Array of TokenPassword TokenPassword[]

ActiveDirectoryObject

Name Description Value
objectId The user/group/application object ID for Active Directory Object that will be used for authenticating the token of a container registry. string
tenantId The tenant ID of user/group/application object Active Directory Object that will be used for authenticating the token of a container registry. string

TokenCertificate

Name Description Value
encodedPemCertificate Base 64 encoded string of the public certificate1 in PEM format that will be used for authenticating the token. string
expiry The expiry datetime of the certificate. string
name 'certificate1'
'certificate2'
thumbprint The thumbprint of the certificate. string

TokenPassword

Name Description Value
creationTime The creation datetime of the password. string
expiry The expiry datetime of the password. string
name The password name "password1" or "password2" 'password1'
'password2'