1. Packages
  2. Azure Native
  3. API Docs
  4. web
  5. WebAppSiteContainer
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.39.0 published on Monday, Apr 29, 2024 by Pulumi

azure-native.web.WebAppSiteContainer

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.39.0 published on Monday, Apr 29, 2024 by Pulumi

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

    Import

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

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

    Create WebAppSiteContainer Resource

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

    Constructor syntax

    new WebAppSiteContainer(name: string, args: WebAppSiteContainerArgs, opts?: CustomResourceOptions);
    @overload
    def WebAppSiteContainer(resource_name: str,
                            args: WebAppSiteContainerArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def WebAppSiteContainer(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            name: Optional[str] = None,
                            resource_group_name: Optional[str] = None,
                            is_main: Optional[bool] = None,
                            image: Optional[str] = None,
                            environment_variables: Optional[Sequence[EnvironmentVariableArgs]] = None,
                            kind: Optional[str] = None,
                            container_name: Optional[str] = None,
                            auth_type: Optional[AuthType] = None,
                            target_port: Optional[str] = None,
                            start_up_command: Optional[str] = None,
                            password_secret: Optional[str] = None,
                            user_managed_identity_client_id: Optional[str] = None,
                            user_name: Optional[str] = None,
                            volume_mounts: Optional[Sequence[VolumeMountArgs]] = None)
    func NewWebAppSiteContainer(ctx *Context, name string, args WebAppSiteContainerArgs, opts ...ResourceOption) (*WebAppSiteContainer, error)
    public WebAppSiteContainer(string name, WebAppSiteContainerArgs args, CustomResourceOptions? opts = null)
    public WebAppSiteContainer(String name, WebAppSiteContainerArgs args)
    public WebAppSiteContainer(String name, WebAppSiteContainerArgs args, CustomResourceOptions options)
    
    type: azure-native:web:WebAppSiteContainer
    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 WebAppSiteContainerArgs
    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 WebAppSiteContainerArgs
    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 WebAppSiteContainerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WebAppSiteContainerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WebAppSiteContainerArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var webAppSiteContainerResource = new AzureNative.Web.WebAppSiteContainer("webAppSiteContainerResource", new()
    {
        Name = "string",
        ResourceGroupName = "string",
        IsMain = false,
        Image = "string",
        EnvironmentVariables = new[]
        {
            new AzureNative.Web.Inputs.EnvironmentVariableArgs
            {
                Name = "string",
                Value = "string",
            },
        },
        Kind = "string",
        ContainerName = "string",
        AuthType = AzureNative.Web.AuthType.Anonymous,
        TargetPort = "string",
        StartUpCommand = "string",
        PasswordSecret = "string",
        UserManagedIdentityClientId = "string",
        UserName = "string",
        VolumeMounts = new[]
        {
            new AzureNative.Web.Inputs.VolumeMountArgs
            {
                ContainerMountPath = "string",
                VolumeSubPath = "string",
                Data = "string",
                ReadOnly = false,
            },
        },
    });
    
    example, err := web.NewWebAppSiteContainer(ctx, "webAppSiteContainerResource", &web.WebAppSiteContainerArgs{
    Name: pulumi.String("string"),
    ResourceGroupName: pulumi.String("string"),
    IsMain: pulumi.Bool(false),
    Image: pulumi.String("string"),
    EnvironmentVariables: web.EnvironmentVariableArray{
    &web.EnvironmentVariableArgs{
    Name: pulumi.String("string"),
    Value: pulumi.String("string"),
    },
    },
    Kind: pulumi.String("string"),
    ContainerName: pulumi.String("string"),
    AuthType: web.AuthTypeAnonymous,
    TargetPort: pulumi.String("string"),
    StartUpCommand: pulumi.String("string"),
    PasswordSecret: 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 webAppSiteContainerResource = new WebAppSiteContainer("webAppSiteContainerResource", WebAppSiteContainerArgs.builder()        
        .name("string")
        .resourceGroupName("string")
        .isMain(false)
        .image("string")
        .environmentVariables(EnvironmentVariableArgs.builder()
            .name("string")
            .value("string")
            .build())
        .kind("string")
        .containerName("string")
        .authType("Anonymous")
        .targetPort("string")
        .startUpCommand("string")
        .passwordSecret("string")
        .userManagedIdentityClientId("string")
        .userName("string")
        .volumeMounts(VolumeMountArgs.builder()
            .containerMountPath("string")
            .volumeSubPath("string")
            .data("string")
            .readOnly(false)
            .build())
        .build());
    
    web_app_site_container_resource = azure_native.web.WebAppSiteContainer("webAppSiteContainerResource",
        name="string",
        resource_group_name="string",
        is_main=False,
        image="string",
        environment_variables=[azure_native.web.EnvironmentVariableArgs(
            name="string",
            value="string",
        )],
        kind="string",
        container_name="string",
        auth_type=azure_native.web.AuthType.ANONYMOUS,
        target_port="string",
        start_up_command="string",
        password_secret="string",
        user_managed_identity_client_id="string",
        user_name="string",
        volume_mounts=[azure_native.web.VolumeMountArgs(
            container_mount_path="string",
            volume_sub_path="string",
            data="string",
            read_only=False,
        )])
    
    const webAppSiteContainerResource = new azure_native.web.WebAppSiteContainer("webAppSiteContainerResource", {
        name: "string",
        resourceGroupName: "string",
        isMain: false,
        image: "string",
        environmentVariables: [{
            name: "string",
            value: "string",
        }],
        kind: "string",
        containerName: "string",
        authType: azure_native.web.AuthType.Anonymous,
        targetPort: "string",
        startUpCommand: "string",
        passwordSecret: "string",
        userManagedIdentityClientId: "string",
        userName: "string",
        volumeMounts: [{
            containerMountPath: "string",
            volumeSubPath: "string",
            data: "string",
            readOnly: false,
        }],
    });
    
    type: azure-native:web:WebAppSiteContainer
    properties:
        authType: Anonymous
        containerName: string
        environmentVariables:
            - name: string
              value: string
        image: string
        isMain: false
        kind: string
        name: string
        passwordSecret: string
        resourceGroupName: string
        startUpCommand: string
        targetPort: string
        userManagedIdentityClientId: string
        userName: string
        volumeMounts:
            - containerMountPath: string
              data: string
              readOnly: false
              volumeSubPath: string
    

    WebAppSiteContainer 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 WebAppSiteContainer 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.
    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.
    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.
    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.
    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.
    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.
    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 WebAppSiteContainer 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.39.0 published on Monday, Apr 29, 2024 by Pulumi