Microsoft.ContainerRegistry registries/taskRuns template reference

Template format

To create a Microsoft.ContainerRegistry/registries/taskRuns resource, add the following JSON to the resources section of your template.

{
  "name": "string",
  "type": "Microsoft.ContainerRegistry/registries/taskRuns",
  "apiVersion": "2019-06-01-preview",
  "location": "string",
  "tags": {},
  "identity": {
    "principalId": "string",
    "tenantId": "string",
    "type": "string",
    "userAssignedIdentities": {}
  },
  "properties": {
    "runRequest": {
      "isArchiveEnabled": "boolean",
      "agentPoolName": "string",
      "type": "string"
    }
  }
}

Property values

The following tables describe the values you need to set in the schema.

Microsoft.ContainerRegistry/registries/taskRuns object

Name Type Required Value
name string Yes The name of task run.
type enum Yes taskRuns
-or-
Microsoft.ContainerRegistry/registries/taskRuns

See Set name and type for child resources.
apiVersion enum Yes 2019-06-01-preview
location string Yes The location of the resource. This cannot be changed after the resource is created.
tags object No The tags of the resource.
identity object No Identity for the resource. - IdentityProperties object
properties object Yes The properties associated with the task run, i.e., request and result of the run - TaskRunProperties object

IdentityProperties object

Name Type Required Value
principalId string No The principal ID of resource identity.
tenantId string No The tenant ID of resource.
type enum No The identity type. - SystemAssigned, UserAssigned, SystemAssigned, UserAssigned, None
userAssignedIdentities object No The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.

TaskRunProperties object

Name Type Required Value
runRequest object No The request (parameters) for the run - RunRequest object

RunRequest object

Name Type Required Value
isArchiveEnabled boolean No The value that indicates whether archiving is enabled for the run or not.
agentPoolName string No The dedicated agent pool for the run.
type string Yes