Microsoft.App containerApps/sourcecontrols 2022-11-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-11-01-preview' = {
  name: 'string'
  parent: resourceSymbolicName
  properties: {
    branch: 'string'
    githubActionConfiguration: {
      azureCredentials: {
        clientId: 'string'
        clientSecret: 'string'
        subscriptionId: 'string'
        tenantId: 'string'
      }
      contextPath: 'string'
      image: 'string'
      os: 'string'
      publishType: 'string'
      registryInfo: {
        registryPassword: 'string'
        registryUrl: 'string'
        registryUserName: 'string'
      }
      runtimeStack: 'string'
      runtimeVersion: 'string'
    }
    repoUrl: 'string'
  }
}

Property values

containerApps/sourcecontrols

Name Description Value
name The resource name

See how to set names and types for child resources in Bicep.
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

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

GithubActionConfiguration

Name Description Value
azureCredentials AzureCredentials configurations. AzureCredentials
contextPath Context path string
image Image name string
os Operation system string
publishType Code or Image string
registryInfo Registry configurations. RegistryInfo
runtimeStack Runtime stack string
runtimeVersion Runtime version string

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.

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

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-11-01-preview",
  "name": "string",
  "properties": {
    "branch": "string",
    "githubActionConfiguration": {
      "azureCredentials": {
        "clientId": "string",
        "clientSecret": "string",
        "subscriptionId": "string",
        "tenantId": "string"
      },
      "contextPath": "string",
      "image": "string",
      "os": "string",
      "publishType": "string",
      "registryInfo": {
        "registryPassword": "string",
        "registryUrl": "string",
        "registryUserName": "string"
      },
      "runtimeStack": "string",
      "runtimeVersion": "string"
    },
    "repoUrl": "string"
  }
}

Property values

containerApps/sourcecontrols

Name Description Value
type The resource type 'Microsoft.App/containerApps/sourcecontrols'
apiVersion The resource api version '2022-11-01-preview'
name The resource name

See how to set names and types for child resources in JSON ARM templates.
string (required)
properties SourceControl resource specific properties SourceControlProperties

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

GithubActionConfiguration

Name Description Value
azureCredentials AzureCredentials configurations. AzureCredentials
contextPath Context path string
image Image name string
os Operation system string
publishType Code or Image string
registryInfo Registry configurations. RegistryInfo
runtimeStack Runtime stack string
runtimeVersion Runtime version string

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.

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

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-11-01-preview"
  name = "string"
  parent_id = "string"
  body = jsonencode({
    properties = {
      branch = "string"
      githubActionConfiguration = {
        azureCredentials = {
          clientId = "string"
          clientSecret = "string"
          subscriptionId = "string"
          tenantId = "string"
        }
        contextPath = "string"
        image = "string"
        os = "string"
        publishType = "string"
        registryInfo = {
          registryPassword = "string"
          registryUrl = "string"
          registryUserName = "string"
        }
        runtimeStack = "string"
        runtimeVersion = "string"
      }
      repoUrl = "string"
    }
  })
}

Property values

containerApps/sourcecontrols

Name Description Value
type The resource type "Microsoft.App/containerApps/sourcecontrols@2022-11-01-preview"
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

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

GithubActionConfiguration

Name Description Value
azureCredentials AzureCredentials configurations. AzureCredentials
contextPath Context path string
image Image name string
os Operation system string
publishType Code or Image string
registryInfo Registry configurations. RegistryInfo
runtimeStack Runtime stack string
runtimeVersion Runtime version string

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.

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