Microsoft.App containerApps/sourcecontrols 2022-01-01-preview

Bicep resource definition

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

resource symbolicname 'Microsoft.App/containerApps/sourcecontrols@2022-01-01-preview' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    branch: 'string'
    githubActionConfiguration: {
      azureCredentials: {
        clientId: 'string'
        clientSecret: 'string'
        subscriptionId: 'string'
        tenantId: 'string'
      }
      dockerfilePath: 'string'
      os: 'string'
      publishType: 'string'
      registryInfo: {
        registryPassword: 'string'
        registryUrl: 'string'
        registryUserName: 'string'
      }
      runtimeStack: 'string'
      runtimeVersion: 'string'
    }
    repoUrl: 'string'
  }
}

Property values

AzureCredentials

Name Description Value
clientId Client Id. string

Constraints:
Sensitive value. Pass in as a secure parameter.
clientSecret Client Secret. string

Constraints:
Sensitive value. Pass in as a secure parameter.
subscriptionId Subscription Id. string
tenantId Tenant Id. string

Constraints:
Sensitive value. Pass in as a secure parameter.

GithubActionConfiguration

Name Description Value
azureCredentials AzureCredentials configurations. AzureCredentials
dockerfilePath Docker file path string
os Operation system string
publishType Code or Image string
registryInfo Registry configurations. RegistryInfo
runtimeStack Runtime stack string
runtimeVersion Runtime Version string

Microsoft.App/containerApps/sourcecontrols

Name Description Value
name The resource name 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.
Symbolic name for resource of type: containerApps
properties SourceControl resource specific properties SourceControlProperties

RegistryInfo

Name Description Value
registryPassword registry secret. string

Constraints:
Sensitive value. Pass in as a secure parameter.
registryUrl registry server Url. string
registryUserName registry username. string

SourceControlProperties

Name Description Value
branch The branch which will trigger the auto deployment string
githubActionConfiguration Container App Revision Template with all possible settings and the
defaults if user did not provide them. The defaults are populated
as they were at the creation time
GithubActionConfiguration
repoUrl The repo url which will be integrated to ContainerApp. string

ARM template resource definition

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

{
  "type": "Microsoft.App/containerApps/sourcecontrols",
  "apiVersion": "2022-01-01-preview",
  "name": "string",
  "properties": {
    "branch": "string",
    "githubActionConfiguration": {
      "azureCredentials": {
        "clientId": "string",
        "clientSecret": "string",
        "subscriptionId": "string",
        "tenantId": "string"
      },
      "dockerfilePath": "string",
      "os": "string",
      "publishType": "string",
      "registryInfo": {
        "registryPassword": "string",
        "registryUrl": "string",
        "registryUserName": "string"
      },
      "runtimeStack": "string",
      "runtimeVersion": "string"
    },
    "repoUrl": "string"
  }
}

Property values

AzureCredentials

Name Description Value
clientId Client Id. string

Constraints:
Sensitive value. Pass in as a secure parameter.
clientSecret Client Secret. string

Constraints:
Sensitive value. Pass in as a secure parameter.
subscriptionId Subscription Id. string
tenantId Tenant Id. string

Constraints:
Sensitive value. Pass in as a secure parameter.

GithubActionConfiguration

Name Description Value
azureCredentials AzureCredentials configurations. AzureCredentials
dockerfilePath Docker file path string
os Operation system string
publishType Code or Image string
registryInfo Registry configurations. RegistryInfo
runtimeStack Runtime stack string
runtimeVersion Runtime Version string

Microsoft.App/containerApps/sourcecontrols

Name Description Value
apiVersion The api version '2022-01-01-preview'
name The resource name string (required)
properties SourceControl resource specific properties SourceControlProperties
type The resource type 'Microsoft.App/containerApps/sourcecontrols'

RegistryInfo

Name Description Value
registryPassword registry secret. string

Constraints:
Sensitive value. Pass in as a secure parameter.
registryUrl registry server Url. string
registryUserName registry username. string

SourceControlProperties

Name Description Value
branch The branch which will trigger the auto deployment string
githubActionConfiguration Container App Revision Template with all possible settings and the
defaults if user did not provide them. The defaults are populated
as they were at the creation time
GithubActionConfiguration
repoUrl The repo url which will be integrated to ContainerApp. string

Terraform (AzAPI provider) resource definition

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.App/containerApps/sourcecontrols@2022-01-01-preview"
  name = "string"
  body = jsonencode({
    properties = {
      branch = "string"
      githubActionConfiguration = {
        azureCredentials = {
          clientId = "string"
          clientSecret = "string"
          subscriptionId = "string"
          tenantId = "string"
        }
        dockerfilePath = "string"
        os = "string"
        publishType = "string"
        registryInfo = {
          registryPassword = "string"
          registryUrl = "string"
          registryUserName = "string"
        }
        runtimeStack = "string"
        runtimeVersion = "string"
      }
      repoUrl = "string"
    }
  })
}

Property values

AzureCredentials

Name Description Value
clientId Client Id. string

Constraints:
Sensitive value. Pass in as a secure parameter.
clientSecret Client Secret. string

Constraints:
Sensitive value. Pass in as a secure parameter.
subscriptionId Subscription Id. string
tenantId Tenant Id. string

Constraints:
Sensitive value. Pass in as a secure parameter.

GithubActionConfiguration

Name Description Value
azureCredentials AzureCredentials configurations. AzureCredentials
dockerfilePath Docker file path string
os Operation system string
publishType Code or Image string
registryInfo Registry configurations. RegistryInfo
runtimeStack Runtime stack string
runtimeVersion Runtime Version string

Microsoft.App/containerApps/sourcecontrols

Name Description Value
name The resource name string (required)
parent_id The ID of the resource that is the parent for this resource. ID for resource of type: containerApps
properties SourceControl resource specific properties SourceControlProperties
type The resource type "Microsoft.App/containerApps/sourcecontrols@2022-01-01-preview"

RegistryInfo

Name Description Value
registryPassword registry secret. string

Constraints:
Sensitive value. Pass in as a secure parameter.
registryUrl registry server Url. string
registryUserName registry username. string

SourceControlProperties

Name Description Value
branch The branch which will trigger the auto deployment string
githubActionConfiguration Container App Revision Template with all possible settings and the
defaults if user did not provide them. The defaults are populated
as they were at the creation time
GithubActionConfiguration
repoUrl The repo url which will be integrated to ContainerApp. string