PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols/{sourceControlName}/?api-version=2023-08-01-preview
Create or update the SourceControl for a Container App.
Servers
- https://management.azure.com/
Path parameters
Name | Type | Required | Description |
---|---|---|---|
sourceControlName |
String | Yes |
Name of the Container App SourceControl. |
subscriptionId |
String | Yes |
The ID of the target subscription. The value must be an UUID. |
containerAppName |
String | Yes |
Name of the Container App. |
resourceGroupName |
String | Yes |
The name of the resource group. The name is case insensitive. |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
properties |
Object | No |
SourceControl resource specific properties |
properties.operationState |
String | No |
Current provisioning State of the operation Possible values:
|
properties.branch |
String | No |
The branch which will trigger the auto deployment |
properties.githubActionConfiguration |
Object | No |
Configuration properties that define the mutable settings of a Container App SourceControl |
properties.githubActionConfiguration.registryInfo |
Object | No |
Container App registry information. |
properties.githubActionConfiguration.registryInfo.registryPassword |
String | No |
registry secret. |
properties.githubActionConfiguration.registryInfo.registryUrl |
String | No |
registry server Url. |
properties.githubActionConfiguration.registryInfo.registryUserName |
String | No |
registry username. |
properties.githubActionConfiguration.publishType |
String | No |
Code or Image |
properties.githubActionConfiguration.runtimeStack |
String | No |
Runtime stack |
properties.githubActionConfiguration.contextPath |
String | No |
Context path |
properties.githubActionConfiguration.azureCredentials |
Object | No |
Container App credentials. |
properties.githubActionConfiguration.azureCredentials.clientSecret |
String | No |
Client Secret. |
properties.githubActionConfiguration.azureCredentials.tenantId |
String | No |
Tenant Id. |
properties.githubActionConfiguration.azureCredentials.subscriptionId |
String | No |
Subscription Id. |
properties.githubActionConfiguration.azureCredentials.kind |
String | No |
Kind of auth github does for deploying the template |
properties.githubActionConfiguration.azureCredentials.clientId |
String | No |
Client Id. |
properties.githubActionConfiguration.runtimeVersion |
String | No |
Runtime version |
properties.githubActionConfiguration.githubPersonalAccessToken |
String | No |
One time Github PAT to configure github environment |
properties.githubActionConfiguration.os |
String | No |
Operation system |
properties.githubActionConfiguration.image |
String | No |
Image name |
properties.repoUrl |
String | No |
The repo url which will be integrated to ContainerApp. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.