Class Slot
Manages an App Service Slot (within an App Service).
Note: When using Slots - the
app_settings,connection_stringandsite_configblocks on theazure.appservice.AppServiceresource will be overwritten when promoting a Slot using theazure.appservice.ActiveSlotresource.
Inherited Members
Namespace: Pulumi.Azure.AppService
Assembly: Pulumi.Azure.dll
Syntax
public class Slot : CustomResource
Constructors
View SourceSlot(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 SourceAppServiceName
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> |
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> |
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>> |
AuthSettings
A auth_settings block as defined below.
Declaration
public Output<SlotAuthSettings> AuthSettings { get; }
Property Value
| Type | Description |
|---|---|
| Output<SlotAuthSettings> |
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> |
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>> |
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> |
Enabled
Is the App Service Slot Enabled?
Declaration
public Output<bool?> Enabled { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
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>> |
Identity
A Managed Service Identity block as defined below.
Declaration
public Output<SlotIdentity> Identity { get; }
Property Value
| Type | Description |
|---|---|
| Output<SlotIdentity> |
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> |
Logs
Declaration
public Output<SlotLogs> Logs { get; }
Property Value
| Type | Description |
|---|---|
| Output<SlotLogs> |
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> |
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> |
SiteConfig
A site_config object as defined below.
Declaration
public Output<SlotSiteConfig> SiteConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<SlotSiteConfig> |
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>> |
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 SourceGet(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 |