1. Packages
  2. Azure Native v2
  3. API Docs
  4. web
  5. WebAppSiteContainerSlot
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.web.WebAppSiteContainerSlot

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

Container of a site Azure REST API version: 2023-12-01.

Other available API versions: 2024-04-01.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:web:WebAppSiteContainerSlot myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/sitecontainers/{containerName} 
Copy

Create WebAppSiteContainerSlot Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new WebAppSiteContainerSlot(name: string, args: WebAppSiteContainerSlotArgs, opts?: CustomResourceOptions);
@overload
def WebAppSiteContainerSlot(resource_name: str,
                            args: WebAppSiteContainerSlotArgs,
                            opts: Optional[ResourceOptions] = None)

@overload
def WebAppSiteContainerSlot(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            name: Optional[str] = None,
                            resource_group_name: Optional[str] = None,
                            slot: Optional[str] = None,
                            image: Optional[str] = None,
                            is_main: Optional[bool] = None,
                            kind: Optional[str] = None,
                            container_name: Optional[str] = None,
                            password_secret: Optional[str] = None,
                            auth_type: Optional[AuthType] = None,
                            environment_variables: Optional[Sequence[EnvironmentVariableArgs]] = None,
                            start_up_command: Optional[str] = None,
                            target_port: Optional[str] = None,
                            user_managed_identity_client_id: Optional[str] = None,
                            user_name: Optional[str] = None,
                            volume_mounts: Optional[Sequence[VolumeMountArgs]] = None)
func NewWebAppSiteContainerSlot(ctx *Context, name string, args WebAppSiteContainerSlotArgs, opts ...ResourceOption) (*WebAppSiteContainerSlot, error)
public WebAppSiteContainerSlot(string name, WebAppSiteContainerSlotArgs args, CustomResourceOptions? opts = null)
public WebAppSiteContainerSlot(String name, WebAppSiteContainerSlotArgs args)
public WebAppSiteContainerSlot(String name, WebAppSiteContainerSlotArgs args, CustomResourceOptions options)
type: azure-native:web:WebAppSiteContainerSlot
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. WebAppSiteContainerSlotArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. WebAppSiteContainerSlotArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. WebAppSiteContainerSlotArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. WebAppSiteContainerSlotArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. WebAppSiteContainerSlotArgs
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 webAppSiteContainerSlotResource = new AzureNative.Web.WebAppSiteContainerSlot("webAppSiteContainerSlotResource", new()
{
    Name = "string",
    ResourceGroupName = "string",
    Slot = "string",
    Image = "string",
    IsMain = false,
    Kind = "string",
    ContainerName = "string",
    PasswordSecret = "string",
    AuthType = "Anonymous",
    EnvironmentVariables = new[]
    {
        
        {
            { "name", "string" },
            { "value", "string" },
        },
    },
    StartUpCommand = "string",
    TargetPort = "string",
    UserManagedIdentityClientId = "string",
    UserName = "string",
    VolumeMounts = new[]
    {
        
        {
            { "containerMountPath", "string" },
            { "volumeSubPath", "string" },
            { "data", "string" },
            { "readOnly", false },
        },
    },
});
Copy
example, err := web.NewWebAppSiteContainerSlot(ctx, "webAppSiteContainerSlotResource", &web.WebAppSiteContainerSlotArgs{
	Name:              "string",
	ResourceGroupName: "string",
	Slot:              "string",
	Image:             "string",
	IsMain:            false,
	Kind:              "string",
	ContainerName:     "string",
	PasswordSecret:    "string",
	AuthType:          "Anonymous",
	EnvironmentVariables: []map[string]interface{}{
		map[string]interface{}{
			"name":  "string",
			"value": "string",
		},
	},
	StartUpCommand:              "string",
	TargetPort:                  "string",
	UserManagedIdentityClientId: "string",
	UserName:                    "string",
	VolumeMounts: []map[string]interface{}{
		map[string]interface{}{
			"containerMountPath": "string",
			"volumeSubPath":      "string",
			"data":               "string",
			"readOnly":           false,
		},
	},
})
Copy
var webAppSiteContainerSlotResource = new WebAppSiteContainerSlot("webAppSiteContainerSlotResource", WebAppSiteContainerSlotArgs.builder()
    .name("string")
    .resourceGroupName("string")
    .slot("string")
    .image("string")
    .isMain(false)
    .kind("string")
    .containerName("string")
    .passwordSecret("string")
    .authType("Anonymous")
    .environmentVariables(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .startUpCommand("string")
    .targetPort("string")
    .userManagedIdentityClientId("string")
    .userName("string")
    .volumeMounts(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .build());
Copy
web_app_site_container_slot_resource = azure_native.web.WebAppSiteContainerSlot("webAppSiteContainerSlotResource",
    name=string,
    resource_group_name=string,
    slot=string,
    image=string,
    is_main=False,
    kind=string,
    container_name=string,
    password_secret=string,
    auth_type=Anonymous,
    environment_variables=[{
        name: string,
        value: string,
    }],
    start_up_command=string,
    target_port=string,
    user_managed_identity_client_id=string,
    user_name=string,
    volume_mounts=[{
        containerMountPath: string,
        volumeSubPath: string,
        data: string,
        readOnly: False,
    }])
Copy
const webAppSiteContainerSlotResource = new azure_native.web.WebAppSiteContainerSlot("webAppSiteContainerSlotResource", {
    name: "string",
    resourceGroupName: "string",
    slot: "string",
    image: "string",
    isMain: false,
    kind: "string",
    containerName: "string",
    passwordSecret: "string",
    authType: "Anonymous",
    environmentVariables: [{
        name: "string",
        value: "string",
    }],
    startUpCommand: "string",
    targetPort: "string",
    userManagedIdentityClientId: "string",
    userName: "string",
    volumeMounts: [{
        containerMountPath: "string",
        volumeSubPath: "string",
        data: "string",
        readOnly: false,
    }],
});
Copy
type: azure-native:web:WebAppSiteContainerSlot
properties:
    authType: Anonymous
    containerName: string
    environmentVariables:
        - name: string
          value: string
    image: string
    isMain: false
    kind: string
    name: string
    passwordSecret: string
    resourceGroupName: string
    slot: string
    startUpCommand: string
    targetPort: string
    userManagedIdentityClientId: string
    userName: string
    volumeMounts:
        - containerMountPath: string
          data: string
          readOnly: false
          volumeSubPath: string
Copy

WebAppSiteContainerSlot Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The WebAppSiteContainerSlot resource accepts the following input properties:

Image This property is required. string
Image Name
IsMain This property is required. bool
true if the container is the main site container; false otherwise.
Name
This property is required.
Changes to this property will trigger replacement.
string
Name of the app.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group to which the resource belongs.
Slot
This property is required.
Changes to this property will trigger replacement.
string
Name of the deployment slot. If a slot is not specified, the API will create the container for the production slot.
AuthType Pulumi.AzureNative.Web.AuthType
Auth Type
ContainerName Changes to this property will trigger replacement. string
Site Container Name
EnvironmentVariables List<Pulumi.AzureNative.Web.Inputs.EnvironmentVariable>
List of environment variables
Kind string
Kind of resource.
PasswordSecret string
Password Secret
StartUpCommand string
StartUp Command
TargetPort string
Target Port
UserManagedIdentityClientId string
UserManagedIdentity ClientId
UserName string
User Name
VolumeMounts List<Pulumi.AzureNative.Web.Inputs.VolumeMount>
List of volume mounts
Image This property is required. string
Image Name
IsMain This property is required. bool
true if the container is the main site container; false otherwise.
Name
This property is required.
Changes to this property will trigger replacement.
string
Name of the app.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group to which the resource belongs.
Slot
This property is required.
Changes to this property will trigger replacement.
string
Name of the deployment slot. If a slot is not specified, the API will create the container for the production slot.
AuthType AuthType
Auth Type
ContainerName Changes to this property will trigger replacement. string
Site Container Name
EnvironmentVariables []EnvironmentVariableArgs
List of environment variables
Kind string
Kind of resource.
PasswordSecret string
Password Secret
StartUpCommand string
StartUp Command
TargetPort string
Target Port
UserManagedIdentityClientId string
UserManagedIdentity ClientId
UserName string
User Name
VolumeMounts []VolumeMountArgs
List of volume mounts
image This property is required. String
Image Name
isMain This property is required. Boolean
true if the container is the main site container; false otherwise.
name
This property is required.
Changes to this property will trigger replacement.
String
Name of the app.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of the resource group to which the resource belongs.
slot
This property is required.
Changes to this property will trigger replacement.
String
Name of the deployment slot. If a slot is not specified, the API will create the container for the production slot.
authType AuthType
Auth Type
containerName Changes to this property will trigger replacement. String
Site Container Name
environmentVariables List<EnvironmentVariable>
List of environment variables
kind String
Kind of resource.
passwordSecret String
Password Secret
startUpCommand String
StartUp Command
targetPort String
Target Port
userManagedIdentityClientId String
UserManagedIdentity ClientId
userName String
User Name
volumeMounts List<VolumeMount>
List of volume mounts
image This property is required. string
Image Name
isMain This property is required. boolean
true if the container is the main site container; false otherwise.
name
This property is required.
Changes to this property will trigger replacement.
string
Name of the app.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group to which the resource belongs.
slot
This property is required.
Changes to this property will trigger replacement.
string
Name of the deployment slot. If a slot is not specified, the API will create the container for the production slot.
authType AuthType
Auth Type
containerName Changes to this property will trigger replacement. string
Site Container Name
environmentVariables EnvironmentVariable[]
List of environment variables
kind string
Kind of resource.
passwordSecret string
Password Secret
startUpCommand string
StartUp Command
targetPort string
Target Port
userManagedIdentityClientId string
UserManagedIdentity ClientId
userName string
User Name
volumeMounts VolumeMount[]
List of volume mounts
image This property is required. str
Image Name
is_main This property is required. bool
true if the container is the main site container; false otherwise.
name
This property is required.
Changes to this property will trigger replacement.
str
Name of the app.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the resource group to which the resource belongs.
slot
This property is required.
Changes to this property will trigger replacement.
str
Name of the deployment slot. If a slot is not specified, the API will create the container for the production slot.
auth_type AuthType
Auth Type
container_name Changes to this property will trigger replacement. str
Site Container Name
environment_variables Sequence[EnvironmentVariableArgs]
List of environment variables
kind str
Kind of resource.
password_secret str
Password Secret
start_up_command str
StartUp Command
target_port str
Target Port
user_managed_identity_client_id str
UserManagedIdentity ClientId
user_name str
User Name
volume_mounts Sequence[VolumeMountArgs]
List of volume mounts
image This property is required. String
Image Name
isMain This property is required. Boolean
true if the container is the main site container; false otherwise.
name
This property is required.
Changes to this property will trigger replacement.
String
Name of the app.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of the resource group to which the resource belongs.
slot
This property is required.
Changes to this property will trigger replacement.
String
Name of the deployment slot. If a slot is not specified, the API will create the container for the production slot.
authType "Anonymous" | "UserCredentials" | "SystemIdentity" | "UserAssigned"
Auth Type
containerName Changes to this property will trigger replacement. String
Site Container Name
environmentVariables List<Property Map>
List of environment variables
kind String
Kind of resource.
passwordSecret String
Password Secret
startUpCommand String
StartUp Command
targetPort String
Target Port
userManagedIdentityClientId String
UserManagedIdentity ClientId
userName String
User Name
volumeMounts List<Property Map>
List of volume mounts

Outputs

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

CreatedTime string
Created Time
Id string
The provider-assigned unique ID for this managed resource.
LastModifiedTime string
Last Modified Time
Type string
Resource type.
CreatedTime string
Created Time
Id string
The provider-assigned unique ID for this managed resource.
LastModifiedTime string
Last Modified Time
Type string
Resource type.
createdTime String
Created Time
id String
The provider-assigned unique ID for this managed resource.
lastModifiedTime String
Last Modified Time
type String
Resource type.
createdTime string
Created Time
id string
The provider-assigned unique ID for this managed resource.
lastModifiedTime string
Last Modified Time
type string
Resource type.
created_time str
Created Time
id str
The provider-assigned unique ID for this managed resource.
last_modified_time str
Last Modified Time
type str
Resource type.
createdTime String
Created Time
id String
The provider-assigned unique ID for this managed resource.
lastModifiedTime String
Last Modified Time
type String
Resource type.

Supporting Types

AuthType
, AuthTypeArgs

Anonymous
Anonymous
UserCredentials
UserCredentials
SystemIdentity
SystemIdentity
UserAssigned
UserAssigned
AuthTypeAnonymous
Anonymous
AuthTypeUserCredentials
UserCredentials
AuthTypeSystemIdentity
SystemIdentity
AuthTypeUserAssigned
UserAssigned
Anonymous
Anonymous
UserCredentials
UserCredentials
SystemIdentity
SystemIdentity
UserAssigned
UserAssigned
Anonymous
Anonymous
UserCredentials
UserCredentials
SystemIdentity
SystemIdentity
UserAssigned
UserAssigned
ANONYMOUS
Anonymous
USER_CREDENTIALS
UserCredentials
SYSTEM_IDENTITY
SystemIdentity
USER_ASSIGNED
UserAssigned
"Anonymous"
Anonymous
"UserCredentials"
UserCredentials
"SystemIdentity"
SystemIdentity
"UserAssigned"
UserAssigned

EnvironmentVariable
, EnvironmentVariableArgs

Name This property is required. string
Environment variable name
Value This property is required. string
Environment variable value
Name This property is required. string
Environment variable name
Value This property is required. string
Environment variable value
name This property is required. String
Environment variable name
value This property is required. String
Environment variable value
name This property is required. string
Environment variable name
value This property is required. string
Environment variable value
name This property is required. str
Environment variable name
value This property is required. str
Environment variable value
name This property is required. String
Environment variable name
value This property is required. String
Environment variable value

EnvironmentVariableResponse
, EnvironmentVariableResponseArgs

Name This property is required. string
Environment variable name
Value This property is required. string
Environment variable value
Name This property is required. string
Environment variable name
Value This property is required. string
Environment variable value
name This property is required. String
Environment variable name
value This property is required. String
Environment variable value
name This property is required. string
Environment variable name
value This property is required. string
Environment variable value
name This property is required. str
Environment variable name
value This property is required. str
Environment variable value
name This property is required. String
Environment variable name
value This property is required. String
Environment variable value

VolumeMount
, VolumeMountArgs

ContainerMountPath This property is required. string
Target path on the container where volume is mounted on
VolumeSubPath This property is required. string
Sub path in the volume where volume is mounted from.
Data string
Config Data to be mounted on the volume
ReadOnly bool
Boolean to specify if the mount is read only on the container
ContainerMountPath This property is required. string
Target path on the container where volume is mounted on
VolumeSubPath This property is required. string
Sub path in the volume where volume is mounted from.
Data string
Config Data to be mounted on the volume
ReadOnly bool
Boolean to specify if the mount is read only on the container
containerMountPath This property is required. String
Target path on the container where volume is mounted on
volumeSubPath This property is required. String
Sub path in the volume where volume is mounted from.
data String
Config Data to be mounted on the volume
readOnly Boolean
Boolean to specify if the mount is read only on the container
containerMountPath This property is required. string
Target path on the container where volume is mounted on
volumeSubPath This property is required. string
Sub path in the volume where volume is mounted from.
data string
Config Data to be mounted on the volume
readOnly boolean
Boolean to specify if the mount is read only on the container
container_mount_path This property is required. str
Target path on the container where volume is mounted on
volume_sub_path This property is required. str
Sub path in the volume where volume is mounted from.
data str
Config Data to be mounted on the volume
read_only bool
Boolean to specify if the mount is read only on the container
containerMountPath This property is required. String
Target path on the container where volume is mounted on
volumeSubPath This property is required. String
Sub path in the volume where volume is mounted from.
data String
Config Data to be mounted on the volume
readOnly Boolean
Boolean to specify if the mount is read only on the container

VolumeMountResponse
, VolumeMountResponseArgs

ContainerMountPath This property is required. string
Target path on the container where volume is mounted on
VolumeSubPath This property is required. string
Sub path in the volume where volume is mounted from.
Data string
Config Data to be mounted on the volume
ReadOnly bool
Boolean to specify if the mount is read only on the container
ContainerMountPath This property is required. string
Target path on the container where volume is mounted on
VolumeSubPath This property is required. string
Sub path in the volume where volume is mounted from.
Data string
Config Data to be mounted on the volume
ReadOnly bool
Boolean to specify if the mount is read only on the container
containerMountPath This property is required. String
Target path on the container where volume is mounted on
volumeSubPath This property is required. String
Sub path in the volume where volume is mounted from.
data String
Config Data to be mounted on the volume
readOnly Boolean
Boolean to specify if the mount is read only on the container
containerMountPath This property is required. string
Target path on the container where volume is mounted on
volumeSubPath This property is required. string
Sub path in the volume where volume is mounted from.
data string
Config Data to be mounted on the volume
readOnly boolean
Boolean to specify if the mount is read only on the container
container_mount_path This property is required. str
Target path on the container where volume is mounted on
volume_sub_path This property is required. str
Sub path in the volume where volume is mounted from.
data str
Config Data to be mounted on the volume
read_only bool
Boolean to specify if the mount is read only on the container
containerMountPath This property is required. String
Target path on the container where volume is mounted on
volumeSubPath This property is required. String
Sub path in the volume where volume is mounted from.
data String
Config Data to be mounted on the volume
readOnly Boolean
Boolean to specify if the mount is read only on the container

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi