Microsoft.ContainerRegistry registries/buildTasks

ARM template resource definition

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

{
  "type": "Microsoft.ContainerRegistry/registries/buildTasks",
  "apiVersion": "2018-02-01-preview",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "properties": {
    "alias": "string",
    "platform": {
      "cpu": "int",
      "osType": "string"
    },
    "sourceRepository": {
      "isCommitTriggerEnabled": "bool",
      "repositoryUrl": "string",
      "sourceControlAuthProperties": {
        "expiresIn": "int",
        "refreshToken": "string",
        "scope": "string",
        "token": "string",
        "tokenType": "string"
      },
      "sourceControlType": "string",
      "isCommitTriggerEnabled": "bool",
      "repositoryUrl": "string",
      "sourceControlAuthProperties": {
        "expiresIn": "int",
        "refreshToken": "string",
        "scope": "string",
        "token": "string",
        "tokenType": "string"
      },
      "sourceControlType": "string"
    },
    "status": "string",
    "timeout": "int"
  }
}

Property values

registries/buildTasks

Name Description Value
type The resource type 'Microsoft.ContainerRegistry/registries/buildTasks'
apiVersion The resource api version '2018-02-01-preview'
name The resource name

See how to set names and types for child resources in JSON ARM templates.
string (required)

Character limit: 5-50

Valid characters:
Alphanumerics.
location The location of the resource. This cannot be changed after the resource is created. string (required)
tags The tags of the resource. Dictionary of tag names and values. See Tags in templates
properties The properties of a build task. BuildTaskProperties

BuildTaskProperties

Name Description Value
alias The alternative updatable name for a build task. string (required)
platform The platform properties against which the build has to happen. PlatformProperties (required)
sourceRepository The properties that describes the source(code) for the build task. SourceRepositoryProperties (required)
status The current status of build task. 'Disabled'
'Enabled'
timeout Build timeout in seconds. int

PlatformProperties

Name Description Value
cpu The CPU configuration in terms of number of cores required for the build. int
osType The operating system type required for the build. 'Linux'
'Windows' (required)

SourceRepositoryProperties

Name Description Value
isCommitTriggerEnabled The value of this property indicates whether the source control commit trigger is enabled or not. bool
repositoryUrl The full URL to the source code repository string (required)
sourceControlAuthProperties The authorization properties for accessing the source code repository. SourceControlAuthInfo
sourceControlType The type of source control service. 'Github'
'VisualStudioTeamService' (required)
isCommitTriggerEnabled The value of this property indicates whether the source control commit trigger is enabled or not. bool
repositoryUrl The full URL to the source code repository string (required)
sourceControlAuthProperties The authorization properties for accessing the source code repository. SourceControlAuthInfo
sourceControlType The type of source control service. 'Github'
'VisualStudioTeamService' (required)

SourceControlAuthInfo

Name Description Value
expiresIn Time in seconds that the token remains valid int
refreshToken The refresh token used to refresh the access token. string
scope The scope of the access token. string
token The access token used to access the source control provider. string (required)
tokenType The type of Auth token. 'OAuth'
'PAT'