azure-native.web.WebAppSourceControlSlot
Explore with Pulumi AI
Source control configuration for an app. Azure REST API version: 2022-09-01. Prior API version in Azure Native 1.x: 2020-12-01.
Other available API versions: 2020-10-01, 2023-01-01, 2023-12-01.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:web:WebAppSourceControlSlot myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/sourcecontrols/web
Create WebAppSourceControlSlot Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WebAppSourceControlSlot(name: string, args: WebAppSourceControlSlotArgs, opts?: CustomResourceOptions);
@overload
def WebAppSourceControlSlot(resource_name: str,
args: WebAppSourceControlSlotArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WebAppSourceControlSlot(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
slot: Optional[str] = None,
branch: Optional[str] = None,
deployment_rollback_enabled: Optional[bool] = None,
git_hub_action_configuration: Optional[GitHubActionConfigurationArgs] = None,
is_git_hub_action: Optional[bool] = None,
is_manual_integration: Optional[bool] = None,
is_mercurial: Optional[bool] = None,
kind: Optional[str] = None,
repo_url: Optional[str] = None)
func NewWebAppSourceControlSlot(ctx *Context, name string, args WebAppSourceControlSlotArgs, opts ...ResourceOption) (*WebAppSourceControlSlot, error)
public WebAppSourceControlSlot(string name, WebAppSourceControlSlotArgs args, CustomResourceOptions? opts = null)
public WebAppSourceControlSlot(String name, WebAppSourceControlSlotArgs args)
public WebAppSourceControlSlot(String name, WebAppSourceControlSlotArgs args, CustomResourceOptions options)
type: azure-native:web:WebAppSourceControlSlot
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args WebAppSourceControlSlotArgs
- 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 WebAppSourceControlSlotArgs
- 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 WebAppSourceControlSlotArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WebAppSourceControlSlotArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WebAppSourceControlSlotArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var webAppSourceControlSlotResource = new AzureNative.Web.WebAppSourceControlSlot("webAppSourceControlSlotResource", new()
{
Name = "string",
ResourceGroupName = "string",
Slot = "string",
Branch = "string",
DeploymentRollbackEnabled = false,
GitHubActionConfiguration = new AzureNative.Web.Inputs.GitHubActionConfigurationArgs
{
CodeConfiguration = new AzureNative.Web.Inputs.GitHubActionCodeConfigurationArgs
{
RuntimeStack = "string",
RuntimeVersion = "string",
},
ContainerConfiguration = new AzureNative.Web.Inputs.GitHubActionContainerConfigurationArgs
{
ImageName = "string",
Password = "string",
ServerUrl = "string",
Username = "string",
},
GenerateWorkflowFile = false,
IsLinux = false,
},
IsGitHubAction = false,
IsManualIntegration = false,
IsMercurial = false,
Kind = "string",
RepoUrl = "string",
});
example, err := web.NewWebAppSourceControlSlot(ctx, "webAppSourceControlSlotResource", &web.WebAppSourceControlSlotArgs{
Name: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
Slot: pulumi.String("string"),
Branch: pulumi.String("string"),
DeploymentRollbackEnabled: pulumi.Bool(false),
GitHubActionConfiguration: &web.GitHubActionConfigurationArgs{
CodeConfiguration: &web.GitHubActionCodeConfigurationArgs{
RuntimeStack: pulumi.String("string"),
RuntimeVersion: pulumi.String("string"),
},
ContainerConfiguration: &web.GitHubActionContainerConfigurationArgs{
ImageName: pulumi.String("string"),
Password: pulumi.String("string"),
ServerUrl: pulumi.String("string"),
Username: pulumi.String("string"),
},
GenerateWorkflowFile: pulumi.Bool(false),
IsLinux: pulumi.Bool(false),
},
IsGitHubAction: pulumi.Bool(false),
IsManualIntegration: pulumi.Bool(false),
IsMercurial: pulumi.Bool(false),
Kind: pulumi.String("string"),
RepoUrl: pulumi.String("string"),
})
var webAppSourceControlSlotResource = new WebAppSourceControlSlot("webAppSourceControlSlotResource", WebAppSourceControlSlotArgs.builder()
.name("string")
.resourceGroupName("string")
.slot("string")
.branch("string")
.deploymentRollbackEnabled(false)
.gitHubActionConfiguration(GitHubActionConfigurationArgs.builder()
.codeConfiguration(GitHubActionCodeConfigurationArgs.builder()
.runtimeStack("string")
.runtimeVersion("string")
.build())
.containerConfiguration(GitHubActionContainerConfigurationArgs.builder()
.imageName("string")
.password("string")
.serverUrl("string")
.username("string")
.build())
.generateWorkflowFile(false)
.isLinux(false)
.build())
.isGitHubAction(false)
.isManualIntegration(false)
.isMercurial(false)
.kind("string")
.repoUrl("string")
.build());
web_app_source_control_slot_resource = azure_native.web.WebAppSourceControlSlot("webAppSourceControlSlotResource",
name="string",
resource_group_name="string",
slot="string",
branch="string",
deployment_rollback_enabled=False,
git_hub_action_configuration={
"codeConfiguration": {
"runtimeStack": "string",
"runtimeVersion": "string",
},
"containerConfiguration": {
"imageName": "string",
"password": "string",
"serverUrl": "string",
"username": "string",
},
"generateWorkflowFile": False,
"isLinux": False,
},
is_git_hub_action=False,
is_manual_integration=False,
is_mercurial=False,
kind="string",
repo_url="string")
const webAppSourceControlSlotResource = new azure_native.web.WebAppSourceControlSlot("webAppSourceControlSlotResource", {
name: "string",
resourceGroupName: "string",
slot: "string",
branch: "string",
deploymentRollbackEnabled: false,
gitHubActionConfiguration: {
codeConfiguration: {
runtimeStack: "string",
runtimeVersion: "string",
},
containerConfiguration: {
imageName: "string",
password: "string",
serverUrl: "string",
username: "string",
},
generateWorkflowFile: false,
isLinux: false,
},
isGitHubAction: false,
isManualIntegration: false,
isMercurial: false,
kind: "string",
repoUrl: "string",
});
type: azure-native:web:WebAppSourceControlSlot
properties:
branch: string
deploymentRollbackEnabled: false
gitHubActionConfiguration:
codeConfiguration:
runtimeStack: string
runtimeVersion: string
containerConfiguration:
imageName: string
password: string
serverUrl: string
username: string
generateWorkflowFile: false
isLinux: false
isGitHubAction: false
isManualIntegration: false
isMercurial: false
kind: string
name: string
repoUrl: string
resourceGroupName: string
slot: string
WebAppSourceControlSlot 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 WebAppSourceControlSlot resource accepts the following input properties:
- Name string
- Name of the app.
- Resource
Group stringName - Name of the resource group to which the resource belongs.
- Slot string
- Name of the deployment slot. If a slot is not specified, the API will update the source control configuration for the production slot.
- Branch string
- Name of branch to use for deployment.
- Deployment
Rollback boolEnabled - true to enable deployment rollback; otherwise, false.
- Git
Hub Pulumi.Action Configuration Azure Native. Web. Inputs. Git Hub Action Configuration - If GitHub Action is selected, than the associated configuration.
- Is
Git boolHub Action - true if this is deployed via GitHub action.
- Is
Manual boolIntegration - true to limit to manual integration; false to enable continuous integration (which configures webhooks into online repos like GitHub).
- Is
Mercurial bool - true for a Mercurial repository; false for a Git repository.
- Kind string
- Kind of resource.
- Repo
Url string - Repository or source control URL.
- Name string
- Name of the app.
- Resource
Group stringName - Name of the resource group to which the resource belongs.
- Slot string
- Name of the deployment slot. If a slot is not specified, the API will update the source control configuration for the production slot.
- Branch string
- Name of branch to use for deployment.
- Deployment
Rollback boolEnabled - true to enable deployment rollback; otherwise, false.
- Git
Hub GitAction Configuration Hub Action Configuration Args - If GitHub Action is selected, than the associated configuration.
- Is
Git boolHub Action - true if this is deployed via GitHub action.
- Is
Manual boolIntegration - true to limit to manual integration; false to enable continuous integration (which configures webhooks into online repos like GitHub).
- Is
Mercurial bool - true for a Mercurial repository; false for a Git repository.
- Kind string
- Kind of resource.
- Repo
Url string - Repository or source control URL.
- name String
- Name of the app.
- resource
Group StringName - Name of the resource group to which the resource belongs.
- slot String
- Name of the deployment slot. If a slot is not specified, the API will update the source control configuration for the production slot.
- branch String
- Name of branch to use for deployment.
- deployment
Rollback BooleanEnabled - true to enable deployment rollback; otherwise, false.
- git
Hub GitAction Configuration Hub Action Configuration - If GitHub Action is selected, than the associated configuration.
- is
Git BooleanHub Action - true if this is deployed via GitHub action.
- is
Manual BooleanIntegration - true to limit to manual integration; false to enable continuous integration (which configures webhooks into online repos like GitHub).
- is
Mercurial Boolean - true for a Mercurial repository; false for a Git repository.
- kind String
- Kind of resource.
- repo
Url String - Repository or source control URL.
- name string
- Name of the app.
- resource
Group stringName - Name of the resource group to which the resource belongs.
- slot string
- Name of the deployment slot. If a slot is not specified, the API will update the source control configuration for the production slot.
- branch string
- Name of branch to use for deployment.
- deployment
Rollback booleanEnabled - true to enable deployment rollback; otherwise, false.
- git
Hub GitAction Configuration Hub Action Configuration - If GitHub Action is selected, than the associated configuration.
- is
Git booleanHub Action - true if this is deployed via GitHub action.
- is
Manual booleanIntegration - true to limit to manual integration; false to enable continuous integration (which configures webhooks into online repos like GitHub).
- is
Mercurial boolean - true for a Mercurial repository; false for a Git repository.
- kind string
- Kind of resource.
- repo
Url string - Repository or source control URL.
- name str
- Name of the app.
- resource_
group_ strname - Name of the resource group to which the resource belongs.
- slot str
- Name of the deployment slot. If a slot is not specified, the API will update the source control configuration for the production slot.
- branch str
- Name of branch to use for deployment.
- deployment_
rollback_ boolenabled - true to enable deployment rollback; otherwise, false.
- git_
hub_ Gitaction_ configuration Hub Action Configuration Args - If GitHub Action is selected, than the associated configuration.
- is_
git_ boolhub_ action - true if this is deployed via GitHub action.
- is_
manual_ boolintegration - true to limit to manual integration; false to enable continuous integration (which configures webhooks into online repos like GitHub).
- is_
mercurial bool - true for a Mercurial repository; false for a Git repository.
- kind str
- Kind of resource.
- repo_
url str - Repository or source control URL.
- name String
- Name of the app.
- resource
Group StringName - Name of the resource group to which the resource belongs.
- slot String
- Name of the deployment slot. If a slot is not specified, the API will update the source control configuration for the production slot.
- branch String
- Name of branch to use for deployment.
- deployment
Rollback BooleanEnabled - true to enable deployment rollback; otherwise, false.
- git
Hub Property MapAction Configuration - If GitHub Action is selected, than the associated configuration.
- is
Git BooleanHub Action - true if this is deployed via GitHub action.
- is
Manual BooleanIntegration - true to limit to manual integration; false to enable continuous integration (which configures webhooks into online repos like GitHub).
- is
Mercurial Boolean - true for a Mercurial repository; false for a Git repository.
- kind String
- Kind of resource.
- repo
Url String - Repository or source control URL.
Outputs
All input properties are implicitly available as output properties. Additionally, the WebAppSourceControlSlot resource produces the following output properties:
Supporting Types
GitHubActionCodeConfiguration, GitHubActionCodeConfigurationArgs
- Runtime
Stack string - Runtime stack is used to determine the workflow file content for code base apps.
- Runtime
Version string - Runtime version is used to determine what build version to set in the workflow file.
- Runtime
Stack string - Runtime stack is used to determine the workflow file content for code base apps.
- Runtime
Version string - Runtime version is used to determine what build version to set in the workflow file.
- runtime
Stack String - Runtime stack is used to determine the workflow file content for code base apps.
- runtime
Version String - Runtime version is used to determine what build version to set in the workflow file.
- runtime
Stack string - Runtime stack is used to determine the workflow file content for code base apps.
- runtime
Version string - Runtime version is used to determine what build version to set in the workflow file.
- runtime_
stack str - Runtime stack is used to determine the workflow file content for code base apps.
- runtime_
version str - Runtime version is used to determine what build version to set in the workflow file.
- runtime
Stack String - Runtime stack is used to determine the workflow file content for code base apps.
- runtime
Version String - Runtime version is used to determine what build version to set in the workflow file.
GitHubActionCodeConfigurationResponse, GitHubActionCodeConfigurationResponseArgs
- Runtime
Stack string - Runtime stack is used to determine the workflow file content for code base apps.
- Runtime
Version string - Runtime version is used to determine what build version to set in the workflow file.
- Runtime
Stack string - Runtime stack is used to determine the workflow file content for code base apps.
- Runtime
Version string - Runtime version is used to determine what build version to set in the workflow file.
- runtime
Stack String - Runtime stack is used to determine the workflow file content for code base apps.
- runtime
Version String - Runtime version is used to determine what build version to set in the workflow file.
- runtime
Stack string - Runtime stack is used to determine the workflow file content for code base apps.
- runtime
Version string - Runtime version is used to determine what build version to set in the workflow file.
- runtime_
stack str - Runtime stack is used to determine the workflow file content for code base apps.
- runtime_
version str - Runtime version is used to determine what build version to set in the workflow file.
- runtime
Stack String - Runtime stack is used to determine the workflow file content for code base apps.
- runtime
Version String - Runtime version is used to determine what build version to set in the workflow file.
GitHubActionConfiguration, GitHubActionConfigurationArgs
- Code
Configuration Pulumi.Azure Native. Web. Inputs. Git Hub Action Code Configuration - GitHub Action code configuration.
- Container
Configuration Pulumi.Azure Native. Web. Inputs. Git Hub Action Container Configuration - GitHub Action container configuration.
- Generate
Workflow boolFile - Workflow option to determine whether the workflow file should be generated and written to the repository.
- Is
Linux bool - This will help determine the workflow configuration to select.
- Code
Configuration GitHub Action Code Configuration - GitHub Action code configuration.
- Container
Configuration GitHub Action Container Configuration - GitHub Action container configuration.
- Generate
Workflow boolFile - Workflow option to determine whether the workflow file should be generated and written to the repository.
- Is
Linux bool - This will help determine the workflow configuration to select.
- code
Configuration GitHub Action Code Configuration - GitHub Action code configuration.
- container
Configuration GitHub Action Container Configuration - GitHub Action container configuration.
- generate
Workflow BooleanFile - Workflow option to determine whether the workflow file should be generated and written to the repository.
- is
Linux Boolean - This will help determine the workflow configuration to select.
- code
Configuration GitHub Action Code Configuration - GitHub Action code configuration.
- container
Configuration GitHub Action Container Configuration - GitHub Action container configuration.
- generate
Workflow booleanFile - Workflow option to determine whether the workflow file should be generated and written to the repository.
- is
Linux boolean - This will help determine the workflow configuration to select.
- code_
configuration GitHub Action Code Configuration - GitHub Action code configuration.
- container_
configuration GitHub Action Container Configuration - GitHub Action container configuration.
- generate_
workflow_ boolfile - Workflow option to determine whether the workflow file should be generated and written to the repository.
- is_
linux bool - This will help determine the workflow configuration to select.
- code
Configuration Property Map - GitHub Action code configuration.
- container
Configuration Property Map - GitHub Action container configuration.
- generate
Workflow BooleanFile - Workflow option to determine whether the workflow file should be generated and written to the repository.
- is
Linux Boolean - This will help determine the workflow configuration to select.
GitHubActionConfigurationResponse, GitHubActionConfigurationResponseArgs
- Code
Configuration Pulumi.Azure Native. Web. Inputs. Git Hub Action Code Configuration Response - GitHub Action code configuration.
- Container
Configuration Pulumi.Azure Native. Web. Inputs. Git Hub Action Container Configuration Response - GitHub Action container configuration.
- Generate
Workflow boolFile - Workflow option to determine whether the workflow file should be generated and written to the repository.
- Is
Linux bool - This will help determine the workflow configuration to select.
- Code
Configuration GitHub Action Code Configuration Response - GitHub Action code configuration.
- Container
Configuration GitHub Action Container Configuration Response - GitHub Action container configuration.
- Generate
Workflow boolFile - Workflow option to determine whether the workflow file should be generated and written to the repository.
- Is
Linux bool - This will help determine the workflow configuration to select.
- code
Configuration GitHub Action Code Configuration Response - GitHub Action code configuration.
- container
Configuration GitHub Action Container Configuration Response - GitHub Action container configuration.
- generate
Workflow BooleanFile - Workflow option to determine whether the workflow file should be generated and written to the repository.
- is
Linux Boolean - This will help determine the workflow configuration to select.
- code
Configuration GitHub Action Code Configuration Response - GitHub Action code configuration.
- container
Configuration GitHub Action Container Configuration Response - GitHub Action container configuration.
- generate
Workflow booleanFile - Workflow option to determine whether the workflow file should be generated and written to the repository.
- is
Linux boolean - This will help determine the workflow configuration to select.
- code_
configuration GitHub Action Code Configuration Response - GitHub Action code configuration.
- container_
configuration GitHub Action Container Configuration Response - GitHub Action container configuration.
- generate_
workflow_ boolfile - Workflow option to determine whether the workflow file should be generated and written to the repository.
- is_
linux bool - This will help determine the workflow configuration to select.
- code
Configuration Property Map - GitHub Action code configuration.
- container
Configuration Property Map - GitHub Action container configuration.
- generate
Workflow BooleanFile - Workflow option to determine whether the workflow file should be generated and written to the repository.
- is
Linux Boolean - This will help determine the workflow configuration to select.
GitHubActionContainerConfiguration, GitHubActionContainerConfigurationArgs
- image_
name str - The image name for the build.
- password str
- The password used to upload the image to the container registry.
- server_
url str - The server URL for the container registry where the build will be hosted.
- username str
- The username used to upload the image to the container registry.
GitHubActionContainerConfigurationResponse, GitHubActionContainerConfigurationResponseArgs
- image_
name str - The image name for the build.
- password str
- The password used to upload the image to the container registry.
- server_
url str - The server URL for the container registry where the build will be hosted.
- username str
- The username used to upload the image to the container registry.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0