SourceControlSlot

class SourceControlSlot : KotlinCustomResource

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"

Properties

Link copied to clipboard
val branch: Output<String>

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 id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val repoUrl: Output<String>

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

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

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

Link copied to clipboard
val scmType: Output<String>

The SCM Type in use. This value is decoded by the service from the repository information supplied.

Link copied to clipboard
val slotId: Output<String>

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

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val useLocalGit: Output<Boolean>?

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

Link copied to clipboard

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>?

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

Link copied to clipboard

Indicates if the Slot uses a GitHub action for deployment. This value is decoded by the service from the repository information supplied.