SourceControlSlotArgs

data class SourceControlSlotArgs(val branch: Output<String>? = null, val githubActionConfiguration: Output<SourceControlSlotGithubActionConfigurationArgs>? = null, val repoUrl: Output<String>? = null, val rollbackEnabled: Output<Boolean>? = null, val slotId: Output<String>? = null, val useLocalGit: Output<Boolean>? = null, val useManualIntegration: Output<Boolean>? = null, val useMercurial: Output<Boolean>? = null) : ConvertibleToJava<SourceControlSlotArgs>

Manages an App Service Source Control Slot.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.appservice.ServicePlan;
import com.pulumi.azure.appservice.ServicePlanArgs;
import com.pulumi.azure.appservice.LinuxWebApp;
import com.pulumi.azure.appservice.LinuxWebAppArgs;
import com.pulumi.azure.appservice.inputs.LinuxWebAppSiteConfigArgs;
import com.pulumi.azure.appservice.LinuxWebAppSlot;
import com.pulumi.azure.appservice.LinuxWebAppSlotArgs;
import com.pulumi.azure.appservice.inputs.LinuxWebAppSlotSiteConfigArgs;
import com.pulumi.azure.appservice.SourceControlSlot;
import com.pulumi.azure.appservice.SourceControlSlotArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleServicePlan = new ServicePlan("exampleServicePlan", ServicePlanArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.osType("Linux")
.skuName("P1v2")
.build());
var exampleLinuxWebApp = new LinuxWebApp("exampleLinuxWebApp", LinuxWebAppArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleServicePlan.location())
.servicePlanId(exampleServicePlan.id())
.siteConfig()
.build());
var exampleLinuxWebAppSlot = new LinuxWebAppSlot("exampleLinuxWebAppSlot", LinuxWebAppSlotArgs.builder()
.appServiceId(exampleLinuxWebApp.id())
.siteConfig()
.build());
var exampleSourceControlSlot = new SourceControlSlot("exampleSourceControlSlot", SourceControlSlotArgs.builder()
.slotId(exampleLinuxWebAppSlot.id())
.repoUrl("https://github.com/Azure-Samples/python-docs-hello-world")
.branch("master")
.build());
}
}

Import

an App Service Source Control Slot can be imported using the resource id, e.g.

$ pulumi import azure:appservice/sourceControlSlot:SourceControlSlot example "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/sites/site1/slots/slot1"

Constructors

Link copied to clipboard
fun SourceControlSlotArgs(branch: Output<String>? = null, githubActionConfiguration: Output<SourceControlSlotGithubActionConfigurationArgs>? = null, repoUrl: Output<String>? = null, rollbackEnabled: Output<Boolean>? = null, slotId: Output<String>? = null, useLocalGit: Output<Boolean>? = null, useManualIntegration: Output<Boolean>? = null, useMercurial: Output<Boolean>? = null)

Functions

Link copied to clipboard
open override fun toJava(): SourceControlSlotArgs

Properties

Link copied to clipboard
val branch: Output<String>? = null

The URL for the repository. Changing this forces a new resource to be created.

Link copied to clipboard

A github_action_configuration block as detailed below. Changing this forces a new resource to be created.

Link copied to clipboard
val repoUrl: Output<String>? = null

The branch name to use for deployments. Changing this forces a new resource to be created.

Link copied to clipboard
val rollbackEnabled: Output<Boolean>? = null

Should the Deployment Rollback be enabled? Defaults to false Changing this forces a new resource to be created.

Link copied to clipboard
val slotId: Output<String>? = null

The ID of the Linux or Windows Web App Slot. Changing this forces a new resource to be created.

Link copied to clipboard
val useLocalGit: Output<Boolean>? = null

Should the Slot use local Git configuration. Changing this forces a new resource to be created.

Link copied to clipboard
val useManualIntegration: Output<Boolean>? = null

Should code be deployed manually. Set to true to disable continuous integration, such as webhooks into online repos such as GitHub. Defaults to false. Changing this forces a new resource to be created.

Link copied to clipboard
val useMercurial: Output<Boolean>? = null

The repository specified is Mercurial. Defaults to false. Changing this forces a new resource to be created.