azure.appservice.SourceControl
Manages an App Service Web App or Function App Source Control Configuration.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
{
Location = "West Europe",
});
var exampleServicePlan = new Azure.AppService.ServicePlan("exampleServicePlan", new()
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
OsType = "Linux",
SkuName = "P1v2",
});
var exampleLinuxWebApp = new Azure.AppService.LinuxWebApp("exampleLinuxWebApp", new()
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleServicePlan.Location,
ServicePlanId = exampleServicePlan.Id,
SiteConfig = null,
});
var exampleSourceControl = new Azure.AppService.SourceControl("exampleSourceControl", new()
{
AppId = exampleLinuxWebApp.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
}
_, err = appservice.NewSourceControl(ctx, "exampleSourceControl", &appservice.SourceControlArgs{
AppId: exampleLinuxWebApp.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 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.SourceControl;
import com.pulumi.azure.appservice.SourceControlArgs;
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 exampleSourceControl = new SourceControl("exampleSourceControl", SourceControlArgs.builder()
.appId(exampleLinuxWebApp.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_source_control = azure.appservice.SourceControl("exampleSourceControl",
app_id=example_linux_web_app.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 exampleSourceControl = new azure.appservice.SourceControl("exampleSourceControl", {
appId: exampleLinuxWebApp.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: {}
exampleSourceControl:
type: azure:appservice:SourceControl
properties:
appId: ${exampleLinuxWebApp.id}
repoUrl: https://github.com/Azure-Samples/python-docs-hello-world
branch: master
Create SourceControl Resource
new SourceControl(name: string, args: SourceControlArgs, opts?: CustomResourceOptions);
@overload
def SourceControl(resource_name: str,
opts: Optional[ResourceOptions] = None,
app_id: Optional[str] = None,
branch: Optional[str] = None,
github_action_configuration: Optional[SourceControlGithubActionConfigurationArgs] = None,
repo_url: Optional[str] = None,
rollback_enabled: Optional[bool] = None,
use_local_git: Optional[bool] = None,
use_manual_integration: Optional[bool] = None,
use_mercurial: Optional[bool] = None)
@overload
def SourceControl(resource_name: str,
args: SourceControlArgs,
opts: Optional[ResourceOptions] = None)
func NewSourceControl(ctx *Context, name string, args SourceControlArgs, opts ...ResourceOption) (*SourceControl, error)
public SourceControl(string name, SourceControlArgs args, CustomResourceOptions? opts = null)
public SourceControl(String name, SourceControlArgs args)
public SourceControl(String name, SourceControlArgs args, CustomResourceOptions options)
type: azure:appservice:SourceControl
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SourceControlArgs
- 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 SourceControlArgs
- 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 SourceControlArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SourceControlArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SourceControlArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
SourceControl 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 SourceControl resource accepts the following input properties:
- App
Id string The ID of the Windows or Linux Web App. Changing this forces a new resource to be created.
- Branch string
The branch name to use for deployments. Changing this forces a new resource to be created.
- Github
Action SourceConfiguration Control Github Action Configuration Args A
github_action_configuration
block as defined below. Changing this forces a new resource to be created.- Repo
Url string The URL for the repository. 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 boolGit Should the App use local Git configuration. Changing this forces a new resource to be created.
- Use
Manual boolIntegration Should code be deployed manually. Set to
false
to enable continuous integration, such as webhooks into online repos such as GitHub. Defaults tofalse
. 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.
- App
Id string The ID of the Windows or Linux Web App. Changing this forces a new resource to be created.
- Branch string
The branch name to use for deployments. Changing this forces a new resource to be created.
- Github
Action SourceConfiguration Control Github Action Configuration Args A
github_action_configuration
block as defined below. Changing this forces a new resource to be created.- Repo
Url string The URL for the repository. 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 boolGit Should the App use local Git configuration. Changing this forces a new resource to be created.
- Use
Manual boolIntegration Should code be deployed manually. Set to
false
to enable continuous integration, such as webhooks into online repos such as GitHub. Defaults tofalse
. 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.
- app
Id String The ID of the Windows or Linux Web App. Changing this forces a new resource to be created.
- branch String
The branch name to use for deployments. Changing this forces a new resource to be created.
- github
Action SourceConfiguration Control Github Action Configuration Args A
github_action_configuration
block as defined below. Changing this forces a new resource to be created.- repo
Url String The URL for the repository. Changing this forces a new resource to be created.
- rollback
Enabled Boolean Should the Deployment Rollback be enabled? Defaults to
false
. Changing this forces a new resource to be created.- use
Local BooleanGit Should the App use local Git configuration. Changing this forces a new resource to be created.
- use
Manual BooleanIntegration Should code be deployed manually. Set to
false
to enable continuous integration, such as webhooks into online repos such as GitHub. Defaults tofalse
. Changing this forces a new resource to be created.- use
Mercurial Boolean The repository specified is Mercurial. Defaults to
false
. Changing this forces a new resource to be created.
- app
Id string The ID of the Windows or Linux Web App. Changing this forces a new resource to be created.
- branch string
The branch name to use for deployments. Changing this forces a new resource to be created.
- github
Action SourceConfiguration Control Github Action Configuration Args A
github_action_configuration
block as defined below. Changing this forces a new resource to be created.- repo
Url string The URL for the repository. Changing this forces a new resource to be created.
- rollback
Enabled boolean Should the Deployment Rollback be enabled? Defaults to
false
. Changing this forces a new resource to be created.- use
Local booleanGit Should the App use local Git configuration. Changing this forces a new resource to be created.
- use
Manual booleanIntegration Should code be deployed manually. Set to
false
to enable continuous integration, such as webhooks into online repos such as GitHub. Defaults tofalse
. Changing this forces a new resource to be created.- use
Mercurial boolean The repository specified is Mercurial. Defaults to
false
. Changing this forces a new resource to be created.
- app_
id str The ID of the Windows or Linux Web App. Changing this forces a new resource to be created.
- branch str
The branch name to use for deployments. Changing this forces a new resource to be created.
- github_
action_ Sourceconfiguration Control Github Action Configuration Args A
github_action_configuration
block as defined below. Changing this forces a new resource to be created.- repo_
url str The URL for the repository. 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_ boolgit Should the App use local Git configuration. Changing this forces a new resource to be created.
- use_
manual_ boolintegration Should code be deployed manually. Set to
false
to enable continuous integration, such as webhooks into online repos such as GitHub. Defaults tofalse
. 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.
- app
Id String The ID of the Windows or Linux Web App. Changing this forces a new resource to be created.
- branch String
The branch name to use for deployments. Changing this forces a new resource to be created.
- github
Action Property MapConfiguration A
github_action_configuration
block as defined below. Changing this forces a new resource to be created.- repo
Url String The URL for the repository. Changing this forces a new resource to be created.
- rollback
Enabled Boolean Should the Deployment Rollback be enabled? Defaults to
false
. Changing this forces a new resource to be created.- use
Local BooleanGit Should the App use local Git configuration. Changing this forces a new resource to be created.
- use
Manual BooleanIntegration Should code be deployed manually. Set to
false
to enable continuous integration, such as webhooks into online repos such as GitHub. Defaults tofalse
. Changing this forces a new resource to be created.- use
Mercurial 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 SourceControl resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Scm
Type string The SCM Type in use. This value is decoded by the service from the repository information supplied.
- Uses
Github boolAction 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.
- Scm
Type string The SCM Type in use. This value is decoded by the service from the repository information supplied.
- Uses
Github boolAction 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.
- scm
Type String The SCM Type in use. This value is decoded by the service from the repository information supplied.
- uses
Github BooleanAction 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.
- scm
Type string The SCM Type in use. This value is decoded by the service from the repository information supplied.
- uses
Github booleanAction 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_ boolaction 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.
- scm
Type String The SCM Type in use. This value is decoded by the service from the repository information supplied.
- uses
Github BooleanAction Indicates if the Slot uses a GitHub action for deployment. This value is decoded by the service from the repository information supplied.
Look up Existing SourceControl Resource
Get an existing SourceControl 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?: SourceControlState, opts?: CustomResourceOptions): SourceControl
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
app_id: Optional[str] = None,
branch: Optional[str] = None,
github_action_configuration: Optional[SourceControlGithubActionConfigurationArgs] = None,
repo_url: Optional[str] = None,
rollback_enabled: Optional[bool] = None,
scm_type: 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) -> SourceControl
func GetSourceControl(ctx *Context, name string, id IDInput, state *SourceControlState, opts ...ResourceOption) (*SourceControl, error)
public static SourceControl Get(string name, Input<string> id, SourceControlState? state, CustomResourceOptions? opts = null)
public static SourceControl get(String name, Output<String> id, SourceControlState 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.
- App
Id string The ID of the Windows or Linux Web App. Changing this forces a new resource to be created.
- Branch string
The branch name to use for deployments. Changing this forces a new resource to be created.
- Github
Action SourceConfiguration Control Github Action Configuration Args A
github_action_configuration
block as defined below. Changing this forces a new resource to be created.- Repo
Url string The URL for the repository. 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 string The SCM Type in use. This value is decoded by the service from the repository information supplied.
- Use
Local boolGit Should the App use local Git configuration. Changing this forces a new resource to be created.
- Use
Manual boolIntegration Should code be deployed manually. Set to
false
to enable continuous integration, such as webhooks into online repos such as GitHub. Defaults tofalse
. 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 boolAction Indicates if the Slot uses a GitHub action for deployment. This value is decoded by the service from the repository information supplied.
- App
Id string The ID of the Windows or Linux Web App. Changing this forces a new resource to be created.
- Branch string
The branch name to use for deployments. Changing this forces a new resource to be created.
- Github
Action SourceConfiguration Control Github Action Configuration Args A
github_action_configuration
block as defined below. Changing this forces a new resource to be created.- Repo
Url string The URL for the repository. 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 string The SCM Type in use. This value is decoded by the service from the repository information supplied.
- Use
Local boolGit Should the App use local Git configuration. Changing this forces a new resource to be created.
- Use
Manual boolIntegration Should code be deployed manually. Set to
false
to enable continuous integration, such as webhooks into online repos such as GitHub. Defaults tofalse
. 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 boolAction Indicates if the Slot uses a GitHub action for deployment. This value is decoded by the service from the repository information supplied.
- app
Id String The ID of the Windows or Linux Web App. Changing this forces a new resource to be created.
- branch String
The branch name to use for deployments. Changing this forces a new resource to be created.
- github
Action SourceConfiguration Control Github Action Configuration Args A
github_action_configuration
block as defined below. Changing this forces a new resource to be created.- repo
Url String The URL for the repository. Changing this forces a new resource to be created.
- rollback
Enabled Boolean Should the Deployment Rollback be enabled? Defaults to
false
. Changing this forces a new resource to be created.- scm
Type String The SCM Type in use. This value is decoded by the service from the repository information supplied.
- use
Local BooleanGit Should the App use local Git configuration. Changing this forces a new resource to be created.
- use
Manual BooleanIntegration Should code be deployed manually. Set to
false
to enable continuous integration, such as webhooks into online repos such as GitHub. Defaults tofalse
. Changing this forces a new resource to be created.- use
Mercurial Boolean The repository specified is Mercurial. Defaults to
false
. Changing this forces a new resource to be created.- uses
Github BooleanAction Indicates if the Slot uses a GitHub action for deployment. This value is decoded by the service from the repository information supplied.
- app
Id string The ID of the Windows or Linux Web App. Changing this forces a new resource to be created.
- branch string
The branch name to use for deployments. Changing this forces a new resource to be created.
- github
Action SourceConfiguration Control Github Action Configuration Args A
github_action_configuration
block as defined below. Changing this forces a new resource to be created.- repo
Url string The URL for the repository. Changing this forces a new resource to be created.
- rollback
Enabled boolean Should the Deployment Rollback be enabled? Defaults to
false
. Changing this forces a new resource to be created.- scm
Type string The SCM Type in use. This value is decoded by the service from the repository information supplied.
- use
Local booleanGit Should the App use local Git configuration. Changing this forces a new resource to be created.
- use
Manual booleanIntegration Should code be deployed manually. Set to
false
to enable continuous integration, such as webhooks into online repos such as GitHub. Defaults tofalse
. Changing this forces a new resource to be created.- use
Mercurial boolean The repository specified is Mercurial. Defaults to
false
. Changing this forces a new resource to be created.- uses
Github booleanAction Indicates if the Slot uses a GitHub action for deployment. This value is decoded by the service from the repository information supplied.
- app_
id str The ID of the Windows or Linux Web App. Changing this forces a new resource to be created.
- branch str
The branch name to use for deployments. Changing this forces a new resource to be created.
- github_
action_ Sourceconfiguration Control Github Action Configuration Args A
github_action_configuration
block as defined below. Changing this forces a new resource to be created.- repo_
url str The URL for the repository. 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.
- use_
local_ boolgit Should the App use local Git configuration. Changing this forces a new resource to be created.
- use_
manual_ boolintegration Should code be deployed manually. Set to
false
to enable continuous integration, such as webhooks into online repos such as GitHub. Defaults tofalse
. 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_ boolaction Indicates if the Slot uses a GitHub action for deployment. This value is decoded by the service from the repository information supplied.
- app
Id String The ID of the Windows or Linux Web App. Changing this forces a new resource to be created.
- branch String
The branch name to use for deployments. Changing this forces a new resource to be created.
- github
Action Property MapConfiguration A
github_action_configuration
block as defined below. Changing this forces a new resource to be created.- repo
Url String The URL for the repository. Changing this forces a new resource to be created.
- rollback
Enabled Boolean Should the Deployment Rollback be enabled? Defaults to
false
. Changing this forces a new resource to be created.- scm
Type String The SCM Type in use. This value is decoded by the service from the repository information supplied.
- use
Local BooleanGit Should the App use local Git configuration. Changing this forces a new resource to be created.
- use
Manual BooleanIntegration Should code be deployed manually. Set to
false
to enable continuous integration, such as webhooks into online repos such as GitHub. Defaults tofalse
. Changing this forces a new resource to be created.- use
Mercurial Boolean The repository specified is Mercurial. Defaults to
false
. Changing this forces a new resource to be created.- uses
Github BooleanAction Indicates if the Slot uses a GitHub action for deployment. This value is decoded by the service from the repository information supplied.
Supporting Types
SourceControlGithubActionConfiguration
- Code
Configuration SourceControl Github Action Configuration Code Configuration A
code_configuration
block as defined above. Changing this forces a new resource to be created.- Container
Configuration SourceControl Github Action Configuration Container Configuration A
container_configuration
block as defined above.- Generate
Workflow boolFile Whether to generate the GitHub work flow file. Defaults to
true
. Changing this forces a new resource to be created.- Linux
Action bool
- Code
Configuration SourceControl Github Action Configuration Code Configuration A
code_configuration
block as defined above. Changing this forces a new resource to be created.- Container
Configuration SourceControl Github Action Configuration Container Configuration A
container_configuration
block as defined above.- Generate
Workflow boolFile Whether to generate the GitHub work flow file. Defaults to
true
. Changing this forces a new resource to be created.- Linux
Action bool
- code
Configuration SourceControl Github Action Configuration Code Configuration A
code_configuration
block as defined above. Changing this forces a new resource to be created.- container
Configuration SourceControl Github Action Configuration Container Configuration A
container_configuration
block as defined above.- generate
Workflow BooleanFile Whether to generate the GitHub work flow file. Defaults to
true
. Changing this forces a new resource to be created.- linux
Action Boolean
- code
Configuration SourceControl Github Action Configuration Code Configuration A
code_configuration
block as defined above. Changing this forces a new resource to be created.- container
Configuration SourceControl Github Action Configuration Container Configuration A
container_configuration
block as defined above.- generate
Workflow booleanFile Whether to generate the GitHub work flow file. Defaults to
true
. Changing this forces a new resource to be created.- linux
Action boolean
- code_
configuration SourceControl Github Action Configuration Code Configuration A
code_configuration
block as defined above. Changing this forces a new resource to be created.- container_
configuration SourceControl Github Action Configuration Container Configuration A
container_configuration
block as defined above.- generate_
workflow_ boolfile Whether to generate the GitHub work flow file. Defaults to
true
. Changing this forces a new resource to be created.- linux_
action bool
- code
Configuration Property Map A
code_configuration
block as defined above. Changing this forces a new resource to be created.- container
Configuration Property Map A
container_configuration
block as defined above.- generate
Workflow BooleanFile Whether to generate the GitHub work flow file. Defaults to
true
. Changing this forces a new resource to be created.- linux
Action Boolean
SourceControlGithubActionConfigurationCodeConfiguration
- Runtime
Stack string The value to use for the Runtime Stack in the workflow file content for code base apps. Possible values are
dotnetcore
,spring
,tomcat
,node
andpython
. Changing this forces a new resource to be created.- Runtime
Version 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 string The value to use for the Runtime Stack in the workflow file content for code base apps. Possible values are
dotnetcore
,spring
,tomcat
,node
andpython
. Changing this forces a new resource to be created.- Runtime
Version 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 String The value to use for the Runtime Stack in the workflow file content for code base apps. Possible values are
dotnetcore
,spring
,tomcat
,node
andpython
. Changing this forces a new resource to be created.- runtime
Version 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 string The value to use for the Runtime Stack in the workflow file content for code base apps. Possible values are
dotnetcore
,spring
,tomcat
,node
andpython
. Changing this forces a new resource to be created.- runtime
Version 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. Possible values are
dotnetcore
,spring
,tomcat
,node
andpython
. 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.
- runtime
Stack String The value to use for the Runtime Stack in the workflow file content for code base apps. Possible values are
dotnetcore
,spring
,tomcat
,node
andpython
. Changing this forces a new resource to be created.- runtime
Version 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.
SourceControlGithubActionConfigurationContainerConfiguration
- Image
Name string The image name for the build. Changing this forces a new resource to be created.
- Registry
Url string The server URL for the container registry where the build will be hosted. Changing this forces a new resource to be created.
- Registry
Password string The password used to upload the image to the container registry. Changing this forces a new resource to be created.
- Registry
Username string The username used to upload the image to the container registry. Changing this forces a new resource to be created.
- Image
Name string The image name for the build. Changing this forces a new resource to be created.
- Registry
Url string The server URL for the container registry where the build will be hosted. Changing this forces a new resource to be created.
- Registry
Password string The password used to upload the image to the container registry. Changing this forces a new resource to be created.
- Registry
Username string The username used to upload the image to the container registry. Changing this forces a new resource to be created.
- image
Name String The image name for the build. Changing this forces a new resource to be created.
- registry
Url String The server URL for the container registry where the build will be hosted. Changing this forces a new resource to be created.
- registry
Password String The password used to upload the image to the container registry. Changing this forces a new resource to be created.
- registry
Username String The username used to upload the image to the container registry. Changing this forces a new resource to be created.
- image
Name string The image name for the build. Changing this forces a new resource to be created.
- registry
Url string The server URL for the container registry where the build will be hosted. Changing this forces a new resource to be created.
- registry
Password string The password used to upload the image to the container registry. Changing this forces a new resource to be created.
- registry
Username 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.
- image
Name String The image name for the build. Changing this forces a new resource to be created.
- registry
Url String The server URL for the container registry where the build will be hosted. Changing this forces a new resource to be created.
- registry
Password String The password used to upload the image to the container registry. Changing this forces a new resource to be created.
- registry
Username String The username used to upload the image to the container registry. Changing this forces a new resource to be created.
Import
App Service Source Controls can be imported using the resource id
, e.g.
$ pulumi import azure:appservice/sourceControl:SourceControl example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/sites/site1
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.