Azure Native

v1.87.0 published on Tuesday, Nov 22, 2022 by Pulumi

ContainerAppsSourceControl

Container App SourceControl. API Version: 2022-03-01.

Example Usage

Create or Update Container App SourceControl

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var containerAppsSourceControl = new AzureNative.App.ContainerAppsSourceControl("containerAppsSourceControl", new()
    {
        Branch = "master",
        ContainerAppName = "testcanadacentral",
        GithubActionConfiguration = new AzureNative.App.Inputs.GithubActionConfigurationArgs
        {
            AzureCredentials = new AzureNative.App.Inputs.AzureCredentialsArgs
            {
                ClientId = "<clientid>",
                ClientSecret = "<clientsecret>",
                TenantId = "<tenantid>",
            },
            ContextPath = "./",
            Image = "image/tag",
            RegistryInfo = new AzureNative.App.Inputs.RegistryInfoArgs
            {
                RegistryPassword = "<registrypassword>",
                RegistryUrl = "xwang971reg.azurecr.io",
                RegistryUserName = "xwang971reg",
            },
        },
        RepoUrl = "https://github.com/xwang971/ghatest",
        ResourceGroupName = "workerapps-rg-xj",
        SourceControlName = "current",
    });

});
package main

import (
	app "github.com/pulumi/pulumi-azure-native/sdk/go/azure/app"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := app.NewContainerAppsSourceControl(ctx, "containerAppsSourceControl", &app.ContainerAppsSourceControlArgs{
			Branch:           pulumi.String("master"),
			ContainerAppName: pulumi.String("testcanadacentral"),
			GithubActionConfiguration: app.GithubActionConfigurationResponse{
				AzureCredentials: &app.AzureCredentialsArgs{
					ClientId:     pulumi.String("<clientid>"),
					ClientSecret: pulumi.String("<clientsecret>"),
					TenantId:     pulumi.String("<tenantid>"),
				},
				ContextPath: pulumi.String("./"),
				Image:       pulumi.String("image/tag"),
				RegistryInfo: &app.RegistryInfoArgs{
					RegistryPassword: pulumi.String("<registrypassword>"),
					RegistryUrl:      pulumi.String("xwang971reg.azurecr.io"),
					RegistryUserName: pulumi.String("xwang971reg"),
				},
			},
			RepoUrl:           pulumi.String("https://github.com/xwang971/ghatest"),
			ResourceGroupName: pulumi.String("workerapps-rg-xj"),
			SourceControlName: pulumi.String("current"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.app.ContainerAppsSourceControl;
import com.pulumi.azurenative.app.ContainerAppsSourceControlArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var containerAppsSourceControl = new ContainerAppsSourceControl("containerAppsSourceControl", ContainerAppsSourceControlArgs.builder()        
            .branch("master")
            .containerAppName("testcanadacentral")
            .githubActionConfiguration(Map.ofEntries(
                Map.entry("azureCredentials", Map.ofEntries(
                    Map.entry("clientId", "<clientid>"),
                    Map.entry("clientSecret", "<clientsecret>"),
                    Map.entry("tenantId", "<tenantid>")
                )),
                Map.entry("contextPath", "./"),
                Map.entry("image", "image/tag"),
                Map.entry("registryInfo", Map.ofEntries(
                    Map.entry("registryPassword", "<registrypassword>"),
                    Map.entry("registryUrl", "xwang971reg.azurecr.io"),
                    Map.entry("registryUserName", "xwang971reg")
                ))
            ))
            .repoUrl("https://github.com/xwang971/ghatest")
            .resourceGroupName("workerapps-rg-xj")
            .sourceControlName("current")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

container_apps_source_control = azure_native.app.ContainerAppsSourceControl("containerAppsSourceControl",
    branch="master",
    container_app_name="testcanadacentral",
    github_action_configuration=azure_native.app.GithubActionConfigurationResponseArgs(
        azure_credentials=azure_native.app.AzureCredentialsArgs(
            client_id="<clientid>",
            client_secret="<clientsecret>",
            tenant_id="<tenantid>",
        ),
        context_path="./",
        image="image/tag",
        registry_info=azure_native.app.RegistryInfoArgs(
            registry_password="<registrypassword>",
            registry_url="xwang971reg.azurecr.io",
            registry_user_name="xwang971reg",
        ),
    ),
    repo_url="https://github.com/xwang971/ghatest",
    resource_group_name="workerapps-rg-xj",
    source_control_name="current")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const containerAppsSourceControl = new azure_native.app.ContainerAppsSourceControl("containerAppsSourceControl", {
    branch: "master",
    containerAppName: "testcanadacentral",
    githubActionConfiguration: {
        azureCredentials: {
            clientId: "<clientid>",
            clientSecret: "<clientsecret>",
            tenantId: "<tenantid>",
        },
        contextPath: "./",
        image: "image/tag",
        registryInfo: {
            registryPassword: "<registrypassword>",
            registryUrl: "xwang971reg.azurecr.io",
            registryUserName: "xwang971reg",
        },
    },
    repoUrl: "https://github.com/xwang971/ghatest",
    resourceGroupName: "workerapps-rg-xj",
    sourceControlName: "current",
});
resources:
  containerAppsSourceControl:
    type: azure-native:app:ContainerAppsSourceControl
    properties:
      branch: master
      containerAppName: testcanadacentral
      githubActionConfiguration:
        azureCredentials:
          clientId: <clientid>
          clientSecret: <clientsecret>
          tenantId: <tenantid>
        contextPath: ./
        image: image/tag
        registryInfo:
          registryPassword: <registrypassword>
          registryUrl: xwang971reg.azurecr.io
          registryUserName: xwang971reg
      repoUrl: https://github.com/xwang971/ghatest
      resourceGroupName: workerapps-rg-xj
      sourceControlName: current

Create ContainerAppsSourceControl Resource

new ContainerAppsSourceControl(name: string, args: ContainerAppsSourceControlArgs, opts?: CustomResourceOptions);
@overload
def ContainerAppsSourceControl(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               branch: Optional[str] = None,
                               container_app_name: Optional[str] = None,
                               github_action_configuration: Optional[GithubActionConfigurationArgs] = None,
                               repo_url: Optional[str] = None,
                               resource_group_name: Optional[str] = None,
                               source_control_name: Optional[str] = None)
@overload
def ContainerAppsSourceControl(resource_name: str,
                               args: ContainerAppsSourceControlArgs,
                               opts: Optional[ResourceOptions] = None)
func NewContainerAppsSourceControl(ctx *Context, name string, args ContainerAppsSourceControlArgs, opts ...ResourceOption) (*ContainerAppsSourceControl, error)
public ContainerAppsSourceControl(string name, ContainerAppsSourceControlArgs args, CustomResourceOptions? opts = null)
public ContainerAppsSourceControl(String name, ContainerAppsSourceControlArgs args)
public ContainerAppsSourceControl(String name, ContainerAppsSourceControlArgs args, CustomResourceOptions options)
type: azure-native:app:ContainerAppsSourceControl
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ContainerAppsSourceControlArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args ContainerAppsSourceControlArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ContainerAppsSourceControlArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ContainerAppsSourceControlArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ContainerAppsSourceControlArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

ContainerAppsSourceControl Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The ContainerAppsSourceControl resource accepts the following input properties:

ContainerAppName string

Name of the Container App.

ResourceGroupName string

The name of the resource group. The name is case insensitive.

Branch string

The branch which will trigger the auto deployment

GithubActionConfiguration Pulumi.AzureNative.App.Inputs.GithubActionConfigurationArgs

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

RepoUrl string

The repo url which will be integrated to ContainerApp.

SourceControlName string

Name of the Container App SourceControl.

ContainerAppName string

Name of the Container App.

ResourceGroupName string

The name of the resource group. The name is case insensitive.

Branch string

The branch which will trigger the auto deployment

GithubActionConfiguration GithubActionConfigurationArgs

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

RepoUrl string

The repo url which will be integrated to ContainerApp.

SourceControlName string

Name of the Container App SourceControl.

containerAppName String

Name of the Container App.

resourceGroupName String

The name of the resource group. The name is case insensitive.

branch String

The branch which will trigger the auto deployment

githubActionConfiguration GithubActionConfigurationArgs

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

repoUrl String

The repo url which will be integrated to ContainerApp.

sourceControlName String

Name of the Container App SourceControl.

containerAppName string

Name of the Container App.

resourceGroupName string

The name of the resource group. The name is case insensitive.

branch string

The branch which will trigger the auto deployment

githubActionConfiguration GithubActionConfigurationArgs

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

repoUrl string

The repo url which will be integrated to ContainerApp.

sourceControlName string

Name of the Container App SourceControl.

container_app_name str

Name of the Container App.

resource_group_name str

The name of the resource group. The name is case insensitive.

branch str

The branch which will trigger the auto deployment

github_action_configuration GithubActionConfigurationArgs

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

repo_url str

The repo url which will be integrated to ContainerApp.

source_control_name str

Name of the Container App SourceControl.

containerAppName String

Name of the Container App.

resourceGroupName String

The name of the resource group. The name is case insensitive.

branch String

The branch which will trigger the auto deployment

githubActionConfiguration Property Map

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

repoUrl String

The repo url which will be integrated to ContainerApp.

sourceControlName String

Name of the Container App SourceControl.

Outputs

All input properties are implicitly available as output properties. Additionally, the ContainerAppsSourceControl resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the resource

OperationState string

Current provisioning State of the operation

SystemData Pulumi.AzureNative.App.Outputs.SystemDataResponse

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Type string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the resource

OperationState string

Current provisioning State of the operation

SystemData SystemDataResponse

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Type string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the resource

operationState String

Current provisioning State of the operation

systemData SystemDataResponse

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type String

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

id string

The provider-assigned unique ID for this managed resource.

name string

The name of the resource

operationState string

Current provisioning State of the operation

systemData SystemDataResponse

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

id str

The provider-assigned unique ID for this managed resource.

name str

The name of the resource

operation_state str

Current provisioning State of the operation

system_data SystemDataResponse

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type str

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the resource

operationState String

Current provisioning State of the operation

systemData Property Map

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type String

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Supporting Types

AzureCredentials

ClientId string

Client Id.

ClientSecret string

Client Secret.

SubscriptionId string

Subscription Id.

TenantId string

Tenant Id.

ClientId string

Client Id.

ClientSecret string

Client Secret.

SubscriptionId string

Subscription Id.

TenantId string

Tenant Id.

clientId String

Client Id.

clientSecret String

Client Secret.

subscriptionId String

Subscription Id.

tenantId String

Tenant Id.

clientId string

Client Id.

clientSecret string

Client Secret.

subscriptionId string

Subscription Id.

tenantId string

Tenant Id.

client_id str

Client Id.

client_secret str

Client Secret.

subscription_id str

Subscription Id.

tenant_id str

Tenant Id.

clientId String

Client Id.

clientSecret String

Client Secret.

subscriptionId String

Subscription Id.

tenantId String

Tenant Id.

AzureCredentialsResponse

SubscriptionId string

Subscription Id.

SubscriptionId string

Subscription Id.

subscriptionId String

Subscription Id.

subscriptionId string

Subscription Id.

subscription_id str

Subscription Id.

subscriptionId String

Subscription Id.

GithubActionConfiguration

AzureCredentials Pulumi.AzureNative.App.Inputs.AzureCredentials

AzureCredentials configurations.

ContextPath string

Context path

Image string

Image name

Os string

Operation system

PublishType string

Code or Image

RegistryInfo Pulumi.AzureNative.App.Inputs.RegistryInfo

Registry configurations.

RuntimeStack string

Runtime stack

RuntimeVersion string

Runtime version

AzureCredentials AzureCredentials

AzureCredentials configurations.

ContextPath string

Context path

Image string

Image name

Os string

Operation system

PublishType string

Code or Image

RegistryInfo RegistryInfo

Registry configurations.

RuntimeStack string

Runtime stack

RuntimeVersion string

Runtime version

azureCredentials AzureCredentials

AzureCredentials configurations.

contextPath String

Context path

image String

Image name

os String

Operation system

publishType String

Code or Image

registryInfo RegistryInfo

Registry configurations.

runtimeStack String

Runtime stack

runtimeVersion String

Runtime version

azureCredentials AzureCredentials

AzureCredentials configurations.

contextPath string

Context path

image string

Image name

os string

Operation system

publishType string

Code or Image

registryInfo RegistryInfo

Registry configurations.

runtimeStack string

Runtime stack

runtimeVersion string

Runtime version

azure_credentials AzureCredentials

AzureCredentials configurations.

context_path str

Context path

image str

Image name

os str

Operation system

publish_type str

Code or Image

registry_info RegistryInfo

Registry configurations.

runtime_stack str

Runtime stack

runtime_version str

Runtime version

azureCredentials Property Map

AzureCredentials configurations.

contextPath String

Context path

image String

Image name

os String

Operation system

publishType String

Code or Image

registryInfo Property Map

Registry configurations.

runtimeStack String

Runtime stack

runtimeVersion String

Runtime version

GithubActionConfigurationResponse

AzureCredentials Pulumi.AzureNative.App.Inputs.AzureCredentialsResponse

AzureCredentials configurations.

ContextPath string

Context path

Image string

Image name

Os string

Operation system

PublishType string

Code or Image

RegistryInfo Pulumi.AzureNative.App.Inputs.RegistryInfoResponse

Registry configurations.

RuntimeStack string

Runtime stack

RuntimeVersion string

Runtime version

AzureCredentials AzureCredentialsResponse

AzureCredentials configurations.

ContextPath string

Context path

Image string

Image name

Os string

Operation system

PublishType string

Code or Image

RegistryInfo RegistryInfoResponse

Registry configurations.

RuntimeStack string

Runtime stack

RuntimeVersion string

Runtime version

azureCredentials AzureCredentialsResponse

AzureCredentials configurations.

contextPath String

Context path

image String

Image name

os String

Operation system

publishType String

Code or Image

registryInfo RegistryInfoResponse

Registry configurations.

runtimeStack String

Runtime stack

runtimeVersion String

Runtime version

azureCredentials AzureCredentialsResponse

AzureCredentials configurations.

contextPath string

Context path

image string

Image name

os string

Operation system

publishType string

Code or Image

registryInfo RegistryInfoResponse

Registry configurations.

runtimeStack string

Runtime stack

runtimeVersion string

Runtime version

azure_credentials AzureCredentialsResponse

AzureCredentials configurations.

context_path str

Context path

image str

Image name

os str

Operation system

publish_type str

Code or Image

registry_info RegistryInfoResponse

Registry configurations.

runtime_stack str

Runtime stack

runtime_version str

Runtime version

azureCredentials Property Map

AzureCredentials configurations.

contextPath String

Context path

image String

Image name

os String

Operation system

publishType String

Code or Image

registryInfo Property Map

Registry configurations.

runtimeStack String

Runtime stack

runtimeVersion String

Runtime version

RegistryInfo

RegistryPassword string

registry secret.

RegistryUrl string

registry server Url.

RegistryUserName string

registry username.

RegistryPassword string

registry secret.

RegistryUrl string

registry server Url.

RegistryUserName string

registry username.

registryPassword String

registry secret.

registryUrl String

registry server Url.

registryUserName String

registry username.

registryPassword string

registry secret.

registryUrl string

registry server Url.

registryUserName string

registry username.

registry_password str

registry secret.

registry_url str

registry server Url.

registry_user_name str

registry username.

registryPassword String

registry secret.

registryUrl String

registry server Url.

registryUserName String

registry username.

RegistryInfoResponse

RegistryUrl string

registry server Url.

RegistryUserName string

registry username.

RegistryUrl string

registry server Url.

RegistryUserName string

registry username.

registryUrl String

registry server Url.

registryUserName String

registry username.

registryUrl string

registry server Url.

registryUserName string

registry username.

registry_url str

registry server Url.

registry_user_name str

registry username.

registryUrl String

registry server Url.

registryUserName String

registry username.

SystemDataResponse

CreatedAt string

The timestamp of resource creation (UTC).

CreatedBy string

The identity that created the resource.

CreatedByType string

The type of identity that created the resource.

LastModifiedAt string

The timestamp of resource last modification (UTC)

LastModifiedBy string

The identity that last modified the resource.

LastModifiedByType string

The type of identity that last modified the resource.

CreatedAt string

The timestamp of resource creation (UTC).

CreatedBy string

The identity that created the resource.

CreatedByType string

The type of identity that created the resource.

LastModifiedAt string

The timestamp of resource last modification (UTC)

LastModifiedBy string

The identity that last modified the resource.

LastModifiedByType string

The type of identity that last modified the resource.

createdAt String

The timestamp of resource creation (UTC).

createdBy String

The identity that created the resource.

createdByType String

The type of identity that created the resource.

lastModifiedAt String

The timestamp of resource last modification (UTC)

lastModifiedBy String

The identity that last modified the resource.

lastModifiedByType String

The type of identity that last modified the resource.

createdAt string

The timestamp of resource creation (UTC).

createdBy string

The identity that created the resource.

createdByType string

The type of identity that created the resource.

lastModifiedAt string

The timestamp of resource last modification (UTC)

lastModifiedBy string

The identity that last modified the resource.

lastModifiedByType string

The type of identity that last modified the resource.

created_at str

The timestamp of resource creation (UTC).

created_by str

The identity that created the resource.

created_by_type str

The type of identity that created the resource.

last_modified_at str

The timestamp of resource last modification (UTC)

last_modified_by str

The identity that last modified the resource.

last_modified_by_type str

The type of identity that last modified the resource.

createdAt String

The timestamp of resource creation (UTC).

createdBy String

The identity that created the resource.

createdByType String

The type of identity that created the resource.

lastModifiedAt String

The timestamp of resource last modification (UTC)

lastModifiedBy String

The identity that last modified the resource.

lastModifiedByType String

The type of identity that last modified the resource.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:app:ContainerAppsSourceControl current /subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/sourcecontrols/current 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0