Workflow Args
    data class WorkflowArgs(val acr: Output<ACRArgs>? = null, val aksResourceId: Output<String>? = null, val appName: Output<String>? = null, val branchName: Output<String>? = null, val builderVersion: Output<String>? = null, val deploymentProperties: Output<DeploymentPropertiesArgs>? = null, val dockerBuildContext: Output<String>? = null, val dockerfile: Output<String>? = null, val dockerfileGenerationMode: Output<Either<String, DockerfileGenerationMode>>? = null, val dockerfileOutputDirectory: Output<String>? = null, val generationLanguage: Output<Either<String, GenerationLanguage>>? = null, val imageName: Output<String>? = null, val imageTag: Output<String>? = null, val languageVersion: Output<String>? = null, val lastWorkflowRun: Output<WorkflowRunArgs>? = null, val location: Output<String>? = null, val manifestGenerationMode: Output<Either<String, ManifestGenerationMode>>? = null, val manifestOutputDirectory: Output<String>? = null, val manifestType: Output<Either<String, GenerationManifestType>>? = null, val namespace: Output<String>? = null, val oidcCredentials: Output<GitHubWorkflowProfileOidcCredentialsArgs>? = null, val port: Output<String>? = null, val repositoryName: Output<String>? = null, val repositoryOwner: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val workflowName: Output<String>? = null) : ConvertibleToJava<WorkflowArgs> 
Resource representation of a workflow Azure REST API version: 2022-10-11-preview. Prior API version in Azure Native 1.x: 2022-04-01-preview. Other available API versions: 2023-08-01.
Example Usage
Create Workflow
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
    var workflow = new AzureNative.DevHub.Workflow("workflow", new()
    {
        Acr = new AzureNative.DevHub.Inputs.ACRArgs
        {
            AcrRegistryName = "registry1",
            AcrRepositoryName = "repo1",
            AcrResourceGroup = "resourceGroup1",
            AcrSubscriptionId = "subscriptionId1",
        },
        AksResourceId = "/subscriptions/subscriptionId1/resourcegroups/resourceGroup1/providers/Microsoft.ContainerService/managedClusters/cluster1",
        BranchName = "branch1",
        DeploymentProperties = new AzureNative.DevHub.Inputs.DeploymentPropertiesArgs
        {
            KubeManifestLocations = new[]
            {
                "/src/manifests/",
            },
            ManifestType = "kube",
            Overrides =
            {
                { "key1", "value1" },
            },
        },
        DockerBuildContext = "repo1/src/",
        Dockerfile = "repo1/images/Dockerfile",
        Location = "location1",
        Namespace = "namespace1",
        OidcCredentials = new AzureNative.DevHub.Inputs.GitHubWorkflowProfileOidcCredentialsArgs
        {
            AzureClientId = "12345678-3456-7890-5678-012345678901",
            AzureTenantId = "66666666-3456-7890-5678-012345678901",
        },
        RepositoryName = "repo1",
        RepositoryOwner = "owner1",
        ResourceGroupName = "resourceGroup1",
        Tags =
        {
            { "appname", "testApp" },
        },
        WorkflowName = "workflow1",
    });
});Content copied to clipboard
package main
import (
	"github.com/pulumi/pulumi-azure-native-sdk/devhub/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := devhub.NewWorkflow(ctx, "workflow", &devhub.WorkflowArgs{
			Acr: &devhub.ACRArgs{
				AcrRegistryName:   pulumi.String("registry1"),
				AcrRepositoryName: pulumi.String("repo1"),
				AcrResourceGroup:  pulumi.String("resourceGroup1"),
				AcrSubscriptionId: pulumi.String("subscriptionId1"),
			},
			AksResourceId: pulumi.String("/subscriptions/subscriptionId1/resourcegroups/resourceGroup1/providers/Microsoft.ContainerService/managedClusters/cluster1"),
			BranchName:    pulumi.String("branch1"),
			DeploymentProperties: &devhub.DeploymentPropertiesArgs{
				KubeManifestLocations: pulumi.StringArray{
					pulumi.String("/src/manifests/"),
				},
				ManifestType: pulumi.String("kube"),
				Overrides: pulumi.StringMap{
					"key1": pulumi.String("value1"),
				},
			},
			DockerBuildContext: pulumi.String("repo1/src/"),
			Dockerfile:         pulumi.String("repo1/images/Dockerfile"),
			Location:           pulumi.String("location1"),
			Namespace:          pulumi.String("namespace1"),
			OidcCredentials: &devhub.GitHubWorkflowProfileOidcCredentialsArgs{
				AzureClientId: pulumi.String("12345678-3456-7890-5678-012345678901"),
				AzureTenantId: pulumi.String("66666666-3456-7890-5678-012345678901"),
			},
			RepositoryName:    pulumi.String("repo1"),
			RepositoryOwner:   pulumi.String("owner1"),
			ResourceGroupName: pulumi.String("resourceGroup1"),
			Tags: pulumi.StringMap{
				"appname": pulumi.String("testApp"),
			},
			WorkflowName: pulumi.String("workflow1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.devhub.Workflow;
import com.pulumi.azurenative.devhub.WorkflowArgs;
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 workflow = new Workflow("workflow", WorkflowArgs.builder()
            .acr(Map.ofEntries(
                Map.entry("acrRegistryName", "registry1"),
                Map.entry("acrRepositoryName", "repo1"),
                Map.entry("acrResourceGroup", "resourceGroup1"),
                Map.entry("acrSubscriptionId", "subscriptionId1")
            ))
            .aksResourceId("/subscriptions/subscriptionId1/resourcegroups/resourceGroup1/providers/Microsoft.ContainerService/managedClusters/cluster1")
            .branchName("branch1")
            .deploymentProperties(Map.ofEntries(
                Map.entry("kubeManifestLocations", "/src/manifests/"),
                Map.entry("manifestType", "kube"),
                Map.entry("overrides", Map.of("key1", "value1"))
            ))
            .dockerBuildContext("repo1/src/")
            .dockerfile("repo1/images/Dockerfile")
            .location("location1")
            .namespace("namespace1")
            .oidcCredentials(Map.ofEntries(
                Map.entry("azureClientId", "12345678-3456-7890-5678-012345678901"),
                Map.entry("azureTenantId", "66666666-3456-7890-5678-012345678901")
            ))
            .repositoryName("repo1")
            .repositoryOwner("owner1")
            .resourceGroupName("resourceGroup1")
            .tags(Map.of("appname", "testApp"))
            .workflowName("workflow1")
            .build());
    }
}Content copied to clipboard
Create Workflow With Artifact Generation
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
    var workflow = new AzureNative.DevHub.Workflow("workflow", new()
    {
        Acr = new AzureNative.DevHub.Inputs.ACRArgs
        {
            AcrRegistryName = "registry1",
            AcrRepositoryName = "repo1",
            AcrResourceGroup = "resourceGroup1",
            AcrSubscriptionId = "subscriptionId1",
        },
        AksResourceId = "/subscriptions/subscriptionId1/resourcegroups/resourceGroup1/providers/Microsoft.ContainerService/managedClusters/cluster1",
        AppName = "my-app",
        BranchName = "branch1",
        DeploymentProperties = new AzureNative.DevHub.Inputs.DeploymentPropertiesArgs
        {
            KubeManifestLocations = new[]
            {
                "/src/manifests/",
            },
            ManifestType = "kube",
            Overrides =
            {
                { "key1", "value1" },
            },
        },
        DockerBuildContext = "repo1/src/",
        Dockerfile = "repo1/images/Dockerfile",
        DockerfileGenerationMode = "enabled",
        DockerfileOutputDirectory = "./",
        GenerationLanguage = "javascript",
        ImageName = "myimage",
        ImageTag = "latest",
        LanguageVersion = "14",
        Location = "location1",
        ManifestGenerationMode = "enabled",
        ManifestOutputDirectory = "./",
        ManifestType = "kube",
        OidcCredentials = new AzureNative.DevHub.Inputs.GitHubWorkflowProfileOidcCredentialsArgs
        {
            AzureClientId = "12345678-3456-7890-5678-012345678901",
            AzureTenantId = "66666666-3456-7890-5678-012345678901",
        },
        Port = "80",
        RepositoryName = "repo1",
        RepositoryOwner = "owner1",
        ResourceGroupName = "resourceGroup1",
        Tags =
        {
            { "appname", "testApp" },
        },
        WorkflowName = "workflow1",
    });
});Content copied to clipboard
package main
import (
	"github.com/pulumi/pulumi-azure-native-sdk/devhub/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := devhub.NewWorkflow(ctx, "workflow", &devhub.WorkflowArgs{
			Acr: &devhub.ACRArgs{
				AcrRegistryName:   pulumi.String("registry1"),
				AcrRepositoryName: pulumi.String("repo1"),
				AcrResourceGroup:  pulumi.String("resourceGroup1"),
				AcrSubscriptionId: pulumi.String("subscriptionId1"),
			},
			AksResourceId: pulumi.String("/subscriptions/subscriptionId1/resourcegroups/resourceGroup1/providers/Microsoft.ContainerService/managedClusters/cluster1"),
			AppName:       pulumi.String("my-app"),
			BranchName:    pulumi.String("branch1"),
			DeploymentProperties: &devhub.DeploymentPropertiesArgs{
				KubeManifestLocations: pulumi.StringArray{
					pulumi.String("/src/manifests/"),
				},
				ManifestType: pulumi.String("kube"),
				Overrides: pulumi.StringMap{
					"key1": pulumi.String("value1"),
				},
			},
			DockerBuildContext:        pulumi.String("repo1/src/"),
			Dockerfile:                pulumi.String("repo1/images/Dockerfile"),
			DockerfileGenerationMode:  pulumi.String("enabled"),
			DockerfileOutputDirectory: pulumi.String("./"),
			GenerationLanguage:        pulumi.String("javascript"),
			ImageName:                 pulumi.String("myimage"),
			ImageTag:                  pulumi.String("latest"),
			LanguageVersion:           pulumi.String("14"),
			Location:                  pulumi.String("location1"),
			ManifestGenerationMode:    pulumi.String("enabled"),
			ManifestOutputDirectory:   pulumi.String("./"),
			ManifestType:              pulumi.String("kube"),
			OidcCredentials: &devhub.GitHubWorkflowProfileOidcCredentialsArgs{
				AzureClientId: pulumi.String("12345678-3456-7890-5678-012345678901"),
				AzureTenantId: pulumi.String("66666666-3456-7890-5678-012345678901"),
			},
			Port:              pulumi.String("80"),
			RepositoryName:    pulumi.String("repo1"),
			RepositoryOwner:   pulumi.String("owner1"),
			ResourceGroupName: pulumi.String("resourceGroup1"),
			Tags: pulumi.StringMap{
				"appname": pulumi.String("testApp"),
			},
			WorkflowName: pulumi.String("workflow1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.devhub.Workflow;
import com.pulumi.azurenative.devhub.WorkflowArgs;
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 workflow = new Workflow("workflow", WorkflowArgs.builder()
            .acr(Map.ofEntries(
                Map.entry("acrRegistryName", "registry1"),
                Map.entry("acrRepositoryName", "repo1"),
                Map.entry("acrResourceGroup", "resourceGroup1"),
                Map.entry("acrSubscriptionId", "subscriptionId1")
            ))
            .aksResourceId("/subscriptions/subscriptionId1/resourcegroups/resourceGroup1/providers/Microsoft.ContainerService/managedClusters/cluster1")
            .appName("my-app")
            .branchName("branch1")
            .deploymentProperties(Map.ofEntries(
                Map.entry("kubeManifestLocations", "/src/manifests/"),
                Map.entry("manifestType", "kube"),
                Map.entry("overrides", Map.of("key1", "value1"))
            ))
            .dockerBuildContext("repo1/src/")
            .dockerfile("repo1/images/Dockerfile")
            .dockerfileGenerationMode("enabled")
            .dockerfileOutputDirectory("./")
            .generationLanguage("javascript")
            .imageName("myimage")
            .imageTag("latest")
            .languageVersion("14")
            .location("location1")
            .manifestGenerationMode("enabled")
            .manifestOutputDirectory("./")
            .manifestType("kube")
            .oidcCredentials(Map.ofEntries(
                Map.entry("azureClientId", "12345678-3456-7890-5678-012345678901"),
                Map.entry("azureTenantId", "66666666-3456-7890-5678-012345678901")
            ))
            .port("80")
            .repositoryName("repo1")
            .repositoryOwner("owner1")
            .resourceGroupName("resourceGroup1")
            .tags(Map.of("appname", "testApp"))
            .workflowName("workflow1")
            .build());
    }
}Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:devhub:Workflow workflow1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/workflows/{workflowName}Content copied to clipboard
Constructors
Link copied to clipboard
                fun WorkflowArgs(acr: Output<ACRArgs>? = null, aksResourceId: Output<String>? = null, appName: Output<String>? = null, branchName: Output<String>? = null, builderVersion: Output<String>? = null, deploymentProperties: Output<DeploymentPropertiesArgs>? = null, dockerBuildContext: Output<String>? = null, dockerfile: Output<String>? = null, dockerfileGenerationMode: Output<Either<String, DockerfileGenerationMode>>? = null, dockerfileOutputDirectory: Output<String>? = null, generationLanguage: Output<Either<String, GenerationLanguage>>? = null, imageName: Output<String>? = null, imageTag: Output<String>? = null, languageVersion: Output<String>? = null, lastWorkflowRun: Output<WorkflowRunArgs>? = null, location: Output<String>? = null, manifestGenerationMode: Output<Either<String, ManifestGenerationMode>>? = null, manifestOutputDirectory: Output<String>? = null, manifestType: Output<Either<String, GenerationManifestType>>? = null, namespace: Output<String>? = null, oidcCredentials: Output<GitHubWorkflowProfileOidcCredentialsArgs>? = null, port: Output<String>? = null, repositoryName: Output<String>? = null, repositoryOwner: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null, workflowName: Output<String>? = null)
Functions
Properties
Link copied to clipboard
                Link copied to clipboard
                Link copied to clipboard
                Link copied to clipboard
                Link copied to clipboard