azure-native.web.WebAppSiteContainerSlot
Explore with Pulumi AI
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} 
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 string
- The unique name of the resource.
- args WebAppSiteContainerSlotArgs
- 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 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 string
- The unique name of the resource.
- args WebAppSiteContainerSlotArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WebAppSiteContainerSlotArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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 = AzureNative.Web.AuthType.Anonymous,
    EnvironmentVariables = new[]
    {
        new AzureNative.Web.Inputs.EnvironmentVariableArgs
        {
            Name = "string",
            Value = "string",
        },
    },
    StartUpCommand = "string",
    TargetPort = "string",
    UserManagedIdentityClientId = "string",
    UserName = "string",
    VolumeMounts = new[]
    {
        new AzureNative.Web.Inputs.VolumeMountArgs
        {
            ContainerMountPath = "string",
            VolumeSubPath = "string",
            Data = "string",
            ReadOnly = false,
        },
    },
});
example, err := web.NewWebAppSiteContainerSlot(ctx, "webAppSiteContainerSlotResource", &web.WebAppSiteContainerSlotArgs{
	Name:              pulumi.String("string"),
	ResourceGroupName: pulumi.String("string"),
	Slot:              pulumi.String("string"),
	Image:             pulumi.String("string"),
	IsMain:            pulumi.Bool(false),
	Kind:              pulumi.String("string"),
	ContainerName:     pulumi.String("string"),
	PasswordSecret:    pulumi.String("string"),
	AuthType:          web.AuthTypeAnonymous,
	EnvironmentVariables: web.EnvironmentVariableArray{
		&web.EnvironmentVariableArgs{
			Name:  pulumi.String("string"),
			Value: pulumi.String("string"),
		},
	},
	StartUpCommand:              pulumi.String("string"),
	TargetPort:                  pulumi.String("string"),
	UserManagedIdentityClientId: pulumi.String("string"),
	UserName:                    pulumi.String("string"),
	VolumeMounts: web.VolumeMountArray{
		&web.VolumeMountArgs{
			ContainerMountPath: pulumi.String("string"),
			VolumeSubPath:      pulumi.String("string"),
			Data:               pulumi.String("string"),
			ReadOnly:           pulumi.Bool(false),
		},
	},
})
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(EnvironmentVariableArgs.builder()
        .name("string")
        .value("string")
        .build())
    .startUpCommand("string")
    .targetPort("string")
    .userManagedIdentityClientId("string")
    .userName("string")
    .volumeMounts(VolumeMountArgs.builder()
        .containerMountPath("string")
        .volumeSubPath("string")
        .data("string")
        .readOnly(false)
        .build())
    .build());
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=azure_native.web.AuthType.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=[{
        "container_mount_path": "string",
        "volume_sub_path": "string",
        "data": "string",
        "read_only": False,
    }])
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: azure_native.web.AuthType.Anonymous,
    environmentVariables: [{
        name: "string",
        value: "string",
    }],
    startUpCommand: "string",
    targetPort: "string",
    userManagedIdentityClientId: "string",
    userName: "string",
    volumeMounts: [{
        containerMountPath: "string",
        volumeSubPath: "string",
        data: "string",
        readOnly: false,
    }],
});
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
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 string
- Image Name
- IsMain bool
- true if the container is the main site container; false otherwise.
- Name string
- Name of the app.
- ResourceGroup 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 create the container for the production slot.
- AuthType Pulumi.Azure Native. Web. Auth Type 
- Auth Type
- ContainerName string
- Site Container Name
- EnvironmentVariables List<Pulumi.Azure Native. Web. Inputs. Environment Variable> 
- List of environment variables
- Kind string
- Kind of resource.
- PasswordSecret string
- Password Secret
- StartUp stringCommand 
- StartUp Command
- TargetPort string
- Target Port
- UserManaged stringIdentity Client Id 
- UserManagedIdentity ClientId
- UserName string
- User Name
- VolumeMounts List<Pulumi.Azure Native. Web. Inputs. Volume Mount> 
- List of volume mounts
- Image string
- Image Name
- IsMain bool
- true if the container is the main site container; false otherwise.
- Name string
- Name of the app.
- ResourceGroup 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 create the container for the production slot.
- AuthType AuthType 
- Auth Type
- ContainerName string
- Site Container Name
- EnvironmentVariables []EnvironmentVariable Args 
- List of environment variables
- Kind string
- Kind of resource.
- PasswordSecret string
- Password Secret
- StartUp stringCommand 
- StartUp Command
- TargetPort string
- Target Port
- UserManaged stringIdentity Client Id 
- UserManagedIdentity ClientId
- UserName string
- User Name
- VolumeMounts []VolumeMount Args 
- List of volume mounts
- image String
- Image Name
- isMain Boolean
- true if the container is the main site container; false otherwise.
- name String
- Name of the app.
- resourceGroup 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 create the container for the production slot.
- authType AuthType 
- Auth Type
- containerName String
- Site Container Name
- environmentVariables List<EnvironmentVariable> 
- List of environment variables
- kind String
- Kind of resource.
- passwordSecret String
- Password Secret
- startUp StringCommand 
- StartUp Command
- targetPort String
- Target Port
- userManaged StringIdentity Client Id 
- UserManagedIdentity ClientId
- userName String
- User Name
- volumeMounts List<VolumeMount> 
- List of volume mounts
- image string
- Image Name
- isMain boolean
- true if the container is the main site container; false otherwise.
- name string
- Name of the app.
- resourceGroup 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 create the container for the production slot.
- authType AuthType 
- Auth Type
- containerName string
- Site Container Name
- environmentVariables EnvironmentVariable[] 
- List of environment variables
- kind string
- Kind of resource.
- passwordSecret string
- Password Secret
- startUp stringCommand 
- StartUp Command
- targetPort string
- Target Port
- userManaged stringIdentity Client Id 
- UserManagedIdentity ClientId
- userName string
- User Name
- volumeMounts VolumeMount[] 
- List of volume mounts
- image str
- Image Name
- is_main bool
- true if the container is the main site container; false otherwise.
- 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 create the container for the production slot.
- auth_type AuthType 
- Auth Type
- container_name str
- Site Container Name
- environment_variables Sequence[EnvironmentVariable Args] 
- List of environment variables
- kind str
- Kind of resource.
- password_secret str
- Password Secret
- start_up_ strcommand 
- StartUp Command
- target_port str
- Target Port
- user_managed_ stridentity_ client_ id 
- UserManagedIdentity ClientId
- user_name str
- User Name
- volume_mounts Sequence[VolumeMount Args] 
- List of volume mounts
- image String
- Image Name
- isMain Boolean
- true if the container is the main site container; false otherwise.
- name String
- Name of the app.
- resourceGroup 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 create the container for the production slot.
- authType "Anonymous" | "UserCredentials" | "System Identity" | "User Assigned" 
- Auth Type
- containerName String
- Site Container Name
- environmentVariables List<Property Map>
- List of environment variables
- kind String
- Kind of resource.
- passwordSecret String
- Password Secret
- startUp StringCommand 
- StartUp Command
- targetPort String
- Target Port
- userManaged StringIdentity Client Id 
- 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.
- LastModified stringTime 
- Last Modified Time
- Type string
- Resource type.
- CreatedTime string
- Created Time
- Id string
- The provider-assigned unique ID for this managed resource.
- LastModified stringTime 
- Last Modified Time
- Type string
- Resource type.
- createdTime String
- Created Time
- id String
- The provider-assigned unique ID for this managed resource.
- lastModified StringTime 
- Last Modified Time
- type String
- Resource type.
- createdTime string
- Created Time
- id string
- The provider-assigned unique ID for this managed resource.
- lastModified stringTime 
- 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_ strtime 
- Last Modified Time
- type str
- Resource type.
- createdTime String
- Created Time
- id String
- The provider-assigned unique ID for this managed resource.
- lastModified StringTime 
- Last Modified Time
- type String
- Resource type.
Supporting Types
AuthType, AuthTypeArgs    
- Anonymous
- Anonymous
- UserCredentials 
- UserCredentials
- SystemIdentity 
- SystemIdentity
- UserAssigned 
- UserAssigned
- AuthType Anonymous 
- Anonymous
- AuthType User Credentials 
- UserCredentials
- AuthType System Identity 
- SystemIdentity
- AuthType User Assigned 
- 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    
EnvironmentVariableResponse, EnvironmentVariableResponseArgs      
VolumeMount, VolumeMountArgs    
- ContainerMount stringPath 
- Target path on the container where volume is mounted on
- VolumeSub stringPath 
- 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
- ContainerMount stringPath 
- Target path on the container where volume is mounted on
- VolumeSub stringPath 
- 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
- containerMount StringPath 
- Target path on the container where volume is mounted on
- volumeSub StringPath 
- 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
- containerMount stringPath 
- Target path on the container where volume is mounted on
- volumeSub stringPath 
- 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_ strpath 
- Target path on the container where volume is mounted on
- volume_sub_ strpath 
- 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
- containerMount StringPath 
- Target path on the container where volume is mounted on
- volumeSub StringPath 
- 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      
- ContainerMount stringPath 
- Target path on the container where volume is mounted on
- VolumeSub stringPath 
- 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
- ContainerMount stringPath 
- Target path on the container where volume is mounted on
- VolumeSub stringPath 
- 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
- containerMount StringPath 
- Target path on the container where volume is mounted on
- volumeSub StringPath 
- 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
- containerMount stringPath 
- Target path on the container where volume is mounted on
- volumeSub stringPath 
- 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_ strpath 
- Target path on the container where volume is mounted on
- volume_sub_ strpath 
- 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
- containerMount StringPath 
- Target path on the container where volume is mounted on
- volumeSub StringPath 
- 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 pulumi/pulumi-azure-native
- License
- Apache-2.0