Show / Hide Table of Contents

Class Slot

Manages an App Service Slot (within an App Service).

Note: When using Slots - the app_settings, connection_string and site_config blocks on the azure.appservice.AppService resource will be overwritten when promoting a Slot using the azure.appservice.ActiveSlot resource.

Inheritance
System.Object
Resource
CustomResource
Slot
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.AppService
Assembly: Pulumi.Azure.dll
Syntax
public class Slot : CustomResource

Constructors

View Source

Slot(String, SlotArgs, CustomResourceOptions)

Create a Slot resource with the given unique name, arguments, and options.

Declaration
public Slot(string name, SlotArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

SlotArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

AppServiceName

The name of the App Service within which to create the App Service Slot. Changing this forces a new resource to be created.

Declaration
public Output<string> AppServiceName { get; }
Property Value
Type Description
Output<System.String>
View Source

AppServicePlanId

The ID of the App Service Plan within which to create this App Service Slot. Changing this forces a new resource to be created.

Declaration
public Output<string> AppServicePlanId { get; }
Property Value
Type Description
Output<System.String>
View Source

AppSettings

A key-value pair of App Settings.

Declaration
public Output<ImmutableDictionary<string, string>> AppSettings { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>>
View Source

AuthSettings

A auth_settings block as defined below.

Declaration
public Output<SlotAuthSettings> AuthSettings { get; }
Property Value
Type Description
Output<SlotAuthSettings>
View Source

ClientAffinityEnabled

Should the App Service Slot send session affinity cookies, which route client requests in the same session to the same instance?

Declaration
public Output<bool> ClientAffinityEnabled { get; }
Property Value
Type Description
Output<System.Boolean>
View Source

ConnectionStrings

An connection_string block as defined below.

Declaration
public Output<ImmutableArray<SlotConnectionString>> ConnectionStrings { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<SlotConnectionString>>
View Source

DefaultSiteHostname

The Default Hostname associated with the App Service Slot - such as mysite.azurewebsites.net

Declaration
public Output<string> DefaultSiteHostname { get; }
Property Value
Type Description
Output<System.String>
View Source

Enabled

Is the App Service Slot Enabled?

Declaration
public Output<bool?> Enabled { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

HttpsOnly

Can the App Service Slot only be accessed via HTTPS? Defaults to false.

Declaration
public Output<bool?> HttpsOnly { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

Identity

A Managed Service Identity block as defined below.

Declaration
public Output<SlotIdentity> Identity { get; }
Property Value
Type Description
Output<SlotIdentity>
View Source

Location

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

Declaration
public Output<string> Location { get; }
Property Value
Type Description
Output<System.String>
View Source

Logs

Declaration
public Output<SlotLogs> Logs { get; }
Property Value
Type Description
Output<SlotLogs>
View Source

Name

Specifies the name of the App Service Slot component. Changing this forces a new resource to be created.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

ResourceGroupName

The name of the resource group in which to create the App Service Slot component.

Declaration
public Output<string> ResourceGroupName { get; }
Property Value
Type Description
Output<System.String>
View Source

SiteConfig

A site_config object as defined below.

Declaration
public Output<SlotSiteConfig> SiteConfig { get; }
Property Value
Type Description
Output<SlotSiteConfig>
View Source

SiteCredentials

A site_credential block as defined below, which contains the site-level credentials used to publish to this App Service.

Declaration
public Output<ImmutableArray<SlotSiteCredential>> SiteCredentials { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<SlotSiteCredential>>
View Source

Tags

A mapping of tags to assign to the resource.

Declaration
public Output<ImmutableDictionary<string, string>> Tags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>>

Methods

View Source

Get(String, Input<String>, SlotState, CustomResourceOptions)

Get an existing Slot resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static Slot Get(string name, Input<string> id, SlotState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

SlotState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Slot
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.