1. Packages
  2. Azure Native
  3. API Docs
  4. web
  5. WebAppSiteContainerSlot
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

azure-native.web.WebAppSiteContainerSlot

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 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} 
    

    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.
    ResourceGroupName string
    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.AzureNative.Web.AuthType
    Auth Type
    ContainerName 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 string
    Image Name
    IsMain bool
    true if the container is the main site container; false otherwise.
    Name string
    Name of the app.
    ResourceGroupName string
    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 []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 String
    Image Name
    isMain Boolean
    true if the container is the main site container; false otherwise.
    name String
    Name of the app.
    resourceGroupName String
    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
    startUpCommand String
    StartUp Command
    targetPort String
    Target Port
    userManagedIdentityClientId String
    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.
    resourceGroupName string
    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
    startUpCommand string
    StartUp Command
    targetPort string
    Target Port
    userManagedIdentityClientId string
    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_name str
    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[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 String
    Image Name
    isMain Boolean
    true if the container is the main site container; false otherwise.
    name String
    Name of the app.
    resourceGroupName String
    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" | "SystemIdentity" | "UserAssigned"
    Auth Type
    containerName 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 string
    Environment variable name
    Value string
    Environment variable value
    Name string
    Environment variable name
    Value string
    Environment variable value
    name String
    Environment variable name
    value String
    Environment variable value
    name string
    Environment variable name
    value string
    Environment variable value
    name str
    Environment variable name
    value str
    Environment variable value
    name String
    Environment variable name
    value String
    Environment variable value

    EnvironmentVariableResponse, EnvironmentVariableResponseArgs

    Name string
    Environment variable name
    Value string
    Environment variable value
    Name string
    Environment variable name
    Value string
    Environment variable value
    name String
    Environment variable name
    value String
    Environment variable value
    name string
    Environment variable name
    value string
    Environment variable value
    name str
    Environment variable name
    value str
    Environment variable value
    name String
    Environment variable name
    value String
    Environment variable value

    VolumeMount, VolumeMountArgs

    ContainerMountPath string
    Target path on the container where volume is mounted on
    VolumeSubPath 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 string
    Target path on the container where volume is mounted on
    VolumeSubPath 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 String
    Target path on the container where volume is mounted on
    volumeSubPath 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 string
    Target path on the container where volume is mounted on
    volumeSubPath 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 str
    Target path on the container where volume is mounted on
    volume_sub_path 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 String
    Target path on the container where volume is mounted on
    volumeSubPath 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 string
    Target path on the container where volume is mounted on
    VolumeSubPath 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 string
    Target path on the container where volume is mounted on
    VolumeSubPath 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 String
    Target path on the container where volume is mounted on
    volumeSubPath 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 string
    Target path on the container where volume is mounted on
    volumeSubPath 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 str
    Target path on the container where volume is mounted on
    volume_sub_path 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 String
    Target path on the container where volume is mounted on
    volumeSubPath 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 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi