Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
- Latest
- 2025-10-02-preview
- 2025-07-01
- 2025-02-02-preview
- 2025-01-01
- 2024-10-02-preview
- 2024-08-02-preview
- 2024-03-01
- 2024-02-02-preview
- 2023-11-02-preview
- 2023-08-01-preview
- 2023-05-02-preview
- 2023-05-01
- 2023-04-01-preview
- 2022-11-01-preview
- 2022-10-01
- 2022-06-01-preview
- 2022-03-01
- 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
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 |
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 |
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
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' |
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 |
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 |
Usage Examples
Terraform (AzAPI provider) 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 Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.App/containerApps/sourcecontrols@2022-01-01-preview"
name = "string"
parent_id = "string"
body = {
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
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" |
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 |
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 |