Azure Classic

Pulumi Official
Package maintained by Pulumi
v5.11.0 published on Monday, Jun 27, 2022 by Pulumi

SourceControlSlot

Manages an App Service Source Control Slot.

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
        {
            Location = "West Europe",
        });
        var exampleServicePlan = new Azure.AppService.ServicePlan("exampleServicePlan", new Azure.AppService.ServicePlanArgs
        {
            ResourceGroupName = exampleResourceGroup.Name,
            Location = exampleResourceGroup.Location,
            OsType = "Linux",
            SkuName = "P1v2",
        });
        var exampleLinuxWebApp = new Azure.AppService.LinuxWebApp("exampleLinuxWebApp", new Azure.AppService.LinuxWebAppArgs
        {
            ResourceGroupName = exampleResourceGroup.Name,
            Location = exampleServicePlan.Location,
            ServicePlanId = exampleServicePlan.Id,
            SiteConfig = ,
        });
        var exampleLinuxWebAppSlot = new Azure.AppService.LinuxWebAppSlot("exampleLinuxWebAppSlot", new Azure.AppService.LinuxWebAppSlotArgs
        {
            AppServiceId = exampleLinuxWebApp.Id,
            SiteConfig = ,
        });
        var exampleSourceControlSlot = new Azure.AppService.SourceControlSlot("exampleSourceControlSlot", new Azure.AppService.SourceControlSlotArgs
        {
            SlotId = exampleLinuxWebAppSlot.Id,
            RepoUrl = "https://github.com/Azure-Samples/python-docs-hello-world",
            Branch = "master",
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appservice"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleServicePlan, err := appservice.NewServicePlan(ctx, "exampleServicePlan", &appservice.ServicePlanArgs{
			ResourceGroupName: exampleResourceGroup.Name,
			Location:          exampleResourceGroup.Location,
			OsType:            pulumi.String("Linux"),
			SkuName:           pulumi.String("P1v2"),
		})
		if err != nil {
			return err
		}
		exampleLinuxWebApp, err := appservice.NewLinuxWebApp(ctx, "exampleLinuxWebApp", &appservice.LinuxWebAppArgs{
			ResourceGroupName: exampleResourceGroup.Name,
			Location:          exampleServicePlan.Location,
			ServicePlanId:     exampleServicePlan.ID(),
			SiteConfig:        nil,
		})
		if err != nil {
			return err
		}
		exampleLinuxWebAppSlot, err := appservice.NewLinuxWebAppSlot(ctx, "exampleLinuxWebAppSlot", &appservice.LinuxWebAppSlotArgs{
			AppServiceId: exampleLinuxWebApp.ID(),
			SiteConfig:   nil,
		})
		if err != nil {
			return err
		}
		_, err = appservice.NewSourceControlSlot(ctx, "exampleSourceControlSlot", &appservice.SourceControlSlotArgs{
			SlotId:  exampleLinuxWebAppSlot.ID(),
			RepoUrl: pulumi.String("https://github.com/Azure-Samples/python-docs-hello-world"),
			Branch:  pulumi.String("master"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

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 pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_service_plan = azure.appservice.ServicePlan("exampleServicePlan",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    os_type="Linux",
    sku_name="P1v2")
example_linux_web_app = azure.appservice.LinuxWebApp("exampleLinuxWebApp",
    resource_group_name=example_resource_group.name,
    location=example_service_plan.location,
    service_plan_id=example_service_plan.id,
    site_config=azure.appservice.LinuxWebAppSiteConfigArgs())
example_linux_web_app_slot = azure.appservice.LinuxWebAppSlot("exampleLinuxWebAppSlot",
    app_service_id=example_linux_web_app.id,
    site_config=azure.appservice.LinuxWebAppSlotSiteConfigArgs())
example_source_control_slot = azure.appservice.SourceControlSlot("exampleSourceControlSlot",
    slot_id=example_linux_web_app_slot.id,
    repo_url="https://github.com/Azure-Samples/python-docs-hello-world",
    branch="master")
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleServicePlan = new azure.appservice.ServicePlan("exampleServicePlan", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    osType: "Linux",
    skuName: "P1v2",
});
const exampleLinuxWebApp = new azure.appservice.LinuxWebApp("exampleLinuxWebApp", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleServicePlan.location,
    servicePlanId: exampleServicePlan.id,
    siteConfig: {},
});
const exampleLinuxWebAppSlot = new azure.appservice.LinuxWebAppSlot("exampleLinuxWebAppSlot", {
    appServiceId: exampleLinuxWebApp.id,
    siteConfig: {},
});
const exampleSourceControlSlot = new azure.appservice.SourceControlSlot("exampleSourceControlSlot", {
    slotId: exampleLinuxWebAppSlot.id,
    repoUrl: "https://github.com/Azure-Samples/python-docs-hello-world",
    branch: "master",
});
resources:
  exampleResourceGroup:
    type: azure:core:ResourceGroup
    properties:
      location: West Europe
  exampleServicePlan:
    type: azure:appservice:ServicePlan
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.location}
      osType: Linux
      skuName: P1v2
  exampleLinuxWebApp:
    type: azure:appservice:LinuxWebApp
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleServicePlan.location}
      servicePlanId: ${exampleServicePlan.id}
      siteConfig: {}
  exampleLinuxWebAppSlot:
    type: azure:appservice:LinuxWebAppSlot
    properties:
      appServiceId: ${exampleLinuxWebApp.id}
      siteConfig: {}
  exampleSourceControlSlot:
    type: azure:appservice:SourceControlSlot
    properties:
      slotId: ${exampleLinuxWebAppSlot.id}
      repoUrl: https://github.com/Azure-Samples/python-docs-hello-world
      branch: master

Create a SourceControlSlot Resource

new SourceControlSlot(name: string, args: SourceControlSlotArgs, opts?: CustomResourceOptions);
@overload
def SourceControlSlot(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      branch: Optional[str] = None,
                      github_action_configuration: Optional[SourceControlSlotGithubActionConfigurationArgs] = None,
                      repo_url: Optional[str] = None,
                      rollback_enabled: Optional[bool] = None,
                      slot_id: Optional[str] = None,
                      use_local_git: Optional[bool] = None,
                      use_manual_integration: Optional[bool] = None,
                      use_mercurial: Optional[bool] = None)
@overload
def SourceControlSlot(resource_name: str,
                      args: SourceControlSlotArgs,
                      opts: Optional[ResourceOptions] = None)
func NewSourceControlSlot(ctx *Context, name string, args SourceControlSlotArgs, opts ...ResourceOption) (*SourceControlSlot, error)
public SourceControlSlot(string name, SourceControlSlotArgs args, CustomResourceOptions? opts = null)
public SourceControlSlot(String name, SourceControlSlotArgs args)
public SourceControlSlot(String name, SourceControlSlotArgs args, CustomResourceOptions options)
type: azure:appservice:SourceControlSlot
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args SourceControlSlotArgs
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 SourceControlSlotArgs
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 SourceControlSlotArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args SourceControlSlotArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args SourceControlSlotArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

SourceControlSlot 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 SourceControlSlot resource accepts the following input properties:

SlotId string

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

Branch string

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

GithubActionConfiguration SourceControlSlotGithubActionConfigurationArgs

A github_action_configuration block as detailed below.

RepoUrl string

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

RollbackEnabled bool

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

UseLocalGit bool

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

UseManualIntegration bool

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.

UseMercurial bool

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

SlotId string

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

Branch string

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

GithubActionConfiguration SourceControlSlotGithubActionConfigurationArgs

A github_action_configuration block as detailed below.

RepoUrl string

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

RollbackEnabled bool

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

UseLocalGit bool

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

UseManualIntegration bool

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.

UseMercurial bool

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

slotId String

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

branch String

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

githubActionConfiguration SourceControlSlotGithubActionConfigurationArgs

A github_action_configuration block as detailed below.

repoUrl String

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

rollbackEnabled Boolean

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

useLocalGit Boolean

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

useManualIntegration Boolean

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.

useMercurial Boolean

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

slotId string

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

branch string

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

githubActionConfiguration SourceControlSlotGithubActionConfigurationArgs

A github_action_configuration block as detailed below.

repoUrl string

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

rollbackEnabled boolean

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

useLocalGit boolean

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

useManualIntegration boolean

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.

useMercurial boolean

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

slot_id str

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

branch str

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

github_action_configuration SourceControlSlotGithubActionConfigurationArgs

A github_action_configuration block as detailed below.

repo_url str

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

rollback_enabled bool

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

use_local_git bool

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

use_manual_integration bool

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.

use_mercurial bool

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

slotId String

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

branch String

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

githubActionConfiguration Property Map

A github_action_configuration block as detailed below.

repoUrl String

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

rollbackEnabled Boolean

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

useLocalGit Boolean

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

useManualIntegration Boolean

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.

useMercurial Boolean

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

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

ScmType string

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

UsesGithubAction bool

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

Id string

The provider-assigned unique ID for this managed resource.

ScmType string

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

UsesGithubAction bool

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

id String

The provider-assigned unique ID for this managed resource.

scmType String

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

usesGithubAction Boolean

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

id string

The provider-assigned unique ID for this managed resource.

scmType string

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

usesGithubAction boolean

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

id str

The provider-assigned unique ID for this managed resource.

scm_type str

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

uses_github_action bool

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

id String

The provider-assigned unique ID for this managed resource.

scmType String

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

usesGithubAction Boolean

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

Look up an Existing SourceControlSlot Resource

Get an existing SourceControlSlot resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: SourceControlSlotState, opts?: CustomResourceOptions): SourceControlSlot
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        branch: Optional[str] = None,
        github_action_configuration: Optional[SourceControlSlotGithubActionConfigurationArgs] = None,
        repo_url: Optional[str] = None,
        rollback_enabled: Optional[bool] = None,
        scm_type: Optional[str] = None,
        slot_id: Optional[str] = None,
        use_local_git: Optional[bool] = None,
        use_manual_integration: Optional[bool] = None,
        use_mercurial: Optional[bool] = None,
        uses_github_action: Optional[bool] = None) -> SourceControlSlot
func GetSourceControlSlot(ctx *Context, name string, id IDInput, state *SourceControlSlotState, opts ...ResourceOption) (*SourceControlSlot, error)
public static SourceControlSlot Get(string name, Input<string> id, SourceControlSlotState? state, CustomResourceOptions? opts = null)
public static SourceControlSlot get(String name, Output<String> id, SourceControlSlotState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Branch string

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

GithubActionConfiguration SourceControlSlotGithubActionConfigurationArgs

A github_action_configuration block as detailed below.

RepoUrl string

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

RollbackEnabled bool

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

ScmType string

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

SlotId string

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

UseLocalGit bool

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

UseManualIntegration bool

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.

UseMercurial bool

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

UsesGithubAction bool

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

Branch string

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

GithubActionConfiguration SourceControlSlotGithubActionConfigurationArgs

A github_action_configuration block as detailed below.

RepoUrl string

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

RollbackEnabled bool

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

ScmType string

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

SlotId string

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

UseLocalGit bool

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

UseManualIntegration bool

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.

UseMercurial bool

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

UsesGithubAction bool

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

branch String

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

githubActionConfiguration SourceControlSlotGithubActionConfigurationArgs

A github_action_configuration block as detailed below.

repoUrl String

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

rollbackEnabled Boolean

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

scmType String

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

slotId String

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

useLocalGit Boolean

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

useManualIntegration Boolean

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.

useMercurial Boolean

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

usesGithubAction Boolean

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

branch string

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

githubActionConfiguration SourceControlSlotGithubActionConfigurationArgs

A github_action_configuration block as detailed below.

repoUrl string

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

rollbackEnabled boolean

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

scmType string

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

slotId string

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

useLocalGit boolean

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

useManualIntegration boolean

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.

useMercurial boolean

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

usesGithubAction boolean

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

branch str

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

github_action_configuration SourceControlSlotGithubActionConfigurationArgs

A github_action_configuration block as detailed below.

repo_url str

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

rollback_enabled bool

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

scm_type str

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

slot_id str

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

use_local_git bool

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

use_manual_integration bool

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.

use_mercurial bool

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

uses_github_action bool

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

branch String

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

githubActionConfiguration Property Map

A github_action_configuration block as detailed below.

repoUrl String

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

rollbackEnabled Boolean

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

scmType String

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

slotId String

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

useLocalGit Boolean

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

useManualIntegration Boolean

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.

useMercurial Boolean

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

usesGithubAction Boolean

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

Supporting Types

SourceControlSlotGithubActionConfiguration

CodeConfiguration SourceControlSlotGithubActionConfigurationCodeConfiguration

A code_configuration block as detailed below.

ContainerConfiguration SourceControlSlotGithubActionConfigurationContainerConfiguration

A container_configuration block as detailed below.

GenerateWorkflowFile bool

Should the service generate the GitHub Action Workflow file. Defaults to true Changing this forces a new resource to be created.

LinuxAction bool

Denotes this action uses a Linux base image.

CodeConfiguration SourceControlSlotGithubActionConfigurationCodeConfiguration

A code_configuration block as detailed below.

ContainerConfiguration SourceControlSlotGithubActionConfigurationContainerConfiguration

A container_configuration block as detailed below.

GenerateWorkflowFile bool

Should the service generate the GitHub Action Workflow file. Defaults to true Changing this forces a new resource to be created.

LinuxAction bool

Denotes this action uses a Linux base image.

codeConfiguration SourceControlSlotGithubActionConfigurationCodeConfiguration

A code_configuration block as detailed below.

containerConfiguration SourceControlSlotGithubActionConfigurationContainerConfiguration

A container_configuration block as detailed below.

generateWorkflowFile Boolean

Should the service generate the GitHub Action Workflow file. Defaults to true Changing this forces a new resource to be created.

linuxAction Boolean

Denotes this action uses a Linux base image.

codeConfiguration SourceControlSlotGithubActionConfigurationCodeConfiguration

A code_configuration block as detailed below.

containerConfiguration SourceControlSlotGithubActionConfigurationContainerConfiguration

A container_configuration block as detailed below.

generateWorkflowFile boolean

Should the service generate the GitHub Action Workflow file. Defaults to true Changing this forces a new resource to be created.

linuxAction boolean

Denotes this action uses a Linux base image.

code_configuration SourceControlSlotGithubActionConfigurationCodeConfiguration

A code_configuration block as detailed below.

container_configuration SourceControlSlotGithubActionConfigurationContainerConfiguration

A container_configuration block as detailed below.

generate_workflow_file bool

Should the service generate the GitHub Action Workflow file. Defaults to true Changing this forces a new resource to be created.

linux_action bool

Denotes this action uses a Linux base image.

codeConfiguration Property Map

A code_configuration block as detailed below.

containerConfiguration Property Map

A container_configuration block as detailed below.

generateWorkflowFile Boolean

Should the service generate the GitHub Action Workflow file. Defaults to true Changing this forces a new resource to be created.

linuxAction Boolean

Denotes this action uses a Linux base image.

SourceControlSlotGithubActionConfigurationCodeConfiguration

RuntimeStack string

The value to use for the Runtime Stack in the workflow file content for code base apps. Changing this forces a new resource to be created.

RuntimeVersion string

The value to use for the Runtime Version in the workflow file content for code base apps. Changing this forces a new resource to be created.

RuntimeStack string

The value to use for the Runtime Stack in the workflow file content for code base apps. Changing this forces a new resource to be created.

RuntimeVersion string

The value to use for the Runtime Version in the workflow file content for code base apps. Changing this forces a new resource to be created.

runtimeStack String

The value to use for the Runtime Stack in the workflow file content for code base apps. Changing this forces a new resource to be created.

runtimeVersion String

The value to use for the Runtime Version in the workflow file content for code base apps. Changing this forces a new resource to be created.

runtimeStack string

The value to use for the Runtime Stack in the workflow file content for code base apps. Changing this forces a new resource to be created.

runtimeVersion string

The value to use for the Runtime Version in the workflow file content for code base apps. Changing this forces a new resource to be created.

runtime_stack str

The value to use for the Runtime Stack in the workflow file content for code base apps. Changing this forces a new resource to be created.

runtime_version str

The value to use for the Runtime Version in the workflow file content for code base apps. Changing this forces a new resource to be created.

runtimeStack String

The value to use for the Runtime Stack in the workflow file content for code base apps. Changing this forces a new resource to be created.

runtimeVersion String

The value to use for the Runtime Version in the workflow file content for code base apps. Changing this forces a new resource to be created.

SourceControlSlotGithubActionConfigurationContainerConfiguration

ImageName string

The image name for the build. Changing this forces a new resource to be created.

RegistryUrl string

The server URL for the container registry where the build will be hosted. Changing this forces a new resource to be created.

RegistryPassword string

The password used to upload the image to the container registry. Changing this forces a new resource to be created.

RegistryUsername string

The username used to upload the image to the container registry. Changing this forces a new resource to be created.

ImageName string

The image name for the build. Changing this forces a new resource to be created.

RegistryUrl string

The server URL for the container registry where the build will be hosted. Changing this forces a new resource to be created.

RegistryPassword string

The password used to upload the image to the container registry. Changing this forces a new resource to be created.

RegistryUsername string

The username used to upload the image to the container registry. Changing this forces a new resource to be created.

imageName String

The image name for the build. Changing this forces a new resource to be created.

registryUrl String

The server URL for the container registry where the build will be hosted. Changing this forces a new resource to be created.

registryPassword String

The password used to upload the image to the container registry. Changing this forces a new resource to be created.

registryUsername String

The username used to upload the image to the container registry. Changing this forces a new resource to be created.

imageName string

The image name for the build. Changing this forces a new resource to be created.

registryUrl string

The server URL for the container registry where the build will be hosted. Changing this forces a new resource to be created.

registryPassword string

The password used to upload the image to the container registry. Changing this forces a new resource to be created.

registryUsername string

The username used to upload the image to the container registry. Changing this forces a new resource to be created.

image_name str

The image name for the build. Changing this forces a new resource to be created.

registry_url str

The server URL for the container registry where the build will be hosted. Changing this forces a new resource to be created.

registry_password str

The password used to upload the image to the container registry. Changing this forces a new resource to be created.

registry_username str

The username used to upload the image to the container registry. Changing this forces a new resource to be created.

imageName String

The image name for the build. Changing this forces a new resource to be created.

registryUrl String

The server URL for the container registry where the build will be hosted. Changing this forces a new resource to be created.

registryPassword String

The password used to upload the image to the container registry. Changing this forces a new resource to be created.

registryUsername String

The username used to upload the image to the container registry. Changing this forces a new resource to be created.

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"

Package Details

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

This Pulumi package is based on the azurerm Terraform Provider.