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.63.0 published on Tuesday, Sep 24, 2024 by Pulumi
azure-native.web.WebAppSiteContainerSlot
Explore with Pulumi AI
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.63.0 published on Tuesday, Sep 24, 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: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=[{
"containerMountPath": "string",
"volumeSubPath": "string",
"data": "string",
"readOnly": 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
The WebAppSiteContainerSlot resource accepts the following input properties:
- Image string
- Image Name
- Is
Main bool - true if the container is the main site container; false otherwise.
- 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 create the container for the production slot.
- Auth
Type Pulumi.Azure Native. Web. Auth Type - Auth Type
- Container
Name string - Site Container Name
- Environment
Variables List<Pulumi.Azure Native. Web. Inputs. Environment Variable> - List of environment variables
- Kind string
- Kind of resource.
- Password
Secret string - Password Secret
- Start
Up stringCommand - StartUp Command
- Target
Port string - Target Port
- User
Managed stringIdentity Client Id - UserManagedIdentity ClientId
- User
Name string - User Name
- Volume
Mounts List<Pulumi.Azure Native. Web. Inputs. Volume Mount> - List of volume mounts
- Image string
- Image Name
- Is
Main bool - true if the container is the main site container; false otherwise.
- 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 create the container for the production slot.
- Auth
Type AuthType - Auth Type
- Container
Name string - Site Container Name
- Environment
Variables []EnvironmentVariable Args - List of environment variables
- Kind string
- Kind of resource.
- Password
Secret string - Password Secret
- Start
Up stringCommand - StartUp Command
- Target
Port string - Target Port
- User
Managed stringIdentity Client Id - UserManagedIdentity ClientId
- User
Name string - User Name
- Volume
Mounts []VolumeMount Args - List of volume mounts
- image String
- Image Name
- is
Main Boolean - true if the container is the main site container; false otherwise.
- 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 create the container for the production slot.
- auth
Type AuthType - Auth Type
- container
Name String - Site Container Name
- environment
Variables List<EnvironmentVariable> - List of environment variables
- kind String
- Kind of resource.
- password
Secret String - Password Secret
- start
Up StringCommand - StartUp Command
- target
Port String - Target Port
- user
Managed StringIdentity Client Id - UserManagedIdentity ClientId
- user
Name String - User Name
- volume
Mounts List<VolumeMount> - List of volume mounts
- image string
- Image Name
- is
Main boolean - true if the container is the main site container; false otherwise.
- 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 create the container for the production slot.
- auth
Type AuthType - Auth Type
- container
Name string - Site Container Name
- environment
Variables EnvironmentVariable[] - List of environment variables
- kind string
- Kind of resource.
- password
Secret string - Password Secret
- start
Up stringCommand - StartUp Command
- target
Port string - Target Port
- user
Managed stringIdentity Client Id - UserManagedIdentity ClientId
- user
Name string - User Name
- volume
Mounts 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
- is
Main Boolean - true if the container is the main site container; false otherwise.
- 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 create the container for the production slot.
- auth
Type "Anonymous" | "UserCredentials" | "System Identity" | "User Assigned" - Auth Type
- container
Name String - Site Container Name
- environment
Variables List<Property Map> - List of environment variables
- kind String
- Kind of resource.
- password
Secret String - Password Secret
- start
Up StringCommand - StartUp Command
- target
Port String - Target Port
- user
Managed StringIdentity Client Id - UserManagedIdentity ClientId
- user
Name String - User Name
- volume
Mounts 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:
- Created
Time string - Created Time
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified stringTime - Last Modified Time
- Type string
- Resource type.
- Created
Time string - Created Time
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified stringTime - Last Modified Time
- Type string
- Resource type.
- created
Time String - Created Time
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified StringTime - Last Modified Time
- type String
- Resource type.
- created
Time string - Created Time
- id string
- The provider-assigned unique ID for this managed resource.
- last
Modified 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.
- created
Time String - Created Time
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified StringTime - Last Modified Time
- type String
- Resource type.
Supporting Types
AuthType, AuthTypeArgs
- Anonymous
- Anonymous
- User
Credentials - UserCredentials
- System
Identity - SystemIdentity
- User
Assigned - UserAssigned
- Auth
Type Anonymous - Anonymous
- Auth
Type User Credentials - UserCredentials
- Auth
Type System Identity - SystemIdentity
- Auth
Type User Assigned - UserAssigned
- Anonymous
- Anonymous
- User
Credentials - UserCredentials
- System
Identity - SystemIdentity
- User
Assigned - UserAssigned
- Anonymous
- Anonymous
- User
Credentials - UserCredentials
- System
Identity - SystemIdentity
- User
Assigned - UserAssigned
- ANONYMOUS
- Anonymous
- USER_CREDENTIALS
- UserCredentials
- SYSTEM_IDENTITY
- SystemIdentity
- USER_ASSIGNED
- UserAssigned
- "Anonymous"
- Anonymous
- "User
Credentials" - UserCredentials
- "System
Identity" - SystemIdentity
- "User
Assigned" - UserAssigned
EnvironmentVariable, EnvironmentVariableArgs
EnvironmentVariableResponse, EnvironmentVariableResponseArgs
VolumeMount, VolumeMountArgs
- Container
Mount stringPath - Target path on the container where volume is mounted on
- Volume
Sub stringPath - Sub path in the volume where volume is mounted from.
- Data string
- Config Data to be mounted on the volume
- Read
Only bool - Boolean to specify if the mount is read only on the container
- Container
Mount stringPath - Target path on the container where volume is mounted on
- Volume
Sub stringPath - Sub path in the volume where volume is mounted from.
- Data string
- Config Data to be mounted on the volume
- Read
Only bool - Boolean to specify if the mount is read only on the container
- container
Mount StringPath - Target path on the container where volume is mounted on
- volume
Sub StringPath - Sub path in the volume where volume is mounted from.
- data String
- Config Data to be mounted on the volume
- read
Only Boolean - Boolean to specify if the mount is read only on the container
- container
Mount stringPath - Target path on the container where volume is mounted on
- volume
Sub stringPath - Sub path in the volume where volume is mounted from.
- data string
- Config Data to be mounted on the volume
- read
Only 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
- container
Mount StringPath - Target path on the container where volume is mounted on
- volume
Sub StringPath - Sub path in the volume where volume is mounted from.
- data String
- Config Data to be mounted on the volume
- read
Only Boolean - Boolean to specify if the mount is read only on the container
VolumeMountResponse, VolumeMountResponseArgs
- Container
Mount stringPath - Target path on the container where volume is mounted on
- Volume
Sub stringPath - Sub path in the volume where volume is mounted from.
- Data string
- Config Data to be mounted on the volume
- Read
Only bool - Boolean to specify if the mount is read only on the container
- Container
Mount stringPath - Target path on the container where volume is mounted on
- Volume
Sub stringPath - Sub path in the volume where volume is mounted from.
- Data string
- Config Data to be mounted on the volume
- Read
Only bool - Boolean to specify if the mount is read only on the container
- container
Mount StringPath - Target path on the container where volume is mounted on
- volume
Sub StringPath - Sub path in the volume where volume is mounted from.
- data String
- Config Data to be mounted on the volume
- read
Only Boolean - Boolean to specify if the mount is read only on the container
- container
Mount stringPath - Target path on the container where volume is mounted on
- volume
Sub stringPath - Sub path in the volume where volume is mounted from.
- data string
- Config Data to be mounted on the volume
- read
Only 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
- container
Mount StringPath - Target path on the container where volume is mounted on
- volume
Sub StringPath - Sub path in the volume where volume is mounted from.
- data String
- Config Data to be mounted on the volume
- read
Only 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
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.63.0 published on Tuesday, Sep 24, 2024 by Pulumi