We recommend using Azure Native.
azure.appservice.Slot
Explore with Pulumi AI
Manages an App Service Slot (within an App Service).
!> NOTE: This resource has been deprecated in version 5.0 of the provider and will be removed in version 6.0. Please use azure.appservice.LinuxWebAppSlot
and azure.appservice.WindowsWebAppSlot
resources instead.
Note: When using Slots - the
app_settings
,connection_string
andsite_config
blocks on theazure.appservice.AppService
resource will be overwritten when promoting a Slot using theazure.appservice.ActiveSlot
resource.
Example Usage
NET 4.X)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
import * as random from "@pulumi/random";
const server = new random.RandomId("server", {
keepers: {
azi_id: "1",
},
byteLength: 8,
});
const example = new azure.core.ResourceGroup("example", {
name: "some-resource-group",
location: "West Europe",
});
const examplePlan = new azure.appservice.Plan("example", {
name: "some-app-service-plan",
location: example.location,
resourceGroupName: example.name,
sku: {
tier: "Standard",
size: "S1",
},
});
const exampleAppService = new azure.appservice.AppService("example", {
name: server.hex,
location: example.location,
resourceGroupName: example.name,
appServicePlanId: examplePlan.id,
siteConfig: {
dotnetFrameworkVersion: "v4.0",
},
appSettings: {
SOME_KEY: "some-value",
},
connectionStrings: [{
name: "Database",
type: "SQLServer",
value: "Server=some-server.mydomain.com;Integrated Security=SSPI",
}],
});
const exampleSlot = new azure.appservice.Slot("example", {
name: server.hex,
appServiceName: exampleAppService.name,
location: example.location,
resourceGroupName: example.name,
appServicePlanId: examplePlan.id,
siteConfig: {
dotnetFrameworkVersion: "v4.0",
},
appSettings: {
SOME_KEY: "some-value",
},
connectionStrings: [{
name: "Database",
type: "SQLServer",
value: "Server=some-server.mydomain.com;Integrated Security=SSPI",
}],
});
import pulumi
import pulumi_azure as azure
import pulumi_random as random
server = random.RandomId("server",
keepers={
"azi_id": "1",
},
byte_length=8)
example = azure.core.ResourceGroup("example",
name="some-resource-group",
location="West Europe")
example_plan = azure.appservice.Plan("example",
name="some-app-service-plan",
location=example.location,
resource_group_name=example.name,
sku={
"tier": "Standard",
"size": "S1",
})
example_app_service = azure.appservice.AppService("example",
name=server.hex,
location=example.location,
resource_group_name=example.name,
app_service_plan_id=example_plan.id,
site_config={
"dotnet_framework_version": "v4.0",
},
app_settings={
"SOME_KEY": "some-value",
},
connection_strings=[{
"name": "Database",
"type": "SQLServer",
"value": "Server=some-server.mydomain.com;Integrated Security=SSPI",
}])
example_slot = azure.appservice.Slot("example",
name=server.hex,
app_service_name=example_app_service.name,
location=example.location,
resource_group_name=example.name,
app_service_plan_id=example_plan.id,
site_config={
"dotnet_framework_version": "v4.0",
},
app_settings={
"SOME_KEY": "some-value",
},
connection_strings=[{
"name": "Database",
"type": "SQLServer",
"value": "Server=some-server.mydomain.com;Integrated Security=SSPI",
}])
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
server, err := random.NewRandomId(ctx, "server", &random.RandomIdArgs{
Keepers: pulumi.StringMap{
"azi_id": pulumi.String("1"),
},
ByteLength: pulumi.Int(8),
})
if err != nil {
return err
}
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("some-resource-group"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
examplePlan, err := appservice.NewPlan(ctx, "example", &appservice.PlanArgs{
Name: pulumi.String("some-app-service-plan"),
Location: example.Location,
ResourceGroupName: example.Name,
Sku: &appservice.PlanSkuArgs{
Tier: pulumi.String("Standard"),
Size: pulumi.String("S1"),
},
})
if err != nil {
return err
}
exampleAppService, err := appservice.NewAppService(ctx, "example", &appservice.AppServiceArgs{
Name: server.Hex,
Location: example.Location,
ResourceGroupName: example.Name,
AppServicePlanId: examplePlan.ID(),
SiteConfig: &appservice.AppServiceSiteConfigArgs{
DotnetFrameworkVersion: pulumi.String("v4.0"),
},
AppSettings: pulumi.StringMap{
"SOME_KEY": pulumi.String("some-value"),
},
ConnectionStrings: appservice.AppServiceConnectionStringArray{
&appservice.AppServiceConnectionStringArgs{
Name: pulumi.String("Database"),
Type: pulumi.String("SQLServer"),
Value: pulumi.String("Server=some-server.mydomain.com;Integrated Security=SSPI"),
},
},
})
if err != nil {
return err
}
_, err = appservice.NewSlot(ctx, "example", &appservice.SlotArgs{
Name: server.Hex,
AppServiceName: exampleAppService.Name,
Location: example.Location,
ResourceGroupName: example.Name,
AppServicePlanId: examplePlan.ID(),
SiteConfig: &appservice.SlotSiteConfigArgs{
DotnetFrameworkVersion: pulumi.String("v4.0"),
},
AppSettings: pulumi.StringMap{
"SOME_KEY": pulumi.String("some-value"),
},
ConnectionStrings: appservice.SlotConnectionStringArray{
&appservice.SlotConnectionStringArgs{
Name: pulumi.String("Database"),
Type: pulumi.String("SQLServer"),
Value: pulumi.String("Server=some-server.mydomain.com;Integrated Security=SSPI"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
using Random = Pulumi.Random;
return await Deployment.RunAsync(() =>
{
var server = new Random.RandomId("server", new()
{
Keepers =
{
{ "azi_id", "1" },
},
ByteLength = 8,
});
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "some-resource-group",
Location = "West Europe",
});
var examplePlan = new Azure.AppService.Plan("example", new()
{
Name = "some-app-service-plan",
Location = example.Location,
ResourceGroupName = example.Name,
Sku = new Azure.AppService.Inputs.PlanSkuArgs
{
Tier = "Standard",
Size = "S1",
},
});
var exampleAppService = new Azure.AppService.AppService("example", new()
{
Name = server.Hex,
Location = example.Location,
ResourceGroupName = example.Name,
AppServicePlanId = examplePlan.Id,
SiteConfig = new Azure.AppService.Inputs.AppServiceSiteConfigArgs
{
DotnetFrameworkVersion = "v4.0",
},
AppSettings =
{
{ "SOME_KEY", "some-value" },
},
ConnectionStrings = new[]
{
new Azure.AppService.Inputs.AppServiceConnectionStringArgs
{
Name = "Database",
Type = "SQLServer",
Value = "Server=some-server.mydomain.com;Integrated Security=SSPI",
},
},
});
var exampleSlot = new Azure.AppService.Slot("example", new()
{
Name = server.Hex,
AppServiceName = exampleAppService.Name,
Location = example.Location,
ResourceGroupName = example.Name,
AppServicePlanId = examplePlan.Id,
SiteConfig = new Azure.AppService.Inputs.SlotSiteConfigArgs
{
DotnetFrameworkVersion = "v4.0",
},
AppSettings =
{
{ "SOME_KEY", "some-value" },
},
ConnectionStrings = new[]
{
new Azure.AppService.Inputs.SlotConnectionStringArgs
{
Name = "Database",
Type = "SQLServer",
Value = "Server=some-server.mydomain.com;Integrated Security=SSPI",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.random.RandomId;
import com.pulumi.random.RandomIdArgs;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.appservice.Plan;
import com.pulumi.azure.appservice.PlanArgs;
import com.pulumi.azure.appservice.inputs.PlanSkuArgs;
import com.pulumi.azure.appservice.AppService;
import com.pulumi.azure.appservice.AppServiceArgs;
import com.pulumi.azure.appservice.inputs.AppServiceSiteConfigArgs;
import com.pulumi.azure.appservice.inputs.AppServiceConnectionStringArgs;
import com.pulumi.azure.appservice.Slot;
import com.pulumi.azure.appservice.SlotArgs;
import com.pulumi.azure.appservice.inputs.SlotSiteConfigArgs;
import com.pulumi.azure.appservice.inputs.SlotConnectionStringArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var server = new RandomId("server", RandomIdArgs.builder()
.keepers(Map.of("azi_id", 1))
.byteLength(8)
.build());
var example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("some-resource-group")
.location("West Europe")
.build());
var examplePlan = new Plan("examplePlan", PlanArgs.builder()
.name("some-app-service-plan")
.location(example.location())
.resourceGroupName(example.name())
.sku(PlanSkuArgs.builder()
.tier("Standard")
.size("S1")
.build())
.build());
var exampleAppService = new AppService("exampleAppService", AppServiceArgs.builder()
.name(server.hex())
.location(example.location())
.resourceGroupName(example.name())
.appServicePlanId(examplePlan.id())
.siteConfig(AppServiceSiteConfigArgs.builder()
.dotnetFrameworkVersion("v4.0")
.build())
.appSettings(Map.of("SOME_KEY", "some-value"))
.connectionStrings(AppServiceConnectionStringArgs.builder()
.name("Database")
.type("SQLServer")
.value("Server=some-server.mydomain.com;Integrated Security=SSPI")
.build())
.build());
var exampleSlot = new Slot("exampleSlot", SlotArgs.builder()
.name(server.hex())
.appServiceName(exampleAppService.name())
.location(example.location())
.resourceGroupName(example.name())
.appServicePlanId(examplePlan.id())
.siteConfig(SlotSiteConfigArgs.builder()
.dotnetFrameworkVersion("v4.0")
.build())
.appSettings(Map.of("SOME_KEY", "some-value"))
.connectionStrings(SlotConnectionStringArgs.builder()
.name("Database")
.type("SQLServer")
.value("Server=some-server.mydomain.com;Integrated Security=SSPI")
.build())
.build());
}
}
resources:
server:
type: random:RandomId
properties:
keepers:
azi_id: 1
byteLength: 8
example:
type: azure:core:ResourceGroup
properties:
name: some-resource-group
location: West Europe
examplePlan:
type: azure:appservice:Plan
name: example
properties:
name: some-app-service-plan
location: ${example.location}
resourceGroupName: ${example.name}
sku:
tier: Standard
size: S1
exampleAppService:
type: azure:appservice:AppService
name: example
properties:
name: ${server.hex}
location: ${example.location}
resourceGroupName: ${example.name}
appServicePlanId: ${examplePlan.id}
siteConfig:
dotnetFrameworkVersion: v4.0
appSettings:
SOME_KEY: some-value
connectionStrings:
- name: Database
type: SQLServer
value: Server=some-server.mydomain.com;Integrated Security=SSPI
exampleSlot:
type: azure:appservice:Slot
name: example
properties:
name: ${server.hex}
appServiceName: ${exampleAppService.name}
location: ${example.location}
resourceGroupName: ${example.name}
appServicePlanId: ${examplePlan.id}
siteConfig:
dotnetFrameworkVersion: v4.0
appSettings:
SOME_KEY: some-value
connectionStrings:
- name: Database
type: SQLServer
value: Server=some-server.mydomain.com;Integrated Security=SSPI
Java 1.8)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
import * as random from "@pulumi/random";
const server = new random.RandomId("server", {
keepers: {
azi_id: "1",
},
byteLength: 8,
});
const example = new azure.core.ResourceGroup("example", {
name: "some-resource-group",
location: "West Europe",
});
const examplePlan = new azure.appservice.Plan("example", {
name: "some-app-service-plan",
location: example.location,
resourceGroupName: example.name,
sku: {
tier: "Standard",
size: "S1",
},
});
const exampleAppService = new azure.appservice.AppService("example", {
name: server.hex,
location: example.location,
resourceGroupName: example.name,
appServicePlanId: examplePlan.id,
siteConfig: {
javaVersion: "1.8",
javaContainer: "JETTY",
javaContainerVersion: "9.3",
},
});
const exampleSlot = new azure.appservice.Slot("example", {
name: server.hex,
appServiceName: exampleAppService.name,
location: example.location,
resourceGroupName: example.name,
appServicePlanId: examplePlan.id,
siteConfig: {
javaVersion: "1.8",
javaContainer: "JETTY",
javaContainerVersion: "9.3",
},
});
import pulumi
import pulumi_azure as azure
import pulumi_random as random
server = random.RandomId("server",
keepers={
"azi_id": "1",
},
byte_length=8)
example = azure.core.ResourceGroup("example",
name="some-resource-group",
location="West Europe")
example_plan = azure.appservice.Plan("example",
name="some-app-service-plan",
location=example.location,
resource_group_name=example.name,
sku={
"tier": "Standard",
"size": "S1",
})
example_app_service = azure.appservice.AppService("example",
name=server.hex,
location=example.location,
resource_group_name=example.name,
app_service_plan_id=example_plan.id,
site_config={
"java_version": "1.8",
"java_container": "JETTY",
"java_container_version": "9.3",
})
example_slot = azure.appservice.Slot("example",
name=server.hex,
app_service_name=example_app_service.name,
location=example.location,
resource_group_name=example.name,
app_service_plan_id=example_plan.id,
site_config={
"java_version": "1.8",
"java_container": "JETTY",
"java_container_version": "9.3",
})
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
server, err := random.NewRandomId(ctx, "server", &random.RandomIdArgs{
Keepers: pulumi.StringMap{
"azi_id": pulumi.String("1"),
},
ByteLength: pulumi.Int(8),
})
if err != nil {
return err
}
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("some-resource-group"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
examplePlan, err := appservice.NewPlan(ctx, "example", &appservice.PlanArgs{
Name: pulumi.String("some-app-service-plan"),
Location: example.Location,
ResourceGroupName: example.Name,
Sku: &appservice.PlanSkuArgs{
Tier: pulumi.String("Standard"),
Size: pulumi.String("S1"),
},
})
if err != nil {
return err
}
exampleAppService, err := appservice.NewAppService(ctx, "example", &appservice.AppServiceArgs{
Name: server.Hex,
Location: example.Location,
ResourceGroupName: example.Name,
AppServicePlanId: examplePlan.ID(),
SiteConfig: &appservice.AppServiceSiteConfigArgs{
JavaVersion: pulumi.String("1.8"),
JavaContainer: pulumi.String("JETTY"),
JavaContainerVersion: pulumi.String("9.3"),
},
})
if err != nil {
return err
}
_, err = appservice.NewSlot(ctx, "example", &appservice.SlotArgs{
Name: server.Hex,
AppServiceName: exampleAppService.Name,
Location: example.Location,
ResourceGroupName: example.Name,
AppServicePlanId: examplePlan.ID(),
SiteConfig: &appservice.SlotSiteConfigArgs{
JavaVersion: pulumi.String("1.8"),
JavaContainer: pulumi.String("JETTY"),
JavaContainerVersion: pulumi.String("9.3"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
using Random = Pulumi.Random;
return await Deployment.RunAsync(() =>
{
var server = new Random.RandomId("server", new()
{
Keepers =
{
{ "azi_id", "1" },
},
ByteLength = 8,
});
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "some-resource-group",
Location = "West Europe",
});
var examplePlan = new Azure.AppService.Plan("example", new()
{
Name = "some-app-service-plan",
Location = example.Location,
ResourceGroupName = example.Name,
Sku = new Azure.AppService.Inputs.PlanSkuArgs
{
Tier = "Standard",
Size = "S1",
},
});
var exampleAppService = new Azure.AppService.AppService("example", new()
{
Name = server.Hex,
Location = example.Location,
ResourceGroupName = example.Name,
AppServicePlanId = examplePlan.Id,
SiteConfig = new Azure.AppService.Inputs.AppServiceSiteConfigArgs
{
JavaVersion = "1.8",
JavaContainer = "JETTY",
JavaContainerVersion = "9.3",
},
});
var exampleSlot = new Azure.AppService.Slot("example", new()
{
Name = server.Hex,
AppServiceName = exampleAppService.Name,
Location = example.Location,
ResourceGroupName = example.Name,
AppServicePlanId = examplePlan.Id,
SiteConfig = new Azure.AppService.Inputs.SlotSiteConfigArgs
{
JavaVersion = "1.8",
JavaContainer = "JETTY",
JavaContainerVersion = "9.3",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.random.RandomId;
import com.pulumi.random.RandomIdArgs;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.appservice.Plan;
import com.pulumi.azure.appservice.PlanArgs;
import com.pulumi.azure.appservice.inputs.PlanSkuArgs;
import com.pulumi.azure.appservice.AppService;
import com.pulumi.azure.appservice.AppServiceArgs;
import com.pulumi.azure.appservice.inputs.AppServiceSiteConfigArgs;
import com.pulumi.azure.appservice.Slot;
import com.pulumi.azure.appservice.SlotArgs;
import com.pulumi.azure.appservice.inputs.SlotSiteConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var server = new RandomId("server", RandomIdArgs.builder()
.keepers(Map.of("azi_id", 1))
.byteLength(8)
.build());
var example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("some-resource-group")
.location("West Europe")
.build());
var examplePlan = new Plan("examplePlan", PlanArgs.builder()
.name("some-app-service-plan")
.location(example.location())
.resourceGroupName(example.name())
.sku(PlanSkuArgs.builder()
.tier("Standard")
.size("S1")
.build())
.build());
var exampleAppService = new AppService("exampleAppService", AppServiceArgs.builder()
.name(server.hex())
.location(example.location())
.resourceGroupName(example.name())
.appServicePlanId(examplePlan.id())
.siteConfig(AppServiceSiteConfigArgs.builder()
.javaVersion("1.8")
.javaContainer("JETTY")
.javaContainerVersion("9.3")
.build())
.build());
var exampleSlot = new Slot("exampleSlot", SlotArgs.builder()
.name(server.hex())
.appServiceName(exampleAppService.name())
.location(example.location())
.resourceGroupName(example.name())
.appServicePlanId(examplePlan.id())
.siteConfig(SlotSiteConfigArgs.builder()
.javaVersion("1.8")
.javaContainer("JETTY")
.javaContainerVersion("9.3")
.build())
.build());
}
}
resources:
server:
type: random:RandomId
properties:
keepers:
azi_id: 1
byteLength: 8
example:
type: azure:core:ResourceGroup
properties:
name: some-resource-group
location: West Europe
examplePlan:
type: azure:appservice:Plan
name: example
properties:
name: some-app-service-plan
location: ${example.location}
resourceGroupName: ${example.name}
sku:
tier: Standard
size: S1
exampleAppService:
type: azure:appservice:AppService
name: example
properties:
name: ${server.hex}
location: ${example.location}
resourceGroupName: ${example.name}
appServicePlanId: ${examplePlan.id}
siteConfig:
javaVersion: '1.8'
javaContainer: JETTY
javaContainerVersion: '9.3'
exampleSlot:
type: azure:appservice:Slot
name: example
properties:
name: ${server.hex}
appServiceName: ${exampleAppService.name}
location: ${example.location}
resourceGroupName: ${example.name}
appServicePlanId: ${examplePlan.id}
siteConfig:
javaVersion: '1.8'
javaContainer: JETTY
javaContainerVersion: '9.3'
Create Slot Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Slot(name: string, args: SlotArgs, opts?: CustomResourceOptions);
@overload
def Slot(resource_name: str,
args: SlotArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Slot(resource_name: str,
opts: Optional[ResourceOptions] = None,
app_service_name: Optional[str] = None,
app_service_plan_id: Optional[str] = None,
resource_group_name: Optional[str] = None,
identity: Optional[SlotIdentityArgs] = None,
location: Optional[str] = None,
connection_strings: Optional[Sequence[SlotConnectionStringArgs]] = None,
enabled: Optional[bool] = None,
https_only: Optional[bool] = None,
auth_settings: Optional[SlotAuthSettingsArgs] = None,
key_vault_reference_identity_id: Optional[str] = None,
client_affinity_enabled: Optional[bool] = None,
logs: Optional[SlotLogsArgs] = None,
name: Optional[str] = None,
app_settings: Optional[Mapping[str, str]] = None,
site_config: Optional[SlotSiteConfigArgs] = None,
storage_accounts: Optional[Sequence[SlotStorageAccountArgs]] = None,
tags: Optional[Mapping[str, str]] = None)
func NewSlot(ctx *Context, name string, args SlotArgs, opts ...ResourceOption) (*Slot, error)
public Slot(string name, SlotArgs args, CustomResourceOptions? opts = null)
type: azure:appservice:Slot
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 SlotArgs
- 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 SlotArgs
- 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 SlotArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SlotArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SlotArgs
- 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 slotResource = new Azure.AppService.Slot("slotResource", new()
{
AppServiceName = "string",
AppServicePlanId = "string",
ResourceGroupName = "string",
Identity = new Azure.AppService.Inputs.SlotIdentityArgs
{
Type = "string",
IdentityIds = new[]
{
"string",
},
PrincipalId = "string",
TenantId = "string",
},
Location = "string",
ConnectionStrings = new[]
{
new Azure.AppService.Inputs.SlotConnectionStringArgs
{
Name = "string",
Type = "string",
Value = "string",
},
},
Enabled = false,
HttpsOnly = false,
AuthSettings = new Azure.AppService.Inputs.SlotAuthSettingsArgs
{
Enabled = false,
Google = new Azure.AppService.Inputs.SlotAuthSettingsGoogleArgs
{
ClientId = "string",
ClientSecret = "string",
OauthScopes = new[]
{
"string",
},
},
AllowedExternalRedirectUrls = new[]
{
"string",
},
DefaultProvider = "string",
AdditionalLoginParams =
{
{ "string", "string" },
},
Facebook = new Azure.AppService.Inputs.SlotAuthSettingsFacebookArgs
{
AppId = "string",
AppSecret = "string",
OauthScopes = new[]
{
"string",
},
},
ActiveDirectory = new Azure.AppService.Inputs.SlotAuthSettingsActiveDirectoryArgs
{
ClientId = "string",
AllowedAudiences = new[]
{
"string",
},
ClientSecret = "string",
},
Issuer = "string",
Microsoft = new Azure.AppService.Inputs.SlotAuthSettingsMicrosoftArgs
{
ClientId = "string",
ClientSecret = "string",
OauthScopes = new[]
{
"string",
},
},
RuntimeVersion = "string",
TokenRefreshExtensionHours = 0,
TokenStoreEnabled = false,
Twitter = new Azure.AppService.Inputs.SlotAuthSettingsTwitterArgs
{
ConsumerKey = "string",
ConsumerSecret = "string",
},
UnauthenticatedClientAction = "string",
},
KeyVaultReferenceIdentityId = "string",
ClientAffinityEnabled = false,
Logs = new Azure.AppService.Inputs.SlotLogsArgs
{
ApplicationLogs = new Azure.AppService.Inputs.SlotLogsApplicationLogsArgs
{
AzureBlobStorage = new Azure.AppService.Inputs.SlotLogsApplicationLogsAzureBlobStorageArgs
{
Level = "string",
RetentionInDays = 0,
SasUrl = "string",
},
FileSystemLevel = "string",
},
DetailedErrorMessagesEnabled = false,
FailedRequestTracingEnabled = false,
HttpLogs = new Azure.AppService.Inputs.SlotLogsHttpLogsArgs
{
AzureBlobStorage = new Azure.AppService.Inputs.SlotLogsHttpLogsAzureBlobStorageArgs
{
RetentionInDays = 0,
SasUrl = "string",
},
FileSystem = new Azure.AppService.Inputs.SlotLogsHttpLogsFileSystemArgs
{
RetentionInDays = 0,
RetentionInMb = 0,
},
},
},
Name = "string",
AppSettings =
{
{ "string", "string" },
},
SiteConfig = new Azure.AppService.Inputs.SlotSiteConfigArgs
{
AcrUseManagedIdentityCredentials = false,
AcrUserManagedIdentityClientId = "string",
AlwaysOn = false,
AppCommandLine = "string",
AutoSwapSlotName = "string",
Cors = new Azure.AppService.Inputs.SlotSiteConfigCorsArgs
{
AllowedOrigins = new[]
{
"string",
},
SupportCredentials = false,
},
DefaultDocuments = new[]
{
"string",
},
DotnetFrameworkVersion = "string",
FtpsState = "string",
HealthCheckPath = "string",
Http2Enabled = false,
IpRestrictions = new[]
{
new Azure.AppService.Inputs.SlotSiteConfigIpRestrictionArgs
{
Action = "string",
Headers = new Azure.AppService.Inputs.SlotSiteConfigIpRestrictionHeadersArgs
{
XAzureFdids = new[]
{
"string",
},
XFdHealthProbe = "string",
XForwardedFors = new[]
{
"string",
},
XForwardedHosts = new[]
{
"string",
},
},
IpAddress = "string",
Name = "string",
Priority = 0,
ServiceTag = "string",
VirtualNetworkSubnetId = "string",
},
},
JavaContainer = "string",
JavaContainerVersion = "string",
JavaVersion = "string",
LinuxFxVersion = "string",
LocalMysqlEnabled = false,
ManagedPipelineMode = "string",
MinTlsVersion = "string",
NumberOfWorkers = 0,
PhpVersion = "string",
PythonVersion = "string",
RemoteDebuggingEnabled = false,
RemoteDebuggingVersion = "string",
ScmIpRestrictions = new[]
{
new Azure.AppService.Inputs.SlotSiteConfigScmIpRestrictionArgs
{
Action = "string",
Headers = new Azure.AppService.Inputs.SlotSiteConfigScmIpRestrictionHeadersArgs
{
XAzureFdids = new[]
{
"string",
},
XFdHealthProbe = "string",
XForwardedFors = new[]
{
"string",
},
XForwardedHosts = new[]
{
"string",
},
},
IpAddress = "string",
Name = "string",
Priority = 0,
ServiceTag = "string",
VirtualNetworkSubnetId = "string",
},
},
ScmType = "string",
ScmUseMainIpRestriction = false,
Use32BitWorkerProcess = false,
VnetRouteAllEnabled = false,
WebsocketsEnabled = false,
WindowsFxVersion = "string",
},
StorageAccounts = new[]
{
new Azure.AppService.Inputs.SlotStorageAccountArgs
{
AccessKey = "string",
AccountName = "string",
Name = "string",
ShareName = "string",
Type = "string",
MountPath = "string",
},
},
Tags =
{
{ "string", "string" },
},
});
example, err := appservice.NewSlot(ctx, "slotResource", &appservice.SlotArgs{
AppServiceName: pulumi.String("string"),
AppServicePlanId: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
Identity: &appservice.SlotIdentityArgs{
Type: pulumi.String("string"),
IdentityIds: pulumi.StringArray{
pulumi.String("string"),
},
PrincipalId: pulumi.String("string"),
TenantId: pulumi.String("string"),
},
Location: pulumi.String("string"),
ConnectionStrings: appservice.SlotConnectionStringArray{
&appservice.SlotConnectionStringArgs{
Name: pulumi.String("string"),
Type: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Enabled: pulumi.Bool(false),
HttpsOnly: pulumi.Bool(false),
AuthSettings: &appservice.SlotAuthSettingsArgs{
Enabled: pulumi.Bool(false),
Google: &appservice.SlotAuthSettingsGoogleArgs{
ClientId: pulumi.String("string"),
ClientSecret: pulumi.String("string"),
OauthScopes: pulumi.StringArray{
pulumi.String("string"),
},
},
AllowedExternalRedirectUrls: pulumi.StringArray{
pulumi.String("string"),
},
DefaultProvider: pulumi.String("string"),
AdditionalLoginParams: pulumi.StringMap{
"string": pulumi.String("string"),
},
Facebook: &appservice.SlotAuthSettingsFacebookArgs{
AppId: pulumi.String("string"),
AppSecret: pulumi.String("string"),
OauthScopes: pulumi.StringArray{
pulumi.String("string"),
},
},
ActiveDirectory: &appservice.SlotAuthSettingsActiveDirectoryArgs{
ClientId: pulumi.String("string"),
AllowedAudiences: pulumi.StringArray{
pulumi.String("string"),
},
ClientSecret: pulumi.String("string"),
},
Issuer: pulumi.String("string"),
Microsoft: &appservice.SlotAuthSettingsMicrosoftArgs{
ClientId: pulumi.String("string"),
ClientSecret: pulumi.String("string"),
OauthScopes: pulumi.StringArray{
pulumi.String("string"),
},
},
RuntimeVersion: pulumi.String("string"),
TokenRefreshExtensionHours: pulumi.Float64(0),
TokenStoreEnabled: pulumi.Bool(false),
Twitter: &appservice.SlotAuthSettingsTwitterArgs{
ConsumerKey: pulumi.String("string"),
ConsumerSecret: pulumi.String("string"),
},
UnauthenticatedClientAction: pulumi.String("string"),
},
KeyVaultReferenceIdentityId: pulumi.String("string"),
ClientAffinityEnabled: pulumi.Bool(false),
Logs: &appservice.SlotLogsArgs{
ApplicationLogs: &appservice.SlotLogsApplicationLogsArgs{
AzureBlobStorage: &appservice.SlotLogsApplicationLogsAzureBlobStorageArgs{
Level: pulumi.String("string"),
RetentionInDays: pulumi.Int(0),
SasUrl: pulumi.String("string"),
},
FileSystemLevel: pulumi.String("string"),
},
DetailedErrorMessagesEnabled: pulumi.Bool(false),
FailedRequestTracingEnabled: pulumi.Bool(false),
HttpLogs: &appservice.SlotLogsHttpLogsArgs{
AzureBlobStorage: &appservice.SlotLogsHttpLogsAzureBlobStorageArgs{
RetentionInDays: pulumi.Int(0),
SasUrl: pulumi.String("string"),
},
FileSystem: &appservice.SlotLogsHttpLogsFileSystemArgs{
RetentionInDays: pulumi.Int(0),
RetentionInMb: pulumi.Int(0),
},
},
},
Name: pulumi.String("string"),
AppSettings: pulumi.StringMap{
"string": pulumi.String("string"),
},
SiteConfig: &appservice.SlotSiteConfigArgs{
AcrUseManagedIdentityCredentials: pulumi.Bool(false),
AcrUserManagedIdentityClientId: pulumi.String("string"),
AlwaysOn: pulumi.Bool(false),
AppCommandLine: pulumi.String("string"),
AutoSwapSlotName: pulumi.String("string"),
Cors: &appservice.SlotSiteConfigCorsArgs{
AllowedOrigins: pulumi.StringArray{
pulumi.String("string"),
},
SupportCredentials: pulumi.Bool(false),
},
DefaultDocuments: pulumi.StringArray{
pulumi.String("string"),
},
DotnetFrameworkVersion: pulumi.String("string"),
FtpsState: pulumi.String("string"),
HealthCheckPath: pulumi.String("string"),
Http2Enabled: pulumi.Bool(false),
IpRestrictions: appservice.SlotSiteConfigIpRestrictionArray{
&appservice.SlotSiteConfigIpRestrictionArgs{
Action: pulumi.String("string"),
Headers: &appservice.SlotSiteConfigIpRestrictionHeadersArgs{
XAzureFdids: pulumi.StringArray{
pulumi.String("string"),
},
XFdHealthProbe: pulumi.String("string"),
XForwardedFors: pulumi.StringArray{
pulumi.String("string"),
},
XForwardedHosts: pulumi.StringArray{
pulumi.String("string"),
},
},
IpAddress: pulumi.String("string"),
Name: pulumi.String("string"),
Priority: pulumi.Int(0),
ServiceTag: pulumi.String("string"),
VirtualNetworkSubnetId: pulumi.String("string"),
},
},
JavaContainer: pulumi.String("string"),
JavaContainerVersion: pulumi.String("string"),
JavaVersion: pulumi.String("string"),
LinuxFxVersion: pulumi.String("string"),
LocalMysqlEnabled: pulumi.Bool(false),
ManagedPipelineMode: pulumi.String("string"),
MinTlsVersion: pulumi.String("string"),
NumberOfWorkers: pulumi.Int(0),
PhpVersion: pulumi.String("string"),
PythonVersion: pulumi.String("string"),
RemoteDebuggingEnabled: pulumi.Bool(false),
RemoteDebuggingVersion: pulumi.String("string"),
ScmIpRestrictions: appservice.SlotSiteConfigScmIpRestrictionArray{
&appservice.SlotSiteConfigScmIpRestrictionArgs{
Action: pulumi.String("string"),
Headers: &appservice.SlotSiteConfigScmIpRestrictionHeadersArgs{
XAzureFdids: pulumi.StringArray{
pulumi.String("string"),
},
XFdHealthProbe: pulumi.String("string"),
XForwardedFors: pulumi.StringArray{
pulumi.String("string"),
},
XForwardedHosts: pulumi.StringArray{
pulumi.String("string"),
},
},
IpAddress: pulumi.String("string"),
Name: pulumi.String("string"),
Priority: pulumi.Int(0),
ServiceTag: pulumi.String("string"),
VirtualNetworkSubnetId: pulumi.String("string"),
},
},
ScmType: pulumi.String("string"),
ScmUseMainIpRestriction: pulumi.Bool(false),
Use32BitWorkerProcess: pulumi.Bool(false),
VnetRouteAllEnabled: pulumi.Bool(false),
WebsocketsEnabled: pulumi.Bool(false),
WindowsFxVersion: pulumi.String("string"),
},
StorageAccounts: appservice.SlotStorageAccountArray{
&appservice.SlotStorageAccountArgs{
AccessKey: pulumi.String("string"),
AccountName: pulumi.String("string"),
Name: pulumi.String("string"),
ShareName: pulumi.String("string"),
Type: pulumi.String("string"),
MountPath: pulumi.String("string"),
},
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var slotResource = new Slot("slotResource", SlotArgs.builder()
.appServiceName("string")
.appServicePlanId("string")
.resourceGroupName("string")
.identity(SlotIdentityArgs.builder()
.type("string")
.identityIds("string")
.principalId("string")
.tenantId("string")
.build())
.location("string")
.connectionStrings(SlotConnectionStringArgs.builder()
.name("string")
.type("string")
.value("string")
.build())
.enabled(false)
.httpsOnly(false)
.authSettings(SlotAuthSettingsArgs.builder()
.enabled(false)
.google(SlotAuthSettingsGoogleArgs.builder()
.clientId("string")
.clientSecret("string")
.oauthScopes("string")
.build())
.allowedExternalRedirectUrls("string")
.defaultProvider("string")
.additionalLoginParams(Map.of("string", "string"))
.facebook(SlotAuthSettingsFacebookArgs.builder()
.appId("string")
.appSecret("string")
.oauthScopes("string")
.build())
.activeDirectory(SlotAuthSettingsActiveDirectoryArgs.builder()
.clientId("string")
.allowedAudiences("string")
.clientSecret("string")
.build())
.issuer("string")
.microsoft(SlotAuthSettingsMicrosoftArgs.builder()
.clientId("string")
.clientSecret("string")
.oauthScopes("string")
.build())
.runtimeVersion("string")
.tokenRefreshExtensionHours(0)
.tokenStoreEnabled(false)
.twitter(SlotAuthSettingsTwitterArgs.builder()
.consumerKey("string")
.consumerSecret("string")
.build())
.unauthenticatedClientAction("string")
.build())
.keyVaultReferenceIdentityId("string")
.clientAffinityEnabled(false)
.logs(SlotLogsArgs.builder()
.applicationLogs(SlotLogsApplicationLogsArgs.builder()
.azureBlobStorage(SlotLogsApplicationLogsAzureBlobStorageArgs.builder()
.level("string")
.retentionInDays(0)
.sasUrl("string")
.build())
.fileSystemLevel("string")
.build())
.detailedErrorMessagesEnabled(false)
.failedRequestTracingEnabled(false)
.httpLogs(SlotLogsHttpLogsArgs.builder()
.azureBlobStorage(SlotLogsHttpLogsAzureBlobStorageArgs.builder()
.retentionInDays(0)
.sasUrl("string")
.build())
.fileSystem(SlotLogsHttpLogsFileSystemArgs.builder()
.retentionInDays(0)
.retentionInMb(0)
.build())
.build())
.build())
.name("string")
.appSettings(Map.of("string", "string"))
.siteConfig(SlotSiteConfigArgs.builder()
.acrUseManagedIdentityCredentials(false)
.acrUserManagedIdentityClientId("string")
.alwaysOn(false)
.appCommandLine("string")
.autoSwapSlotName("string")
.cors(SlotSiteConfigCorsArgs.builder()
.allowedOrigins("string")
.supportCredentials(false)
.build())
.defaultDocuments("string")
.dotnetFrameworkVersion("string")
.ftpsState("string")
.healthCheckPath("string")
.http2Enabled(false)
.ipRestrictions(SlotSiteConfigIpRestrictionArgs.builder()
.action("string")
.headers(SlotSiteConfigIpRestrictionHeadersArgs.builder()
.xAzureFdids("string")
.xFdHealthProbe("string")
.xForwardedFors("string")
.xForwardedHosts("string")
.build())
.ipAddress("string")
.name("string")
.priority(0)
.serviceTag("string")
.virtualNetworkSubnetId("string")
.build())
.javaContainer("string")
.javaContainerVersion("string")
.javaVersion("string")
.linuxFxVersion("string")
.localMysqlEnabled(false)
.managedPipelineMode("string")
.minTlsVersion("string")
.numberOfWorkers(0)
.phpVersion("string")
.pythonVersion("string")
.remoteDebuggingEnabled(false)
.remoteDebuggingVersion("string")
.scmIpRestrictions(SlotSiteConfigScmIpRestrictionArgs.builder()
.action("string")
.headers(SlotSiteConfigScmIpRestrictionHeadersArgs.builder()
.xAzureFdids("string")
.xFdHealthProbe("string")
.xForwardedFors("string")
.xForwardedHosts("string")
.build())
.ipAddress("string")
.name("string")
.priority(0)
.serviceTag("string")
.virtualNetworkSubnetId("string")
.build())
.scmType("string")
.scmUseMainIpRestriction(false)
.use32BitWorkerProcess(false)
.vnetRouteAllEnabled(false)
.websocketsEnabled(false)
.windowsFxVersion("string")
.build())
.storageAccounts(SlotStorageAccountArgs.builder()
.accessKey("string")
.accountName("string")
.name("string")
.shareName("string")
.type("string")
.mountPath("string")
.build())
.tags(Map.of("string", "string"))
.build());
slot_resource = azure.appservice.Slot("slotResource",
app_service_name="string",
app_service_plan_id="string",
resource_group_name="string",
identity={
"type": "string",
"identityIds": ["string"],
"principalId": "string",
"tenantId": "string",
},
location="string",
connection_strings=[{
"name": "string",
"type": "string",
"value": "string",
}],
enabled=False,
https_only=False,
auth_settings={
"enabled": False,
"google": {
"clientId": "string",
"clientSecret": "string",
"oauthScopes": ["string"],
},
"allowedExternalRedirectUrls": ["string"],
"defaultProvider": "string",
"additionalLoginParams": {
"string": "string",
},
"facebook": {
"appId": "string",
"appSecret": "string",
"oauthScopes": ["string"],
},
"activeDirectory": {
"clientId": "string",
"allowedAudiences": ["string"],
"clientSecret": "string",
},
"issuer": "string",
"microsoft": {
"clientId": "string",
"clientSecret": "string",
"oauthScopes": ["string"],
},
"runtimeVersion": "string",
"tokenRefreshExtensionHours": 0,
"tokenStoreEnabled": False,
"twitter": {
"consumerKey": "string",
"consumerSecret": "string",
},
"unauthenticatedClientAction": "string",
},
key_vault_reference_identity_id="string",
client_affinity_enabled=False,
logs={
"applicationLogs": {
"azureBlobStorage": {
"level": "string",
"retentionInDays": 0,
"sasUrl": "string",
},
"fileSystemLevel": "string",
},
"detailedErrorMessagesEnabled": False,
"failedRequestTracingEnabled": False,
"httpLogs": {
"azureBlobStorage": {
"retentionInDays": 0,
"sasUrl": "string",
},
"fileSystem": {
"retentionInDays": 0,
"retentionInMb": 0,
},
},
},
name="string",
app_settings={
"string": "string",
},
site_config={
"acrUseManagedIdentityCredentials": False,
"acrUserManagedIdentityClientId": "string",
"alwaysOn": False,
"appCommandLine": "string",
"autoSwapSlotName": "string",
"cors": {
"allowedOrigins": ["string"],
"supportCredentials": False,
},
"defaultDocuments": ["string"],
"dotnetFrameworkVersion": "string",
"ftpsState": "string",
"healthCheckPath": "string",
"http2Enabled": False,
"ipRestrictions": [{
"action": "string",
"headers": {
"xAzureFdids": ["string"],
"xFdHealthProbe": "string",
"xForwardedFors": ["string"],
"xForwardedHosts": ["string"],
},
"ipAddress": "string",
"name": "string",
"priority": 0,
"serviceTag": "string",
"virtualNetworkSubnetId": "string",
}],
"javaContainer": "string",
"javaContainerVersion": "string",
"javaVersion": "string",
"linuxFxVersion": "string",
"localMysqlEnabled": False,
"managedPipelineMode": "string",
"minTlsVersion": "string",
"numberOfWorkers": 0,
"phpVersion": "string",
"pythonVersion": "string",
"remoteDebuggingEnabled": False,
"remoteDebuggingVersion": "string",
"scmIpRestrictions": [{
"action": "string",
"headers": {
"xAzureFdids": ["string"],
"xFdHealthProbe": "string",
"xForwardedFors": ["string"],
"xForwardedHosts": ["string"],
},
"ipAddress": "string",
"name": "string",
"priority": 0,
"serviceTag": "string",
"virtualNetworkSubnetId": "string",
}],
"scmType": "string",
"scmUseMainIpRestriction": False,
"use32BitWorkerProcess": False,
"vnetRouteAllEnabled": False,
"websocketsEnabled": False,
"windowsFxVersion": "string",
},
storage_accounts=[{
"accessKey": "string",
"accountName": "string",
"name": "string",
"shareName": "string",
"type": "string",
"mountPath": "string",
}],
tags={
"string": "string",
})
const slotResource = new azure.appservice.Slot("slotResource", {
appServiceName: "string",
appServicePlanId: "string",
resourceGroupName: "string",
identity: {
type: "string",
identityIds: ["string"],
principalId: "string",
tenantId: "string",
},
location: "string",
connectionStrings: [{
name: "string",
type: "string",
value: "string",
}],
enabled: false,
httpsOnly: false,
authSettings: {
enabled: false,
google: {
clientId: "string",
clientSecret: "string",
oauthScopes: ["string"],
},
allowedExternalRedirectUrls: ["string"],
defaultProvider: "string",
additionalLoginParams: {
string: "string",
},
facebook: {
appId: "string",
appSecret: "string",
oauthScopes: ["string"],
},
activeDirectory: {
clientId: "string",
allowedAudiences: ["string"],
clientSecret: "string",
},
issuer: "string",
microsoft: {
clientId: "string",
clientSecret: "string",
oauthScopes: ["string"],
},
runtimeVersion: "string",
tokenRefreshExtensionHours: 0,
tokenStoreEnabled: false,
twitter: {
consumerKey: "string",
consumerSecret: "string",
},
unauthenticatedClientAction: "string",
},
keyVaultReferenceIdentityId: "string",
clientAffinityEnabled: false,
logs: {
applicationLogs: {
azureBlobStorage: {
level: "string",
retentionInDays: 0,
sasUrl: "string",
},
fileSystemLevel: "string",
},
detailedErrorMessagesEnabled: false,
failedRequestTracingEnabled: false,
httpLogs: {
azureBlobStorage: {
retentionInDays: 0,
sasUrl: "string",
},
fileSystem: {
retentionInDays: 0,
retentionInMb: 0,
},
},
},
name: "string",
appSettings: {
string: "string",
},
siteConfig: {
acrUseManagedIdentityCredentials: false,
acrUserManagedIdentityClientId: "string",
alwaysOn: false,
appCommandLine: "string",
autoSwapSlotName: "string",
cors: {
allowedOrigins: ["string"],
supportCredentials: false,
},
defaultDocuments: ["string"],
dotnetFrameworkVersion: "string",
ftpsState: "string",
healthCheckPath: "string",
http2Enabled: false,
ipRestrictions: [{
action: "string",
headers: {
xAzureFdids: ["string"],
xFdHealthProbe: "string",
xForwardedFors: ["string"],
xForwardedHosts: ["string"],
},
ipAddress: "string",
name: "string",
priority: 0,
serviceTag: "string",
virtualNetworkSubnetId: "string",
}],
javaContainer: "string",
javaContainerVersion: "string",
javaVersion: "string",
linuxFxVersion: "string",
localMysqlEnabled: false,
managedPipelineMode: "string",
minTlsVersion: "string",
numberOfWorkers: 0,
phpVersion: "string",
pythonVersion: "string",
remoteDebuggingEnabled: false,
remoteDebuggingVersion: "string",
scmIpRestrictions: [{
action: "string",
headers: {
xAzureFdids: ["string"],
xFdHealthProbe: "string",
xForwardedFors: ["string"],
xForwardedHosts: ["string"],
},
ipAddress: "string",
name: "string",
priority: 0,
serviceTag: "string",
virtualNetworkSubnetId: "string",
}],
scmType: "string",
scmUseMainIpRestriction: false,
use32BitWorkerProcess: false,
vnetRouteAllEnabled: false,
websocketsEnabled: false,
windowsFxVersion: "string",
},
storageAccounts: [{
accessKey: "string",
accountName: "string",
name: "string",
shareName: "string",
type: "string",
mountPath: "string",
}],
tags: {
string: "string",
},
});
type: azure:appservice:Slot
properties:
appServiceName: string
appServicePlanId: string
appSettings:
string: string
authSettings:
activeDirectory:
allowedAudiences:
- string
clientId: string
clientSecret: string
additionalLoginParams:
string: string
allowedExternalRedirectUrls:
- string
defaultProvider: string
enabled: false
facebook:
appId: string
appSecret: string
oauthScopes:
- string
google:
clientId: string
clientSecret: string
oauthScopes:
- string
issuer: string
microsoft:
clientId: string
clientSecret: string
oauthScopes:
- string
runtimeVersion: string
tokenRefreshExtensionHours: 0
tokenStoreEnabled: false
twitter:
consumerKey: string
consumerSecret: string
unauthenticatedClientAction: string
clientAffinityEnabled: false
connectionStrings:
- name: string
type: string
value: string
enabled: false
httpsOnly: false
identity:
identityIds:
- string
principalId: string
tenantId: string
type: string
keyVaultReferenceIdentityId: string
location: string
logs:
applicationLogs:
azureBlobStorage:
level: string
retentionInDays: 0
sasUrl: string
fileSystemLevel: string
detailedErrorMessagesEnabled: false
failedRequestTracingEnabled: false
httpLogs:
azureBlobStorage:
retentionInDays: 0
sasUrl: string
fileSystem:
retentionInDays: 0
retentionInMb: 0
name: string
resourceGroupName: string
siteConfig:
acrUseManagedIdentityCredentials: false
acrUserManagedIdentityClientId: string
alwaysOn: false
appCommandLine: string
autoSwapSlotName: string
cors:
allowedOrigins:
- string
supportCredentials: false
defaultDocuments:
- string
dotnetFrameworkVersion: string
ftpsState: string
healthCheckPath: string
http2Enabled: false
ipRestrictions:
- action: string
headers:
xAzureFdids:
- string
xFdHealthProbe: string
xForwardedFors:
- string
xForwardedHosts:
- string
ipAddress: string
name: string
priority: 0
serviceTag: string
virtualNetworkSubnetId: string
javaContainer: string
javaContainerVersion: string
javaVersion: string
linuxFxVersion: string
localMysqlEnabled: false
managedPipelineMode: string
minTlsVersion: string
numberOfWorkers: 0
phpVersion: string
pythonVersion: string
remoteDebuggingEnabled: false
remoteDebuggingVersion: string
scmIpRestrictions:
- action: string
headers:
xAzureFdids:
- string
xFdHealthProbe: string
xForwardedFors:
- string
xForwardedHosts:
- string
ipAddress: string
name: string
priority: 0
serviceTag: string
virtualNetworkSubnetId: string
scmType: string
scmUseMainIpRestriction: false
use32BitWorkerProcess: false
vnetRouteAllEnabled: false
websocketsEnabled: false
windowsFxVersion: string
storageAccounts:
- accessKey: string
accountName: string
mountPath: string
name: string
shareName: string
type: string
tags:
string: string
Slot 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 Slot resource accepts the following input properties:
- App
Service stringName - The name of the App Service within which to create the App Service Slot. Changing this forces a new resource to be created.
- App
Service stringPlan Id - The ID of the App Service Plan within which to create this App Service Slot. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the resource group in which to create the App Service Slot component. Changing this forces a new resource to be created.
- App
Settings Dictionary<string, string> - A key-value pair of App Settings.
- Auth
Settings SlotAuth Settings - A
auth_settings
block as defined below. - Client
Affinity boolEnabled - Should the App Service Slot send session affinity cookies, which route client requests in the same session to the same instance?
- Connection
Strings List<SlotConnection String> - An
connection_string
block as defined below. - Enabled bool
- Is the App Service Slot Enabled? Defaults to
true
. - Https
Only bool - Can the App Service Slot only be accessed via HTTPS? Defaults to
false
. - Identity
Slot
Identity - An
identity
block as defined below. - Key
Vault stringReference Identity Id - The User Assigned Identity Id used for looking up KeyVault secrets. The identity must be assigned to the application. See Access vaults with a user-assigned identity for more information.
- Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Logs
Slot
Logs - A
logs
block as defined below. - Name string
- Specifies the name of the App Service Slot component. Changing this forces a new resource to be created.
- Site
Config SlotSite Config - A
site_config
object as defined below. - Storage
Accounts List<SlotStorage Account> - One or more
storage_account
blocks as defined below. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- App
Service stringName - The name of the App Service within which to create the App Service Slot. Changing this forces a new resource to be created.
- App
Service stringPlan Id - The ID of the App Service Plan within which to create this App Service Slot. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the resource group in which to create the App Service Slot component. Changing this forces a new resource to be created.
- App
Settings map[string]string - A key-value pair of App Settings.
- Auth
Settings SlotAuth Settings Args - A
auth_settings
block as defined below. - Client
Affinity boolEnabled - Should the App Service Slot send session affinity cookies, which route client requests in the same session to the same instance?
- Connection
Strings []SlotConnection String Args - An
connection_string
block as defined below. - Enabled bool
- Is the App Service Slot Enabled? Defaults to
true
. - Https
Only bool - Can the App Service Slot only be accessed via HTTPS? Defaults to
false
. - Identity
Slot
Identity Args - An
identity
block as defined below. - Key
Vault stringReference Identity Id - The User Assigned Identity Id used for looking up KeyVault secrets. The identity must be assigned to the application. See Access vaults with a user-assigned identity for more information.
- Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Logs
Slot
Logs Args - A
logs
block as defined below. - Name string
- Specifies the name of the App Service Slot component. Changing this forces a new resource to be created.
- Site
Config SlotSite Config Args - A
site_config
object as defined below. - Storage
Accounts []SlotStorage Account Args - One or more
storage_account
blocks as defined below. - map[string]string
- A mapping of tags to assign to the resource.
- app
Service StringName - The name of the App Service within which to create the App Service Slot. Changing this forces a new resource to be created.
- app
Service StringPlan Id - The ID of the App Service Plan within which to create this App Service Slot. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the resource group in which to create the App Service Slot component. Changing this forces a new resource to be created.
- app
Settings Map<String,String> - A key-value pair of App Settings.
- auth
Settings SlotAuth Settings - A
auth_settings
block as defined below. - client
Affinity BooleanEnabled - Should the App Service Slot send session affinity cookies, which route client requests in the same session to the same instance?
- connection
Strings List<SlotConnection String> - An
connection_string
block as defined below. - enabled Boolean
- Is the App Service Slot Enabled? Defaults to
true
. - https
Only Boolean - Can the App Service Slot only be accessed via HTTPS? Defaults to
false
. - identity
Slot
Identity - An
identity
block as defined below. - key
Vault StringReference Identity Id - The User Assigned Identity Id used for looking up KeyVault secrets. The identity must be assigned to the application. See Access vaults with a user-assigned identity for more information.
- location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- logs
Slot
Logs - A
logs
block as defined below. - name String
- Specifies the name of the App Service Slot component. Changing this forces a new resource to be created.
- site
Config SlotSite Config - A
site_config
object as defined below. - storage
Accounts List<SlotStorage Account> - One or more
storage_account
blocks as defined below. - Map<String,String>
- A mapping of tags to assign to the resource.
- app
Service stringName - The name of the App Service within which to create the App Service Slot. Changing this forces a new resource to be created.
- app
Service stringPlan Id - The ID of the App Service Plan within which to create this App Service Slot. Changing this forces a new resource to be created.
- resource
Group stringName - The name of the resource group in which to create the App Service Slot component. Changing this forces a new resource to be created.
- app
Settings {[key: string]: string} - A key-value pair of App Settings.
- auth
Settings SlotAuth Settings - A
auth_settings
block as defined below. - client
Affinity booleanEnabled - Should the App Service Slot send session affinity cookies, which route client requests in the same session to the same instance?
- connection
Strings SlotConnection String[] - An
connection_string
block as defined below. - enabled boolean
- Is the App Service Slot Enabled? Defaults to
true
. - https
Only boolean - Can the App Service Slot only be accessed via HTTPS? Defaults to
false
. - identity
Slot
Identity - An
identity
block as defined below. - key
Vault stringReference Identity Id - The User Assigned Identity Id used for looking up KeyVault secrets. The identity must be assigned to the application. See Access vaults with a user-assigned identity for more information.
- location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- logs
Slot
Logs - A
logs
block as defined below. - name string
- Specifies the name of the App Service Slot component. Changing this forces a new resource to be created.
- site
Config SlotSite Config - A
site_config
object as defined below. - storage
Accounts SlotStorage Account[] - One or more
storage_account
blocks as defined below. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- app_
service_ strname - The name of the App Service within which to create the App Service Slot. Changing this forces a new resource to be created.
- app_
service_ strplan_ id - The ID of the App Service Plan within which to create this App Service Slot. Changing this forces a new resource to be created.
- resource_
group_ strname - The name of the resource group in which to create the App Service Slot component. Changing this forces a new resource to be created.
- app_
settings Mapping[str, str] - A key-value pair of App Settings.
- auth_
settings SlotAuth Settings Args - A
auth_settings
block as defined below. - client_
affinity_ boolenabled - Should the App Service Slot send session affinity cookies, which route client requests in the same session to the same instance?
- connection_
strings Sequence[SlotConnection String Args] - An
connection_string
block as defined below. - enabled bool
- Is the App Service Slot Enabled? Defaults to
true
. - https_
only bool - Can the App Service Slot only be accessed via HTTPS? Defaults to
false
. - identity
Slot
Identity Args - An
identity
block as defined below. - key_
vault_ strreference_ identity_ id - The User Assigned Identity Id used for looking up KeyVault secrets. The identity must be assigned to the application. See Access vaults with a user-assigned identity for more information.
- location str
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- logs
Slot
Logs Args - A
logs
block as defined below. - name str
- Specifies the name of the App Service Slot component. Changing this forces a new resource to be created.
- site_
config SlotSite Config Args - A
site_config
object as defined below. - storage_
accounts Sequence[SlotStorage Account Args] - One or more
storage_account
blocks as defined below. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- app
Service StringName - The name of the App Service within which to create the App Service Slot. Changing this forces a new resource to be created.
- app
Service StringPlan Id - The ID of the App Service Plan within which to create this App Service Slot. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the resource group in which to create the App Service Slot component. Changing this forces a new resource to be created.
- app
Settings Map<String> - A key-value pair of App Settings.
- auth
Settings Property Map - A
auth_settings
block as defined below. - client
Affinity BooleanEnabled - Should the App Service Slot send session affinity cookies, which route client requests in the same session to the same instance?
- connection
Strings List<Property Map> - An
connection_string
block as defined below. - enabled Boolean
- Is the App Service Slot Enabled? Defaults to
true
. - https
Only Boolean - Can the App Service Slot only be accessed via HTTPS? Defaults to
false
. - identity Property Map
- An
identity
block as defined below. - key
Vault StringReference Identity Id - The User Assigned Identity Id used for looking up KeyVault secrets. The identity must be assigned to the application. See Access vaults with a user-assigned identity for more information.
- location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- logs Property Map
- A
logs
block as defined below. - name String
- Specifies the name of the App Service Slot component. Changing this forces a new resource to be created.
- site
Config Property Map - A
site_config
object as defined below. - storage
Accounts List<Property Map> - One or more
storage_account
blocks as defined below. - Map<String>
- A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Slot resource produces the following output properties:
- Default
Site stringHostname - The Default Hostname associated with the App Service Slot - such as
mysite.azurewebsites.net
- Id string
- The provider-assigned unique ID for this managed resource.
- Site
Credentials List<SlotSite Credential> - A
site_credential
block as defined below, which contains the site-level credentials used to publish to this App Service slot.
- Default
Site stringHostname - The Default Hostname associated with the App Service Slot - such as
mysite.azurewebsites.net
- Id string
- The provider-assigned unique ID for this managed resource.
- Site
Credentials []SlotSite Credential - A
site_credential
block as defined below, which contains the site-level credentials used to publish to this App Service slot.
- default
Site StringHostname - The Default Hostname associated with the App Service Slot - such as
mysite.azurewebsites.net
- id String
- The provider-assigned unique ID for this managed resource.
- site
Credentials List<SlotSite Credential> - A
site_credential
block as defined below, which contains the site-level credentials used to publish to this App Service slot.
- default
Site stringHostname - The Default Hostname associated with the App Service Slot - such as
mysite.azurewebsites.net
- id string
- The provider-assigned unique ID for this managed resource.
- site
Credentials SlotSite Credential[] - A
site_credential
block as defined below, which contains the site-level credentials used to publish to this App Service slot.
- default_
site_ strhostname - The Default Hostname associated with the App Service Slot - such as
mysite.azurewebsites.net
- id str
- The provider-assigned unique ID for this managed resource.
- site_
credentials Sequence[SlotSite Credential] - A
site_credential
block as defined below, which contains the site-level credentials used to publish to this App Service slot.
- default
Site StringHostname - The Default Hostname associated with the App Service Slot - such as
mysite.azurewebsites.net
- id String
- The provider-assigned unique ID for this managed resource.
- site
Credentials List<Property Map> - A
site_credential
block as defined below, which contains the site-level credentials used to publish to this App Service slot.
Look up Existing Slot Resource
Get an existing Slot resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SlotState, opts?: CustomResourceOptions): Slot
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
app_service_name: Optional[str] = None,
app_service_plan_id: Optional[str] = None,
app_settings: Optional[Mapping[str, str]] = None,
auth_settings: Optional[SlotAuthSettingsArgs] = None,
client_affinity_enabled: Optional[bool] = None,
connection_strings: Optional[Sequence[SlotConnectionStringArgs]] = None,
default_site_hostname: Optional[str] = None,
enabled: Optional[bool] = None,
https_only: Optional[bool] = None,
identity: Optional[SlotIdentityArgs] = None,
key_vault_reference_identity_id: Optional[str] = None,
location: Optional[str] = None,
logs: Optional[SlotLogsArgs] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
site_config: Optional[SlotSiteConfigArgs] = None,
site_credentials: Optional[Sequence[SlotSiteCredentialArgs]] = None,
storage_accounts: Optional[Sequence[SlotStorageAccountArgs]] = None,
tags: Optional[Mapping[str, str]] = None) -> Slot
func GetSlot(ctx *Context, name string, id IDInput, state *SlotState, opts ...ResourceOption) (*Slot, error)
public static Slot Get(string name, Input<string> id, SlotState? state, CustomResourceOptions? opts = null)
public static Slot get(String name, Output<String> id, SlotState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- App
Service stringName - The name of the App Service within which to create the App Service Slot. Changing this forces a new resource to be created.
- App
Service stringPlan Id - The ID of the App Service Plan within which to create this App Service Slot. Changing this forces a new resource to be created.
- App
Settings Dictionary<string, string> - A key-value pair of App Settings.
- Auth
Settings SlotAuth Settings - A
auth_settings
block as defined below. - Client
Affinity boolEnabled - Should the App Service Slot send session affinity cookies, which route client requests in the same session to the same instance?
- Connection
Strings List<SlotConnection String> - An
connection_string
block as defined below. - Default
Site stringHostname - The Default Hostname associated with the App Service Slot - such as
mysite.azurewebsites.net
- Enabled bool
- Is the App Service Slot Enabled? Defaults to
true
. - Https
Only bool - Can the App Service Slot only be accessed via HTTPS? Defaults to
false
. - Identity
Slot
Identity - An
identity
block as defined below. - Key
Vault stringReference Identity Id - The User Assigned Identity Id used for looking up KeyVault secrets. The identity must be assigned to the application. See Access vaults with a user-assigned identity for more information.
- Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Logs
Slot
Logs - A
logs
block as defined below. - Name string
- Specifies the name of the App Service Slot component. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the resource group in which to create the App Service Slot component. Changing this forces a new resource to be created.
- Site
Config SlotSite Config - A
site_config
object as defined below. - Site
Credentials List<SlotSite Credential> - A
site_credential
block as defined below, which contains the site-level credentials used to publish to this App Service slot. - Storage
Accounts List<SlotStorage Account> - One or more
storage_account
blocks as defined below. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- App
Service stringName - The name of the App Service within which to create the App Service Slot. Changing this forces a new resource to be created.
- App
Service stringPlan Id - The ID of the App Service Plan within which to create this App Service Slot. Changing this forces a new resource to be created.
- App
Settings map[string]string - A key-value pair of App Settings.
- Auth
Settings SlotAuth Settings Args - A
auth_settings
block as defined below. - Client
Affinity boolEnabled - Should the App Service Slot send session affinity cookies, which route client requests in the same session to the same instance?
- Connection
Strings []SlotConnection String Args - An
connection_string
block as defined below. - Default
Site stringHostname - The Default Hostname associated with the App Service Slot - such as
mysite.azurewebsites.net
- Enabled bool
- Is the App Service Slot Enabled? Defaults to
true
. - Https
Only bool - Can the App Service Slot only be accessed via HTTPS? Defaults to
false
. - Identity
Slot
Identity Args - An
identity
block as defined below. - Key
Vault stringReference Identity Id - The User Assigned Identity Id used for looking up KeyVault secrets. The identity must be assigned to the application. See Access vaults with a user-assigned identity for more information.
- Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Logs
Slot
Logs Args - A
logs
block as defined below. - Name string
- Specifies the name of the App Service Slot component. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the resource group in which to create the App Service Slot component. Changing this forces a new resource to be created.
- Site
Config SlotSite Config Args - A
site_config
object as defined below. - Site
Credentials []SlotSite Credential Args - A
site_credential
block as defined below, which contains the site-level credentials used to publish to this App Service slot. - Storage
Accounts []SlotStorage Account Args - One or more
storage_account
blocks as defined below. - map[string]string
- A mapping of tags to assign to the resource.
- app
Service StringName - The name of the App Service within which to create the App Service Slot. Changing this forces a new resource to be created.
- app
Service StringPlan Id - The ID of the App Service Plan within which to create this App Service Slot. Changing this forces a new resource to be created.
- app
Settings Map<String,String> - A key-value pair of App Settings.
- auth
Settings SlotAuth Settings - A
auth_settings
block as defined below. - client
Affinity BooleanEnabled - Should the App Service Slot send session affinity cookies, which route client requests in the same session to the same instance?
- connection
Strings List<SlotConnection String> - An
connection_string
block as defined below. - default
Site StringHostname - The Default Hostname associated with the App Service Slot - such as
mysite.azurewebsites.net
- enabled Boolean
- Is the App Service Slot Enabled? Defaults to
true
. - https
Only Boolean - Can the App Service Slot only be accessed via HTTPS? Defaults to
false
. - identity
Slot
Identity - An
identity
block as defined below. - key
Vault StringReference Identity Id - The User Assigned Identity Id used for looking up KeyVault secrets. The identity must be assigned to the application. See Access vaults with a user-assigned identity for more information.
- location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- logs
Slot
Logs - A
logs
block as defined below. - name String
- Specifies the name of the App Service Slot component. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the resource group in which to create the App Service Slot component. Changing this forces a new resource to be created.
- site
Config SlotSite Config - A
site_config
object as defined below. - site
Credentials List<SlotSite Credential> - A
site_credential
block as defined below, which contains the site-level credentials used to publish to this App Service slot. - storage
Accounts List<SlotStorage Account> - One or more
storage_account
blocks as defined below. - Map<String,String>
- A mapping of tags to assign to the resource.
- app
Service stringName - The name of the App Service within which to create the App Service Slot. Changing this forces a new resource to be created.
- app
Service stringPlan Id - The ID of the App Service Plan within which to create this App Service Slot. Changing this forces a new resource to be created.
- app
Settings {[key: string]: string} - A key-value pair of App Settings.
- auth
Settings SlotAuth Settings - A
auth_settings
block as defined below. - client
Affinity booleanEnabled - Should the App Service Slot send session affinity cookies, which route client requests in the same session to the same instance?
- connection
Strings SlotConnection String[] - An
connection_string
block as defined below. - default
Site stringHostname - The Default Hostname associated with the App Service Slot - such as
mysite.azurewebsites.net
- enabled boolean
- Is the App Service Slot Enabled? Defaults to
true
. - https
Only boolean - Can the App Service Slot only be accessed via HTTPS? Defaults to
false
. - identity
Slot
Identity - An
identity
block as defined below. - key
Vault stringReference Identity Id - The User Assigned Identity Id used for looking up KeyVault secrets. The identity must be assigned to the application. See Access vaults with a user-assigned identity for more information.
- location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- logs
Slot
Logs - A
logs
block as defined below. - name string
- Specifies the name of the App Service Slot component. Changing this forces a new resource to be created.
- resource
Group stringName - The name of the resource group in which to create the App Service Slot component. Changing this forces a new resource to be created.
- site
Config SlotSite Config - A
site_config
object as defined below. - site
Credentials SlotSite Credential[] - A
site_credential
block as defined below, which contains the site-level credentials used to publish to this App Service slot. - storage
Accounts SlotStorage Account[] - One or more
storage_account
blocks as defined below. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- app_
service_ strname - The name of the App Service within which to create the App Service Slot. Changing this forces a new resource to be created.
- app_
service_ strplan_ id - The ID of the App Service Plan within which to create this App Service Slot. Changing this forces a new resource to be created.
- app_
settings Mapping[str, str] - A key-value pair of App Settings.
- auth_
settings SlotAuth Settings Args - A
auth_settings
block as defined below. - client_
affinity_ boolenabled - Should the App Service Slot send session affinity cookies, which route client requests in the same session to the same instance?
- connection_
strings Sequence[SlotConnection String Args] - An
connection_string
block as defined below. - default_
site_ strhostname - The Default Hostname associated with the App Service Slot - such as
mysite.azurewebsites.net
- enabled bool
- Is the App Service Slot Enabled? Defaults to
true
. - https_
only bool - Can the App Service Slot only be accessed via HTTPS? Defaults to
false
. - identity
Slot
Identity Args - An
identity
block as defined below. - key_
vault_ strreference_ identity_ id - The User Assigned Identity Id used for looking up KeyVault secrets. The identity must be assigned to the application. See Access vaults with a user-assigned identity for more information.
- location str
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- logs
Slot
Logs Args - A
logs
block as defined below. - name str
- Specifies the name of the App Service Slot component. Changing this forces a new resource to be created.
- resource_
group_ strname - The name of the resource group in which to create the App Service Slot component. Changing this forces a new resource to be created.
- site_
config SlotSite Config Args - A
site_config
object as defined below. - site_
credentials Sequence[SlotSite Credential Args] - A
site_credential
block as defined below, which contains the site-level credentials used to publish to this App Service slot. - storage_
accounts Sequence[SlotStorage Account Args] - One or more
storage_account
blocks as defined below. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- app
Service StringName - The name of the App Service within which to create the App Service Slot. Changing this forces a new resource to be created.
- app
Service StringPlan Id - The ID of the App Service Plan within which to create this App Service Slot. Changing this forces a new resource to be created.
- app
Settings Map<String> - A key-value pair of App Settings.
- auth
Settings Property Map - A
auth_settings
block as defined below. - client
Affinity BooleanEnabled - Should the App Service Slot send session affinity cookies, which route client requests in the same session to the same instance?
- connection
Strings List<Property Map> - An
connection_string
block as defined below. - default
Site StringHostname - The Default Hostname associated with the App Service Slot - such as
mysite.azurewebsites.net
- enabled Boolean
- Is the App Service Slot Enabled? Defaults to
true
. - https
Only Boolean - Can the App Service Slot only be accessed via HTTPS? Defaults to
false
. - identity Property Map
- An
identity
block as defined below. - key
Vault StringReference Identity Id - The User Assigned Identity Id used for looking up KeyVault secrets. The identity must be assigned to the application. See Access vaults with a user-assigned identity for more information.
- location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- logs Property Map
- A
logs
block as defined below. - name String
- Specifies the name of the App Service Slot component. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the resource group in which to create the App Service Slot component. Changing this forces a new resource to be created.
- site
Config Property Map - A
site_config
object as defined below. - site
Credentials List<Property Map> - A
site_credential
block as defined below, which contains the site-level credentials used to publish to this App Service slot. - storage
Accounts List<Property Map> - One or more
storage_account
blocks as defined below. - Map<String>
- A mapping of tags to assign to the resource.
Supporting Types
SlotAuthSettings, SlotAuthSettingsArgs
- Enabled bool
- Is Authentication enabled?
- Active
Directory SlotAuth Settings Active Directory - A
active_directory
block as defined below. - Additional
Login Dictionary<string, string>Params - Login parameters to send to the OpenID Connect authorization endpoint when a user logs in. Each parameter must be in the form "key=value".
- Allowed
External List<string>Redirect Urls - External URLs that can be redirected to as part of logging in or logging out of the app.
- Default
Provider string The default provider to use when multiple providers have been set up. Possible values are
AzureActiveDirectory
,Facebook
,Google
,MicrosoftAccount
andTwitter
.NOTE: When using multiple providers, the default provider must be set for settings like
unauthenticated_client_action
to work.- Facebook
Slot
Auth Settings Facebook - A
facebook
block as defined below. - Google
Slot
Auth Settings Google - A
google
block as defined below. - Issuer string
- Issuer URI. When using Azure Active Directory, this value is the URI of the directory tenant, e.g. https://sts.windows.net/{tenant-guid}/.
- Microsoft
Slot
Auth Settings Microsoft - A
microsoft
block as defined below. - Runtime
Version string - The runtime version of the Authentication/Authorization module.
- Token
Refresh doubleExtension Hours - The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to
72
. - Token
Store boolEnabled - If enabled the module will durably store platform-specific security tokens that are obtained during login flows. Defaults to
false
. - Twitter
Slot
Auth Settings Twitter - A
twitter
block as defined below. - Unauthenticated
Client stringAction - The action to take when an unauthenticated client attempts to access the app. Possible values are
AllowAnonymous
andRedirectToLoginPage
.
- Enabled bool
- Is Authentication enabled?
- Active
Directory SlotAuth Settings Active Directory - A
active_directory
block as defined below. - Additional
Login map[string]stringParams - Login parameters to send to the OpenID Connect authorization endpoint when a user logs in. Each parameter must be in the form "key=value".
- Allowed
External []stringRedirect Urls - External URLs that can be redirected to as part of logging in or logging out of the app.
- Default
Provider string The default provider to use when multiple providers have been set up. Possible values are
AzureActiveDirectory
,Facebook
,Google
,MicrosoftAccount
andTwitter
.NOTE: When using multiple providers, the default provider must be set for settings like
unauthenticated_client_action
to work.- Facebook
Slot
Auth Settings Facebook - A
facebook
block as defined below. - Google
Slot
Auth Settings Google - A
google
block as defined below. - Issuer string
- Issuer URI. When using Azure Active Directory, this value is the URI of the directory tenant, e.g. https://sts.windows.net/{tenant-guid}/.
- Microsoft
Slot
Auth Settings Microsoft - A
microsoft
block as defined below. - Runtime
Version string - The runtime version of the Authentication/Authorization module.
- Token
Refresh float64Extension Hours - The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to
72
. - Token
Store boolEnabled - If enabled the module will durably store platform-specific security tokens that are obtained during login flows. Defaults to
false
. - Twitter
Slot
Auth Settings Twitter - A
twitter
block as defined below. - Unauthenticated
Client stringAction - The action to take when an unauthenticated client attempts to access the app. Possible values are
AllowAnonymous
andRedirectToLoginPage
.
- enabled Boolean
- Is Authentication enabled?
- active
Directory SlotAuth Settings Active Directory - A
active_directory
block as defined below. - additional
Login Map<String,String>Params - Login parameters to send to the OpenID Connect authorization endpoint when a user logs in. Each parameter must be in the form "key=value".
- allowed
External List<String>Redirect Urls - External URLs that can be redirected to as part of logging in or logging out of the app.
- default
Provider String The default provider to use when multiple providers have been set up. Possible values are
AzureActiveDirectory
,Facebook
,Google
,MicrosoftAccount
andTwitter
.NOTE: When using multiple providers, the default provider must be set for settings like
unauthenticated_client_action
to work.- facebook
Slot
Auth Settings Facebook - A
facebook
block as defined below. - google
Slot
Auth Settings Google - A
google
block as defined below. - issuer String
- Issuer URI. When using Azure Active Directory, this value is the URI of the directory tenant, e.g. https://sts.windows.net/{tenant-guid}/.
- microsoft
Slot
Auth Settings Microsoft - A
microsoft
block as defined below. - runtime
Version String - The runtime version of the Authentication/Authorization module.
- token
Refresh DoubleExtension Hours - The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to
72
. - token
Store BooleanEnabled - If enabled the module will durably store platform-specific security tokens that are obtained during login flows. Defaults to
false
. - twitter
Slot
Auth Settings Twitter - A
twitter
block as defined below. - unauthenticated
Client StringAction - The action to take when an unauthenticated client attempts to access the app. Possible values are
AllowAnonymous
andRedirectToLoginPage
.
- enabled boolean
- Is Authentication enabled?
- active
Directory SlotAuth Settings Active Directory - A
active_directory
block as defined below. - additional
Login {[key: string]: string}Params - Login parameters to send to the OpenID Connect authorization endpoint when a user logs in. Each parameter must be in the form "key=value".
- allowed
External string[]Redirect Urls - External URLs that can be redirected to as part of logging in or logging out of the app.
- default
Provider string The default provider to use when multiple providers have been set up. Possible values are
AzureActiveDirectory
,Facebook
,Google
,MicrosoftAccount
andTwitter
.NOTE: When using multiple providers, the default provider must be set for settings like
unauthenticated_client_action
to work.- facebook
Slot
Auth Settings Facebook - A
facebook
block as defined below. - google
Slot
Auth Settings Google - A
google
block as defined below. - issuer string
- Issuer URI. When using Azure Active Directory, this value is the URI of the directory tenant, e.g. https://sts.windows.net/{tenant-guid}/.
- microsoft
Slot
Auth Settings Microsoft - A
microsoft
block as defined below. - runtime
Version string - The runtime version of the Authentication/Authorization module.
- token
Refresh numberExtension Hours - The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to
72
. - token
Store booleanEnabled - If enabled the module will durably store platform-specific security tokens that are obtained during login flows. Defaults to
false
. - twitter
Slot
Auth Settings Twitter - A
twitter
block as defined below. - unauthenticated
Client stringAction - The action to take when an unauthenticated client attempts to access the app. Possible values are
AllowAnonymous
andRedirectToLoginPage
.
- enabled bool
- Is Authentication enabled?
- active_
directory SlotAuth Settings Active Directory - A
active_directory
block as defined below. - additional_
login_ Mapping[str, str]params - Login parameters to send to the OpenID Connect authorization endpoint when a user logs in. Each parameter must be in the form "key=value".
- allowed_
external_ Sequence[str]redirect_ urls - External URLs that can be redirected to as part of logging in or logging out of the app.
- default_
provider str The default provider to use when multiple providers have been set up. Possible values are
AzureActiveDirectory
,Facebook
,Google
,MicrosoftAccount
andTwitter
.NOTE: When using multiple providers, the default provider must be set for settings like
unauthenticated_client_action
to work.- facebook
Slot
Auth Settings Facebook - A
facebook
block as defined below. - google
Slot
Auth Settings Google - A
google
block as defined below. - issuer str
- Issuer URI. When using Azure Active Directory, this value is the URI of the directory tenant, e.g. https://sts.windows.net/{tenant-guid}/.
- microsoft
Slot
Auth Settings Microsoft - A
microsoft
block as defined below. - runtime_
version str - The runtime version of the Authentication/Authorization module.
- token_
refresh_ floatextension_ hours - The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to
72
. - token_
store_ boolenabled - If enabled the module will durably store platform-specific security tokens that are obtained during login flows. Defaults to
false
. - twitter
Slot
Auth Settings Twitter - A
twitter
block as defined below. - unauthenticated_
client_ straction - The action to take when an unauthenticated client attempts to access the app. Possible values are
AllowAnonymous
andRedirectToLoginPage
.
- enabled Boolean
- Is Authentication enabled?
- active
Directory Property Map - A
active_directory
block as defined below. - additional
Login Map<String>Params - Login parameters to send to the OpenID Connect authorization endpoint when a user logs in. Each parameter must be in the form "key=value".
- allowed
External List<String>Redirect Urls - External URLs that can be redirected to as part of logging in or logging out of the app.
- default
Provider String The default provider to use when multiple providers have been set up. Possible values are
AzureActiveDirectory
,Facebook
,Google
,MicrosoftAccount
andTwitter
.NOTE: When using multiple providers, the default provider must be set for settings like
unauthenticated_client_action
to work.- facebook Property Map
- A
facebook
block as defined below. - google Property Map
- A
google
block as defined below. - issuer String
- Issuer URI. When using Azure Active Directory, this value is the URI of the directory tenant, e.g. https://sts.windows.net/{tenant-guid}/.
- microsoft Property Map
- A
microsoft
block as defined below. - runtime
Version String - The runtime version of the Authentication/Authorization module.
- token
Refresh NumberExtension Hours - The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to
72
. - token
Store BooleanEnabled - If enabled the module will durably store platform-specific security tokens that are obtained during login flows. Defaults to
false
. - twitter Property Map
- A
twitter
block as defined below. - unauthenticated
Client StringAction - The action to take when an unauthenticated client attempts to access the app. Possible values are
AllowAnonymous
andRedirectToLoginPage
.
SlotAuthSettingsActiveDirectory, SlotAuthSettingsActiveDirectoryArgs
- Client
Id string - The Client ID of this relying party application. Enables OpenIDConnection authentication with Azure Active Directory.
- Allowed
Audiences List<string> - Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
- Client
Secret string - The Client Secret of this relying party application. If no secret is provided, implicit flow will be used.
- Client
Id string - The Client ID of this relying party application. Enables OpenIDConnection authentication with Azure Active Directory.
- Allowed
Audiences []string - Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
- Client
Secret string - The Client Secret of this relying party application. If no secret is provided, implicit flow will be used.
- client
Id String - The Client ID of this relying party application. Enables OpenIDConnection authentication with Azure Active Directory.
- allowed
Audiences List<String> - Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
- client
Secret String - The Client Secret of this relying party application. If no secret is provided, implicit flow will be used.
- client
Id string - The Client ID of this relying party application. Enables OpenIDConnection authentication with Azure Active Directory.
- allowed
Audiences string[] - Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
- client
Secret string - The Client Secret of this relying party application. If no secret is provided, implicit flow will be used.
- client_
id str - The Client ID of this relying party application. Enables OpenIDConnection authentication with Azure Active Directory.
- allowed_
audiences Sequence[str] - Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
- client_
secret str - The Client Secret of this relying party application. If no secret is provided, implicit flow will be used.
- client
Id String - The Client ID of this relying party application. Enables OpenIDConnection authentication with Azure Active Directory.
- allowed
Audiences List<String> - Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
- client
Secret String - The Client Secret of this relying party application. If no secret is provided, implicit flow will be used.
SlotAuthSettingsFacebook, SlotAuthSettingsFacebookArgs
- App
Id string - The App ID of the Facebook app used for login
- App
Secret string - The App Secret of the Facebook app used for Facebook login.
- Oauth
Scopes List<string> - The OAuth 2.0 scopes that will be requested as part of Facebook login authentication. https://developers.facebook.com/docs/facebook-login
- App
Id string - The App ID of the Facebook app used for login
- App
Secret string - The App Secret of the Facebook app used for Facebook login.
- Oauth
Scopes []string - The OAuth 2.0 scopes that will be requested as part of Facebook login authentication. https://developers.facebook.com/docs/facebook-login
- app
Id String - The App ID of the Facebook app used for login
- app
Secret String - The App Secret of the Facebook app used for Facebook login.
- oauth
Scopes List<String> - The OAuth 2.0 scopes that will be requested as part of Facebook login authentication. https://developers.facebook.com/docs/facebook-login
- app
Id string - The App ID of the Facebook app used for login
- app
Secret string - The App Secret of the Facebook app used for Facebook login.
- oauth
Scopes string[] - The OAuth 2.0 scopes that will be requested as part of Facebook login authentication. https://developers.facebook.com/docs/facebook-login
- app_
id str - The App ID of the Facebook app used for login
- app_
secret str - The App Secret of the Facebook app used for Facebook login.
- oauth_
scopes Sequence[str] - The OAuth 2.0 scopes that will be requested as part of Facebook login authentication. https://developers.facebook.com/docs/facebook-login
- app
Id String - The App ID of the Facebook app used for login
- app
Secret String - The App Secret of the Facebook app used for Facebook login.
- oauth
Scopes List<String> - The OAuth 2.0 scopes that will be requested as part of Facebook login authentication. https://developers.facebook.com/docs/facebook-login
SlotAuthSettingsGoogle, SlotAuthSettingsGoogleArgs
- Client
Id string - The OpenID Connect Client ID for the Google web application.
- Client
Secret string - The client secret associated with the Google web application.
- Oauth
Scopes List<string> - The OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. https://developers.google.com/identity/sign-in/web/
- Client
Id string - The OpenID Connect Client ID for the Google web application.
- Client
Secret string - The client secret associated with the Google web application.
- Oauth
Scopes []string - The OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. https://developers.google.com/identity/sign-in/web/
- client
Id String - The OpenID Connect Client ID for the Google web application.
- client
Secret String - The client secret associated with the Google web application.
- oauth
Scopes List<String> - The OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. https://developers.google.com/identity/sign-in/web/
- client
Id string - The OpenID Connect Client ID for the Google web application.
- client
Secret string - The client secret associated with the Google web application.
- oauth
Scopes string[] - The OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. https://developers.google.com/identity/sign-in/web/
- client_
id str - The OpenID Connect Client ID for the Google web application.
- client_
secret str - The client secret associated with the Google web application.
- oauth_
scopes Sequence[str] - The OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. https://developers.google.com/identity/sign-in/web/
- client
Id String - The OpenID Connect Client ID for the Google web application.
- client
Secret String - The client secret associated with the Google web application.
- oauth
Scopes List<String> - The OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. https://developers.google.com/identity/sign-in/web/
SlotAuthSettingsMicrosoft, SlotAuthSettingsMicrosoftArgs
- Client
Id string - The OAuth 2.0 client ID that was created for the app used for authentication.
- Client
Secret string - The OAuth 2.0 client secret that was created for the app used for authentication.
- Oauth
Scopes List<string> - The OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. https://msdn.microsoft.com/en-us/library/dn631845.aspx
- Client
Id string - The OAuth 2.0 client ID that was created for the app used for authentication.
- Client
Secret string - The OAuth 2.0 client secret that was created for the app used for authentication.
- Oauth
Scopes []string - The OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. https://msdn.microsoft.com/en-us/library/dn631845.aspx
- client
Id String - The OAuth 2.0 client ID that was created for the app used for authentication.
- client
Secret String - The OAuth 2.0 client secret that was created for the app used for authentication.
- oauth
Scopes List<String> - The OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. https://msdn.microsoft.com/en-us/library/dn631845.aspx
- client
Id string - The OAuth 2.0 client ID that was created for the app used for authentication.
- client
Secret string - The OAuth 2.0 client secret that was created for the app used for authentication.
- oauth
Scopes string[] - The OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. https://msdn.microsoft.com/en-us/library/dn631845.aspx
- client_
id str - The OAuth 2.0 client ID that was created for the app used for authentication.
- client_
secret str - The OAuth 2.0 client secret that was created for the app used for authentication.
- oauth_
scopes Sequence[str] - The OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. https://msdn.microsoft.com/en-us/library/dn631845.aspx
- client
Id String - The OAuth 2.0 client ID that was created for the app used for authentication.
- client
Secret String - The OAuth 2.0 client secret that was created for the app used for authentication.
- oauth
Scopes List<String> - The OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. https://msdn.microsoft.com/en-us/library/dn631845.aspx
SlotAuthSettingsTwitter, SlotAuthSettingsTwitterArgs
- Consumer
Key string - The consumer key of the Twitter app used for login
- Consumer
Secret string - The consumer secret of the Twitter app used for login.
- Consumer
Key string - The consumer key of the Twitter app used for login
- Consumer
Secret string - The consumer secret of the Twitter app used for login.
- consumer
Key String - The consumer key of the Twitter app used for login
- consumer
Secret String - The consumer secret of the Twitter app used for login.
- consumer
Key string - The consumer key of the Twitter app used for login
- consumer
Secret string - The consumer secret of the Twitter app used for login.
- consumer_
key str - The consumer key of the Twitter app used for login
- consumer_
secret str - The consumer secret of the Twitter app used for login.
- consumer
Key String - The consumer key of the Twitter app used for login
- consumer
Secret String - The consumer secret of the Twitter app used for login.
SlotConnectionString, SlotConnectionStringArgs
SlotIdentity, SlotIdentityArgs
- Type string
Specifies the identity type of the App Service. Possible values are
SystemAssigned
(where Azure will generate a Service Principal for you),UserAssigned
where you can specify the Service Principal IDs in theidentity_ids
field, andSystemAssigned, UserAssigned
which assigns both a system managed identity as well as the specified user assigned identities.NOTE: When
type
is set toSystemAssigned
, The assignedprincipal_id
andtenant_id
can be retrieved after the App Service has been created. More details are available below.- Identity
Ids List<string> - Specifies a list of user managed identity ids to be assigned. Required if
type
isUserAssigned
. - Principal
Id string - The Principal ID for the Service Principal associated with the Managed Service Identity of this App Service slot.
- Tenant
Id string - The Tenant ID for the Service Principal associated with the Managed Service Identity of this App Service slot.
- Type string
Specifies the identity type of the App Service. Possible values are
SystemAssigned
(where Azure will generate a Service Principal for you),UserAssigned
where you can specify the Service Principal IDs in theidentity_ids
field, andSystemAssigned, UserAssigned
which assigns both a system managed identity as well as the specified user assigned identities.NOTE: When
type
is set toSystemAssigned
, The assignedprincipal_id
andtenant_id
can be retrieved after the App Service has been created. More details are available below.- Identity
Ids []string - Specifies a list of user managed identity ids to be assigned. Required if
type
isUserAssigned
. - Principal
Id string - The Principal ID for the Service Principal associated with the Managed Service Identity of this App Service slot.
- Tenant
Id string - The Tenant ID for the Service Principal associated with the Managed Service Identity of this App Service slot.
- type String
Specifies the identity type of the App Service. Possible values are
SystemAssigned
(where Azure will generate a Service Principal for you),UserAssigned
where you can specify the Service Principal IDs in theidentity_ids
field, andSystemAssigned, UserAssigned
which assigns both a system managed identity as well as the specified user assigned identities.NOTE: When
type
is set toSystemAssigned
, The assignedprincipal_id
andtenant_id
can be retrieved after the App Service has been created. More details are available below.- identity
Ids List<String> - Specifies a list of user managed identity ids to be assigned. Required if
type
isUserAssigned
. - principal
Id String - The Principal ID for the Service Principal associated with the Managed Service Identity of this App Service slot.
- tenant
Id String - The Tenant ID for the Service Principal associated with the Managed Service Identity of this App Service slot.
- type string
Specifies the identity type of the App Service. Possible values are
SystemAssigned
(where Azure will generate a Service Principal for you),UserAssigned
where you can specify the Service Principal IDs in theidentity_ids
field, andSystemAssigned, UserAssigned
which assigns both a system managed identity as well as the specified user assigned identities.NOTE: When
type
is set toSystemAssigned
, The assignedprincipal_id
andtenant_id
can be retrieved after the App Service has been created. More details are available below.- identity
Ids string[] - Specifies a list of user managed identity ids to be assigned. Required if
type
isUserAssigned
. - principal
Id string - The Principal ID for the Service Principal associated with the Managed Service Identity of this App Service slot.
- tenant
Id string - The Tenant ID for the Service Principal associated with the Managed Service Identity of this App Service slot.
- type str
Specifies the identity type of the App Service. Possible values are
SystemAssigned
(where Azure will generate a Service Principal for you),UserAssigned
where you can specify the Service Principal IDs in theidentity_ids
field, andSystemAssigned, UserAssigned
which assigns both a system managed identity as well as the specified user assigned identities.NOTE: When
type
is set toSystemAssigned
, The assignedprincipal_id
andtenant_id
can be retrieved after the App Service has been created. More details are available below.- identity_
ids Sequence[str] - Specifies a list of user managed identity ids to be assigned. Required if
type
isUserAssigned
. - principal_
id str - The Principal ID for the Service Principal associated with the Managed Service Identity of this App Service slot.
- tenant_
id str - The Tenant ID for the Service Principal associated with the Managed Service Identity of this App Service slot.
- type String
Specifies the identity type of the App Service. Possible values are
SystemAssigned
(where Azure will generate a Service Principal for you),UserAssigned
where you can specify the Service Principal IDs in theidentity_ids
field, andSystemAssigned, UserAssigned
which assigns both a system managed identity as well as the specified user assigned identities.NOTE: When
type
is set toSystemAssigned
, The assignedprincipal_id
andtenant_id
can be retrieved after the App Service has been created. More details are available below.- identity
Ids List<String> - Specifies a list of user managed identity ids to be assigned. Required if
type
isUserAssigned
. - principal
Id String - The Principal ID for the Service Principal associated with the Managed Service Identity of this App Service slot.
- tenant
Id String - The Tenant ID for the Service Principal associated with the Managed Service Identity of this App Service slot.
SlotLogs, SlotLogsArgs
- Application
Logs SlotLogs Application Logs - An
application_logs
block as defined below. - Detailed
Error boolMessages Enabled - Should
Detailed error messages
be enabled on this App Service slot? Defaults tofalse
. - Failed
Request boolTracing Enabled - Should
Failed request tracing
be enabled on this App Service slot? Defaults tofalse
. - Http
Logs SlotLogs Http Logs - An
http_logs
block as defined below.
- Application
Logs SlotLogs Application Logs - An
application_logs
block as defined below. - Detailed
Error boolMessages Enabled - Should
Detailed error messages
be enabled on this App Service slot? Defaults tofalse
. - Failed
Request boolTracing Enabled - Should
Failed request tracing
be enabled on this App Service slot? Defaults tofalse
. - Http
Logs SlotLogs Http Logs - An
http_logs
block as defined below.
- application
Logs SlotLogs Application Logs - An
application_logs
block as defined below. - detailed
Error BooleanMessages Enabled - Should
Detailed error messages
be enabled on this App Service slot? Defaults tofalse
. - failed
Request BooleanTracing Enabled - Should
Failed request tracing
be enabled on this App Service slot? Defaults tofalse
. - http
Logs SlotLogs Http Logs - An
http_logs
block as defined below.
- application
Logs SlotLogs Application Logs - An
application_logs
block as defined below. - detailed
Error booleanMessages Enabled - Should
Detailed error messages
be enabled on this App Service slot? Defaults tofalse
. - failed
Request booleanTracing Enabled - Should
Failed request tracing
be enabled on this App Service slot? Defaults tofalse
. - http
Logs SlotLogs Http Logs - An
http_logs
block as defined below.
- application_
logs SlotLogs Application Logs - An
application_logs
block as defined below. - detailed_
error_ boolmessages_ enabled - Should
Detailed error messages
be enabled on this App Service slot? Defaults tofalse
. - failed_
request_ booltracing_ enabled - Should
Failed request tracing
be enabled on this App Service slot? Defaults tofalse
. - http_
logs SlotLogs Http Logs - An
http_logs
block as defined below.
- application
Logs Property Map - An
application_logs
block as defined below. - detailed
Error BooleanMessages Enabled - Should
Detailed error messages
be enabled on this App Service slot? Defaults tofalse
. - failed
Request BooleanTracing Enabled - Should
Failed request tracing
be enabled on this App Service slot? Defaults tofalse
. - http
Logs Property Map - An
http_logs
block as defined below.
SlotLogsApplicationLogs, SlotLogsApplicationLogsArgs
- Azure
Blob SlotStorage Logs Application Logs Azure Blob Storage - An
azure_blob_storage
block as defined below. - File
System stringLevel - The file system log level. Possible values are
Off
,Error
,Warning
,Information
, andVerbose
. Defaults toOff
.
- Azure
Blob SlotStorage Logs Application Logs Azure Blob Storage - An
azure_blob_storage
block as defined below. - File
System stringLevel - The file system log level. Possible values are
Off
,Error
,Warning
,Information
, andVerbose
. Defaults toOff
.
- azure
Blob SlotStorage Logs Application Logs Azure Blob Storage - An
azure_blob_storage
block as defined below. - file
System StringLevel - The file system log level. Possible values are
Off
,Error
,Warning
,Information
, andVerbose
. Defaults toOff
.
- azure
Blob SlotStorage Logs Application Logs Azure Blob Storage - An
azure_blob_storage
block as defined below. - file
System stringLevel - The file system log level. Possible values are
Off
,Error
,Warning
,Information
, andVerbose
. Defaults toOff
.
- azure_
blob_ Slotstorage Logs Application Logs Azure Blob Storage - An
azure_blob_storage
block as defined below. - file_
system_ strlevel - The file system log level. Possible values are
Off
,Error
,Warning
,Information
, andVerbose
. Defaults toOff
.
- azure
Blob Property MapStorage - An
azure_blob_storage
block as defined below. - file
System StringLevel - The file system log level. Possible values are
Off
,Error
,Warning
,Information
, andVerbose
. Defaults toOff
.
SlotLogsApplicationLogsAzureBlobStorage, SlotLogsApplicationLogsAzureBlobStorageArgs
- Level string
- The level at which to log. Possible values include
Error
,Warning
,Information
,Verbose
andOff
. NOTE: this field is not available forhttp_logs
- Retention
In intDays - The number of days to retain logs for.
- Sas
Url string - The URL to the storage container, with a Service SAS token appended. NOTE: there is currently no means of generating Service SAS tokens with the
azurerm
provider.
- Level string
- The level at which to log. Possible values include
Error
,Warning
,Information
,Verbose
andOff
. NOTE: this field is not available forhttp_logs
- Retention
In intDays - The number of days to retain logs for.
- Sas
Url string - The URL to the storage container, with a Service SAS token appended. NOTE: there is currently no means of generating Service SAS tokens with the
azurerm
provider.
- level String
- The level at which to log. Possible values include
Error
,Warning
,Information
,Verbose
andOff
. NOTE: this field is not available forhttp_logs
- retention
In IntegerDays - The number of days to retain logs for.
- sas
Url String - The URL to the storage container, with a Service SAS token appended. NOTE: there is currently no means of generating Service SAS tokens with the
azurerm
provider.
- level string
- The level at which to log. Possible values include
Error
,Warning
,Information
,Verbose
andOff
. NOTE: this field is not available forhttp_logs
- retention
In numberDays - The number of days to retain logs for.
- sas
Url string - The URL to the storage container, with a Service SAS token appended. NOTE: there is currently no means of generating Service SAS tokens with the
azurerm
provider.
- level str
- The level at which to log. Possible values include
Error
,Warning
,Information
,Verbose
andOff
. NOTE: this field is not available forhttp_logs
- retention_
in_ intdays - The number of days to retain logs for.
- sas_
url str - The URL to the storage container, with a Service SAS token appended. NOTE: there is currently no means of generating Service SAS tokens with the
azurerm
provider.
- level String
- The level at which to log. Possible values include
Error
,Warning
,Information
,Verbose
andOff
. NOTE: this field is not available forhttp_logs
- retention
In NumberDays - The number of days to retain logs for.
- sas
Url String - The URL to the storage container, with a Service SAS token appended. NOTE: there is currently no means of generating Service SAS tokens with the
azurerm
provider.
SlotLogsHttpLogs, SlotLogsHttpLogsArgs
- Azure
Blob SlotStorage Logs Http Logs Azure Blob Storage - An
azure_blob_storage
block as defined below. - File
System SlotLogs Http Logs File System - A
file_system
block as defined below.
- Azure
Blob SlotStorage Logs Http Logs Azure Blob Storage - An
azure_blob_storage
block as defined below. - File
System SlotLogs Http Logs File System - A
file_system
block as defined below.
- azure
Blob SlotStorage Logs Http Logs Azure Blob Storage - An
azure_blob_storage
block as defined below. - file
System SlotLogs Http Logs File System - A
file_system
block as defined below.
- azure
Blob SlotStorage Logs Http Logs Azure Blob Storage - An
azure_blob_storage
block as defined below. - file
System SlotLogs Http Logs File System - A
file_system
block as defined below.
- azure_
blob_ Slotstorage Logs Http Logs Azure Blob Storage - An
azure_blob_storage
block as defined below. - file_
system SlotLogs Http Logs File System - A
file_system
block as defined below.
- azure
Blob Property MapStorage - An
azure_blob_storage
block as defined below. - file
System Property Map - A
file_system
block as defined below.
SlotLogsHttpLogsAzureBlobStorage, SlotLogsHttpLogsAzureBlobStorageArgs
- Retention
In intDays - The number of days to retain logs for.
- Sas
Url string - The URL to the storage container, with a Service SAS token appended. NOTE: there is currently no means of generating Service SAS tokens with the
azurerm
provider.
- Retention
In intDays - The number of days to retain logs for.
- Sas
Url string - The URL to the storage container, with a Service SAS token appended. NOTE: there is currently no means of generating Service SAS tokens with the
azurerm
provider.
- retention
In IntegerDays - The number of days to retain logs for.
- sas
Url String - The URL to the storage container, with a Service SAS token appended. NOTE: there is currently no means of generating Service SAS tokens with the
azurerm
provider.
- retention
In numberDays - The number of days to retain logs for.
- sas
Url string - The URL to the storage container, with a Service SAS token appended. NOTE: there is currently no means of generating Service SAS tokens with the
azurerm
provider.
- retention_
in_ intdays - The number of days to retain logs for.
- sas_
url str - The URL to the storage container, with a Service SAS token appended. NOTE: there is currently no means of generating Service SAS tokens with the
azurerm
provider.
- retention
In NumberDays - The number of days to retain logs for.
- sas
Url String - The URL to the storage container, with a Service SAS token appended. NOTE: there is currently no means of generating Service SAS tokens with the
azurerm
provider.
SlotLogsHttpLogsFileSystem, SlotLogsHttpLogsFileSystemArgs
- Retention
In intDays - The number of days to retain logs for.
- Retention
In intMb - The maximum size in megabytes that HTTP log files can use before being removed.
- Retention
In intDays - The number of days to retain logs for.
- Retention
In intMb - The maximum size in megabytes that HTTP log files can use before being removed.
- retention
In IntegerDays - The number of days to retain logs for.
- retention
In IntegerMb - The maximum size in megabytes that HTTP log files can use before being removed.
- retention
In numberDays - The number of days to retain logs for.
- retention
In numberMb - The maximum size in megabytes that HTTP log files can use before being removed.
- retention_
in_ intdays - The number of days to retain logs for.
- retention_
in_ intmb - The maximum size in megabytes that HTTP log files can use before being removed.
- retention
In NumberDays - The number of days to retain logs for.
- retention
In NumberMb - The maximum size in megabytes that HTTP log files can use before being removed.
SlotSiteConfig, SlotSiteConfigArgs
- Acr
Use boolManaged Identity Credentials - Are Managed Identity Credentials used for Azure Container Registry pull
- Acr
User stringManaged Identity Client Id If using User Managed Identity, the User Managed Identity Client Id
NOTE: When using User Managed Identity with Azure Container Registry the Identity will need to have the ACRPull role assigned
- Always
On bool Should the slot be loaded at all times? Defaults to
false
.NOTE: when using an App Service Plan in the
Free
orShared
Tiersalways_on
must be set tofalse
.- App
Command stringLine - App command line to launch, e.g.
/sbin/myserver -b 0.0.0.0
. - Auto
Swap stringSlot Name - The name of the slot to automatically swap to during deployment
- Cors
Slot
Site Config Cors - A
cors
block as defined below. - Default
Documents List<string> - The ordering of default documents to load, if an address isn't specified.
- Dotnet
Framework stringVersion - The version of the .NET framework's CLR used in this App Service Slot. Possible values are
v2.0
(which will use the latest version of the .NET framework for the .NET CLR v2 - currently.net 3.5
),v4.0
(which corresponds to the latest version of the .NET CLR v4 - which at the time of writing is.net 4.7.1
),v5.0
andv6.0
. For more information on which .NET CLR version to use based on the .NET framework you're targeting - please see this table. Defaults tov4.0
. - Ftps
State string - State of FTP / FTPS service for this App Service Slot. Possible values include:
AllAllowed
,FtpsOnly
andDisabled
. - Health
Check stringPath - The health check path to be pinged by App Service Slot. For more information - please see App Service health check announcement.
- Http2Enabled bool
- Is HTTP2 Enabled on this App Service? Defaults to
false
. - Ip
Restrictions List<SlotSite Config Ip Restriction> A list of objects representing ip restrictions as defined below.
NOTE User has to explicitly set
ip_restriction
to empty slice ([]
) to remove it.- Java
Container string - The Java Container to use. If specified
java_version
andjava_container_version
must also be specified. Possible values areJAVA
,JETTY
, andTOMCAT
. - Java
Container stringVersion - The version of the Java Container to use. If specified
java_version
andjava_container
must also be specified. - Java
Version string - The version of Java to use. If specified
java_container
andjava_container_version
must also be specified. Possible values are1.7
,1.8
, and11
and their specific versions - except for Java 11 (e.g.1.7.0_80
,1.8.0_181
,11
) - Linux
Fx stringVersion Linux App Framework and version for the App Service Slot. Possible options are a Docker container (
DOCKER|<user/image:tag>
), a base-64 encoded Docker Compose file (COMPOSE|${filebase64("compose.yml")}
) or a base-64 encoded Kubernetes Manifest (KUBE|${filebase64("kubernetes.yml")}
).NOTE: To set this property the App Service Plan to which the App belongs must be configured with
kind = "Linux"
, andreserved = true
or the API will reject any value supplied.- Local
Mysql boolEnabled Is "MySQL In App" Enabled? This runs a local MySQL instance with your app and shares resources from the App Service plan.
NOTE: MySQL In App is not intended for production environments and will not scale beyond a single instance. Instead you may wish to use Azure Database for MySQL.
- Managed
Pipeline stringMode - The Managed Pipeline Mode. Possible values are
Integrated
andClassic
. Defaults toIntegrated
. - Min
Tls stringVersion - The minimum supported TLS version for the app service. Possible values are
1.0
,1.1
, and1.2
. Defaults to1.2
for new app services. - Number
Of intWorkers - The scaled number of workers (for per site scaling) of this App Service Slot. Requires that
per_site_scaling
is enabled on theazure.appservice.Plan
. For more information - please see Microsoft documentation on high-density hosting. - Php
Version string - The version of PHP to use in this App Service Slot. Possible values are
5.5
,5.6
,7.0
,7.1
,7.2
,7.3
, and7.4
. - Python
Version string - The version of Python to use in this App Service Slot. Possible values are
2.7
and3.4
. - Remote
Debugging boolEnabled - Is Remote Debugging Enabled? Defaults to
false
. - Remote
Debugging stringVersion - Which version of Visual Studio should the Remote Debugger be compatible with? Possible values are
VS2017
,VS2019
, andVS2022
. - Scm
Ip List<SlotRestrictions Site Config Scm Ip Restriction> A list of
scm_ip_restriction
objects representing IP restrictions as defined below.NOTE User has to explicitly set
scm_ip_restriction
to empty slice ([]
) to remove it.- Scm
Type string - The type of Source Control enabled for this App Service Slot. Defaults to
None
. Possible values are:BitbucketGit
,BitbucketHg
,CodePlexGit
,CodePlexHg
,Dropbox
,ExternalGit
,ExternalHg
,GitHub
,LocalGit
,None
,OneDrive
,Tfs
,VSO
, andVSTSRM
- Scm
Use boolMain Ip Restriction IP security restrictions for scm to use main. Defaults to
false
.NOTE Any
scm_ip_restriction
blocks configured are ignored by the service whenscm_use_main_ip_restriction
is set totrue
. Any scm restrictions will become active if this is subsequently set tofalse
or removed.- Use32Bit
Worker boolProcess Should the App Service Slot run in 32 bit mode, rather than 64 bit mode?
NOTE: when using an App Service Plan in the
Free
orShared
Tiersuse_32_bit_worker_process
must be set totrue
.- Vnet
Route boolAll Enabled - Websockets
Enabled bool - Should WebSockets be enabled?
- Windows
Fx stringVersion The Windows Docker container image (
DOCKER|<user/image:tag>
)Additional examples of how to run Containers via the
azure.appservice.Slot
resource can be found in the./examples/app-service
directory within the GitHub Repository.
- Acr
Use boolManaged Identity Credentials - Are Managed Identity Credentials used for Azure Container Registry pull
- Acr
User stringManaged Identity Client Id If using User Managed Identity, the User Managed Identity Client Id
NOTE: When using User Managed Identity with Azure Container Registry the Identity will need to have the ACRPull role assigned
- Always
On bool Should the slot be loaded at all times? Defaults to
false
.NOTE: when using an App Service Plan in the
Free
orShared
Tiersalways_on
must be set tofalse
.- App
Command stringLine - App command line to launch, e.g.
/sbin/myserver -b 0.0.0.0
. - Auto
Swap stringSlot Name - The name of the slot to automatically swap to during deployment
- Cors
Slot
Site Config Cors - A
cors
block as defined below. - Default
Documents []string - The ordering of default documents to load, if an address isn't specified.
- Dotnet
Framework stringVersion - The version of the .NET framework's CLR used in this App Service Slot. Possible values are
v2.0
(which will use the latest version of the .NET framework for the .NET CLR v2 - currently.net 3.5
),v4.0
(which corresponds to the latest version of the .NET CLR v4 - which at the time of writing is.net 4.7.1
),v5.0
andv6.0
. For more information on which .NET CLR version to use based on the .NET framework you're targeting - please see this table. Defaults tov4.0
. - Ftps
State string - State of FTP / FTPS service for this App Service Slot. Possible values include:
AllAllowed
,FtpsOnly
andDisabled
. - Health
Check stringPath - The health check path to be pinged by App Service Slot. For more information - please see App Service health check announcement.
- Http2Enabled bool
- Is HTTP2 Enabled on this App Service? Defaults to
false
. - Ip
Restrictions []SlotSite Config Ip Restriction A list of objects representing ip restrictions as defined below.
NOTE User has to explicitly set
ip_restriction
to empty slice ([]
) to remove it.- Java
Container string - The Java Container to use. If specified
java_version
andjava_container_version
must also be specified. Possible values areJAVA
,JETTY
, andTOMCAT
. - Java
Container stringVersion - The version of the Java Container to use. If specified
java_version
andjava_container
must also be specified. - Java
Version string - The version of Java to use. If specified
java_container
andjava_container_version
must also be specified. Possible values are1.7
,1.8
, and11
and their specific versions - except for Java 11 (e.g.1.7.0_80
,1.8.0_181
,11
) - Linux
Fx stringVersion Linux App Framework and version for the App Service Slot. Possible options are a Docker container (
DOCKER|<user/image:tag>
), a base-64 encoded Docker Compose file (COMPOSE|${filebase64("compose.yml")}
) or a base-64 encoded Kubernetes Manifest (KUBE|${filebase64("kubernetes.yml")}
).NOTE: To set this property the App Service Plan to which the App belongs must be configured with
kind = "Linux"
, andreserved = true
or the API will reject any value supplied.- Local
Mysql boolEnabled Is "MySQL In App" Enabled? This runs a local MySQL instance with your app and shares resources from the App Service plan.
NOTE: MySQL In App is not intended for production environments and will not scale beyond a single instance. Instead you may wish to use Azure Database for MySQL.
- Managed
Pipeline stringMode - The Managed Pipeline Mode. Possible values are
Integrated
andClassic
. Defaults toIntegrated
. - Min
Tls stringVersion - The minimum supported TLS version for the app service. Possible values are
1.0
,1.1
, and1.2
. Defaults to1.2
for new app services. - Number
Of intWorkers - The scaled number of workers (for per site scaling) of this App Service Slot. Requires that
per_site_scaling
is enabled on theazure.appservice.Plan
. For more information - please see Microsoft documentation on high-density hosting. - Php
Version string - The version of PHP to use in this App Service Slot. Possible values are
5.5
,5.6
,7.0
,7.1
,7.2
,7.3
, and7.4
. - Python
Version string - The version of Python to use in this App Service Slot. Possible values are
2.7
and3.4
. - Remote
Debugging boolEnabled - Is Remote Debugging Enabled? Defaults to
false
. - Remote
Debugging stringVersion - Which version of Visual Studio should the Remote Debugger be compatible with? Possible values are
VS2017
,VS2019
, andVS2022
. - Scm
Ip []SlotRestrictions Site Config Scm Ip Restriction A list of
scm_ip_restriction
objects representing IP restrictions as defined below.NOTE User has to explicitly set
scm_ip_restriction
to empty slice ([]
) to remove it.- Scm
Type string - The type of Source Control enabled for this App Service Slot. Defaults to
None
. Possible values are:BitbucketGit
,BitbucketHg
,CodePlexGit
,CodePlexHg
,Dropbox
,ExternalGit
,ExternalHg
,GitHub
,LocalGit
,None
,OneDrive
,Tfs
,VSO
, andVSTSRM
- Scm
Use boolMain Ip Restriction IP security restrictions for scm to use main. Defaults to
false
.NOTE Any
scm_ip_restriction
blocks configured are ignored by the service whenscm_use_main_ip_restriction
is set totrue
. Any scm restrictions will become active if this is subsequently set tofalse
or removed.- Use32Bit
Worker boolProcess Should the App Service Slot run in 32 bit mode, rather than 64 bit mode?
NOTE: when using an App Service Plan in the
Free
orShared
Tiersuse_32_bit_worker_process
must be set totrue
.- Vnet
Route boolAll Enabled - Websockets
Enabled bool - Should WebSockets be enabled?
- Windows
Fx stringVersion The Windows Docker container image (
DOCKER|<user/image:tag>
)Additional examples of how to run Containers via the
azure.appservice.Slot
resource can be found in the./examples/app-service
directory within the GitHub Repository.
- acr
Use BooleanManaged Identity Credentials - Are Managed Identity Credentials used for Azure Container Registry pull
- acr
User StringManaged Identity Client Id If using User Managed Identity, the User Managed Identity Client Id
NOTE: When using User Managed Identity with Azure Container Registry the Identity will need to have the ACRPull role assigned
- always
On Boolean Should the slot be loaded at all times? Defaults to
false
.NOTE: when using an App Service Plan in the
Free
orShared
Tiersalways_on
must be set tofalse
.- app
Command StringLine - App command line to launch, e.g.
/sbin/myserver -b 0.0.0.0
. - auto
Swap StringSlot Name - The name of the slot to automatically swap to during deployment
- cors
Slot
Site Config Cors - A
cors
block as defined below. - default
Documents List<String> - The ordering of default documents to load, if an address isn't specified.
- dotnet
Framework StringVersion - The version of the .NET framework's CLR used in this App Service Slot. Possible values are
v2.0
(which will use the latest version of the .NET framework for the .NET CLR v2 - currently.net 3.5
),v4.0
(which corresponds to the latest version of the .NET CLR v4 - which at the time of writing is.net 4.7.1
),v5.0
andv6.0
. For more information on which .NET CLR version to use based on the .NET framework you're targeting - please see this table. Defaults tov4.0
. - ftps
State String - State of FTP / FTPS service for this App Service Slot. Possible values include:
AllAllowed
,FtpsOnly
andDisabled
. - health
Check StringPath - The health check path to be pinged by App Service Slot. For more information - please see App Service health check announcement.
- http2Enabled Boolean
- Is HTTP2 Enabled on this App Service? Defaults to
false
. - ip
Restrictions List<SlotSite Config Ip Restriction> A list of objects representing ip restrictions as defined below.
NOTE User has to explicitly set
ip_restriction
to empty slice ([]
) to remove it.- java
Container String - The Java Container to use. If specified
java_version
andjava_container_version
must also be specified. Possible values areJAVA
,JETTY
, andTOMCAT
. - java
Container StringVersion - The version of the Java Container to use. If specified
java_version
andjava_container
must also be specified. - java
Version String - The version of Java to use. If specified
java_container
andjava_container_version
must also be specified. Possible values are1.7
,1.8
, and11
and their specific versions - except for Java 11 (e.g.1.7.0_80
,1.8.0_181
,11
) - linux
Fx StringVersion Linux App Framework and version for the App Service Slot. Possible options are a Docker container (
DOCKER|<user/image:tag>
), a base-64 encoded Docker Compose file (COMPOSE|${filebase64("compose.yml")}
) or a base-64 encoded Kubernetes Manifest (KUBE|${filebase64("kubernetes.yml")}
).NOTE: To set this property the App Service Plan to which the App belongs must be configured with
kind = "Linux"
, andreserved = true
or the API will reject any value supplied.- local
Mysql BooleanEnabled Is "MySQL In App" Enabled? This runs a local MySQL instance with your app and shares resources from the App Service plan.
NOTE: MySQL In App is not intended for production environments and will not scale beyond a single instance. Instead you may wish to use Azure Database for MySQL.
- managed
Pipeline StringMode - The Managed Pipeline Mode. Possible values are
Integrated
andClassic
. Defaults toIntegrated
. - min
Tls StringVersion - The minimum supported TLS version for the app service. Possible values are
1.0
,1.1
, and1.2
. Defaults to1.2
for new app services. - number
Of IntegerWorkers - The scaled number of workers (for per site scaling) of this App Service Slot. Requires that
per_site_scaling
is enabled on theazure.appservice.Plan
. For more information - please see Microsoft documentation on high-density hosting. - php
Version String - The version of PHP to use in this App Service Slot. Possible values are
5.5
,5.6
,7.0
,7.1
,7.2
,7.3
, and7.4
. - python
Version String - The version of Python to use in this App Service Slot. Possible values are
2.7
and3.4
. - remote
Debugging BooleanEnabled - Is Remote Debugging Enabled? Defaults to
false
. - remote
Debugging StringVersion - Which version of Visual Studio should the Remote Debugger be compatible with? Possible values are
VS2017
,VS2019
, andVS2022
. - scm
Ip List<SlotRestrictions Site Config Scm Ip Restriction> A list of
scm_ip_restriction
objects representing IP restrictions as defined below.NOTE User has to explicitly set
scm_ip_restriction
to empty slice ([]
) to remove it.- scm
Type String - The type of Source Control enabled for this App Service Slot. Defaults to
None
. Possible values are:BitbucketGit
,BitbucketHg
,CodePlexGit
,CodePlexHg
,Dropbox
,ExternalGit
,ExternalHg
,GitHub
,LocalGit
,None
,OneDrive
,Tfs
,VSO
, andVSTSRM
- scm
Use BooleanMain Ip Restriction IP security restrictions for scm to use main. Defaults to
false
.NOTE Any
scm_ip_restriction
blocks configured are ignored by the service whenscm_use_main_ip_restriction
is set totrue
. Any scm restrictions will become active if this is subsequently set tofalse
or removed.- use32Bit
Worker BooleanProcess Should the App Service Slot run in 32 bit mode, rather than 64 bit mode?
NOTE: when using an App Service Plan in the
Free
orShared
Tiersuse_32_bit_worker_process
must be set totrue
.- vnet
Route BooleanAll Enabled - websockets
Enabled Boolean - Should WebSockets be enabled?
- windows
Fx StringVersion The Windows Docker container image (
DOCKER|<user/image:tag>
)Additional examples of how to run Containers via the
azure.appservice.Slot
resource can be found in the./examples/app-service
directory within the GitHub Repository.
- acr
Use booleanManaged Identity Credentials - Are Managed Identity Credentials used for Azure Container Registry pull
- acr
User stringManaged Identity Client Id If using User Managed Identity, the User Managed Identity Client Id
NOTE: When using User Managed Identity with Azure Container Registry the Identity will need to have the ACRPull role assigned
- always
On boolean Should the slot be loaded at all times? Defaults to
false
.NOTE: when using an App Service Plan in the
Free
orShared
Tiersalways_on
must be set tofalse
.- app
Command stringLine - App command line to launch, e.g.
/sbin/myserver -b 0.0.0.0
. - auto
Swap stringSlot Name - The name of the slot to automatically swap to during deployment
- cors
Slot
Site Config Cors - A
cors
block as defined below. - default
Documents string[] - The ordering of default documents to load, if an address isn't specified.
- dotnet
Framework stringVersion - The version of the .NET framework's CLR used in this App Service Slot. Possible values are
v2.0
(which will use the latest version of the .NET framework for the .NET CLR v2 - currently.net 3.5
),v4.0
(which corresponds to the latest version of the .NET CLR v4 - which at the time of writing is.net 4.7.1
),v5.0
andv6.0
. For more information on which .NET CLR version to use based on the .NET framework you're targeting - please see this table. Defaults tov4.0
. - ftps
State string - State of FTP / FTPS service for this App Service Slot. Possible values include:
AllAllowed
,FtpsOnly
andDisabled
. - health
Check stringPath - The health check path to be pinged by App Service Slot. For more information - please see App Service health check announcement.
- http2Enabled boolean
- Is HTTP2 Enabled on this App Service? Defaults to
false
. - ip
Restrictions SlotSite Config Ip Restriction[] A list of objects representing ip restrictions as defined below.
NOTE User has to explicitly set
ip_restriction
to empty slice ([]
) to remove it.- java
Container string - The Java Container to use. If specified
java_version
andjava_container_version
must also be specified. Possible values areJAVA
,JETTY
, andTOMCAT
. - java
Container stringVersion - The version of the Java Container to use. If specified
java_version
andjava_container
must also be specified. - java
Version string - The version of Java to use. If specified
java_container
andjava_container_version
must also be specified. Possible values are1.7
,1.8
, and11
and their specific versions - except for Java 11 (e.g.1.7.0_80
,1.8.0_181
,11
) - linux
Fx stringVersion Linux App Framework and version for the App Service Slot. Possible options are a Docker container (
DOCKER|<user/image:tag>
), a base-64 encoded Docker Compose file (COMPOSE|${filebase64("compose.yml")}
) or a base-64 encoded Kubernetes Manifest (KUBE|${filebase64("kubernetes.yml")}
).NOTE: To set this property the App Service Plan to which the App belongs must be configured with
kind = "Linux"
, andreserved = true
or the API will reject any value supplied.- local
Mysql booleanEnabled Is "MySQL In App" Enabled? This runs a local MySQL instance with your app and shares resources from the App Service plan.
NOTE: MySQL In App is not intended for production environments and will not scale beyond a single instance. Instead you may wish to use Azure Database for MySQL.
- managed
Pipeline stringMode - The Managed Pipeline Mode. Possible values are
Integrated
andClassic
. Defaults toIntegrated
. - min
Tls stringVersion - The minimum supported TLS version for the app service. Possible values are
1.0
,1.1
, and1.2
. Defaults to1.2
for new app services. - number
Of numberWorkers - The scaled number of workers (for per site scaling) of this App Service Slot. Requires that
per_site_scaling
is enabled on theazure.appservice.Plan
. For more information - please see Microsoft documentation on high-density hosting. - php
Version string - The version of PHP to use in this App Service Slot. Possible values are
5.5
,5.6
,7.0
,7.1
,7.2
,7.3
, and7.4
. - python
Version string - The version of Python to use in this App Service Slot. Possible values are
2.7
and3.4
. - remote
Debugging booleanEnabled - Is Remote Debugging Enabled? Defaults to
false
. - remote
Debugging stringVersion - Which version of Visual Studio should the Remote Debugger be compatible with? Possible values are
VS2017
,VS2019
, andVS2022
. - scm
Ip SlotRestrictions Site Config Scm Ip Restriction[] A list of
scm_ip_restriction
objects representing IP restrictions as defined below.NOTE User has to explicitly set
scm_ip_restriction
to empty slice ([]
) to remove it.- scm
Type string - The type of Source Control enabled for this App Service Slot. Defaults to
None
. Possible values are:BitbucketGit
,BitbucketHg
,CodePlexGit
,CodePlexHg
,Dropbox
,ExternalGit
,ExternalHg
,GitHub
,LocalGit
,None
,OneDrive
,Tfs
,VSO
, andVSTSRM
- scm
Use booleanMain Ip Restriction IP security restrictions for scm to use main. Defaults to
false
.NOTE Any
scm_ip_restriction
blocks configured are ignored by the service whenscm_use_main_ip_restriction
is set totrue
. Any scm restrictions will become active if this is subsequently set tofalse
or removed.- use32Bit
Worker booleanProcess Should the App Service Slot run in 32 bit mode, rather than 64 bit mode?
NOTE: when using an App Service Plan in the
Free
orShared
Tiersuse_32_bit_worker_process
must be set totrue
.- vnet
Route booleanAll Enabled - websockets
Enabled boolean - Should WebSockets be enabled?
- windows
Fx stringVersion The Windows Docker container image (
DOCKER|<user/image:tag>
)Additional examples of how to run Containers via the
azure.appservice.Slot
resource can be found in the./examples/app-service
directory within the GitHub Repository.
- acr_
use_ boolmanaged_ identity_ credentials - Are Managed Identity Credentials used for Azure Container Registry pull
- acr_
user_ strmanaged_ identity_ client_ id If using User Managed Identity, the User Managed Identity Client Id
NOTE: When using User Managed Identity with Azure Container Registry the Identity will need to have the ACRPull role assigned
- always_
on bool Should the slot be loaded at all times? Defaults to
false
.NOTE: when using an App Service Plan in the
Free
orShared
Tiersalways_on
must be set tofalse
.- app_
command_ strline - App command line to launch, e.g.
/sbin/myserver -b 0.0.0.0
. - auto_
swap_ strslot_ name - The name of the slot to automatically swap to during deployment
- cors
Slot
Site Config Cors - A
cors
block as defined below. - default_
documents Sequence[str] - The ordering of default documents to load, if an address isn't specified.
- dotnet_
framework_ strversion - The version of the .NET framework's CLR used in this App Service Slot. Possible values are
v2.0
(which will use the latest version of the .NET framework for the .NET CLR v2 - currently.net 3.5
),v4.0
(which corresponds to the latest version of the .NET CLR v4 - which at the time of writing is.net 4.7.1
),v5.0
andv6.0
. For more information on which .NET CLR version to use based on the .NET framework you're targeting - please see this table. Defaults tov4.0
. - ftps_
state str - State of FTP / FTPS service for this App Service Slot. Possible values include:
AllAllowed
,FtpsOnly
andDisabled
. - health_
check_ strpath - The health check path to be pinged by App Service Slot. For more information - please see App Service health check announcement.
- http2_
enabled bool - Is HTTP2 Enabled on this App Service? Defaults to
false
. - ip_
restrictions Sequence[SlotSite Config Ip Restriction] A list of objects representing ip restrictions as defined below.
NOTE User has to explicitly set
ip_restriction
to empty slice ([]
) to remove it.- java_
container str - The Java Container to use. If specified
java_version
andjava_container_version
must also be specified. Possible values areJAVA
,JETTY
, andTOMCAT
. - java_
container_ strversion - The version of the Java Container to use. If specified
java_version
andjava_container
must also be specified. - java_
version str - The version of Java to use. If specified
java_container
andjava_container_version
must also be specified. Possible values are1.7
,1.8
, and11
and their specific versions - except for Java 11 (e.g.1.7.0_80
,1.8.0_181
,11
) - linux_
fx_ strversion Linux App Framework and version for the App Service Slot. Possible options are a Docker container (
DOCKER|<user/image:tag>
), a base-64 encoded Docker Compose file (COMPOSE|${filebase64("compose.yml")}
) or a base-64 encoded Kubernetes Manifest (KUBE|${filebase64("kubernetes.yml")}
).NOTE: To set this property the App Service Plan to which the App belongs must be configured with
kind = "Linux"
, andreserved = true
or the API will reject any value supplied.- local_
mysql_ boolenabled Is "MySQL In App" Enabled? This runs a local MySQL instance with your app and shares resources from the App Service plan.
NOTE: MySQL In App is not intended for production environments and will not scale beyond a single instance. Instead you may wish to use Azure Database for MySQL.
- managed_
pipeline_ strmode - The Managed Pipeline Mode. Possible values are
Integrated
andClassic
. Defaults toIntegrated
. - min_
tls_ strversion - The minimum supported TLS version for the app service. Possible values are
1.0
,1.1
, and1.2
. Defaults to1.2
for new app services. - number_
of_ intworkers - The scaled number of workers (for per site scaling) of this App Service Slot. Requires that
per_site_scaling
is enabled on theazure.appservice.Plan
. For more information - please see Microsoft documentation on high-density hosting. - php_
version str - The version of PHP to use in this App Service Slot. Possible values are
5.5
,5.6
,7.0
,7.1
,7.2
,7.3
, and7.4
. - python_
version str - The version of Python to use in this App Service Slot. Possible values are
2.7
and3.4
. - remote_
debugging_ boolenabled - Is Remote Debugging Enabled? Defaults to
false
. - remote_
debugging_ strversion - Which version of Visual Studio should the Remote Debugger be compatible with? Possible values are
VS2017
,VS2019
, andVS2022
. - scm_
ip_ Sequence[Slotrestrictions Site Config Scm Ip Restriction] A list of
scm_ip_restriction
objects representing IP restrictions as defined below.NOTE User has to explicitly set
scm_ip_restriction
to empty slice ([]
) to remove it.- scm_
type str - The type of Source Control enabled for this App Service Slot. Defaults to
None
. Possible values are:BitbucketGit
,BitbucketHg
,CodePlexGit
,CodePlexHg
,Dropbox
,ExternalGit
,ExternalHg
,GitHub
,LocalGit
,None
,OneDrive
,Tfs
,VSO
, andVSTSRM
- scm_
use_ boolmain_ ip_ restriction IP security restrictions for scm to use main. Defaults to
false
.NOTE Any
scm_ip_restriction
blocks configured are ignored by the service whenscm_use_main_ip_restriction
is set totrue
. Any scm restrictions will become active if this is subsequently set tofalse
or removed.- use32_
bit_ boolworker_ process Should the App Service Slot run in 32 bit mode, rather than 64 bit mode?
NOTE: when using an App Service Plan in the
Free
orShared
Tiersuse_32_bit_worker_process
must be set totrue
.- vnet_
route_ boolall_ enabled - websockets_
enabled bool - Should WebSockets be enabled?
- windows_
fx_ strversion The Windows Docker container image (
DOCKER|<user/image:tag>
)Additional examples of how to run Containers via the
azure.appservice.Slot
resource can be found in the./examples/app-service
directory within the GitHub Repository.
- acr
Use BooleanManaged Identity Credentials - Are Managed Identity Credentials used for Azure Container Registry pull
- acr
User StringManaged Identity Client Id If using User Managed Identity, the User Managed Identity Client Id
NOTE: When using User Managed Identity with Azure Container Registry the Identity will need to have the ACRPull role assigned
- always
On Boolean Should the slot be loaded at all times? Defaults to
false
.NOTE: when using an App Service Plan in the
Free
orShared
Tiersalways_on
must be set tofalse
.- app
Command StringLine - App command line to launch, e.g.
/sbin/myserver -b 0.0.0.0
. - auto
Swap StringSlot Name - The name of the slot to automatically swap to during deployment
- cors Property Map
- A
cors
block as defined below. - default
Documents List<String> - The ordering of default documents to load, if an address isn't specified.
- dotnet
Framework StringVersion - The version of the .NET framework's CLR used in this App Service Slot. Possible values are
v2.0
(which will use the latest version of the .NET framework for the .NET CLR v2 - currently.net 3.5
),v4.0
(which corresponds to the latest version of the .NET CLR v4 - which at the time of writing is.net 4.7.1
),v5.0
andv6.0
. For more information on which .NET CLR version to use based on the .NET framework you're targeting - please see this table. Defaults tov4.0
. - ftps
State String - State of FTP / FTPS service for this App Service Slot. Possible values include:
AllAllowed
,FtpsOnly
andDisabled
. - health
Check StringPath - The health check path to be pinged by App Service Slot. For more information - please see App Service health check announcement.
- http2Enabled Boolean
- Is HTTP2 Enabled on this App Service? Defaults to
false
. - ip
Restrictions List<Property Map> A list of objects representing ip restrictions as defined below.
NOTE User has to explicitly set
ip_restriction
to empty slice ([]
) to remove it.- java
Container String - The Java Container to use. If specified
java_version
andjava_container_version
must also be specified. Possible values areJAVA
,JETTY
, andTOMCAT
. - java
Container StringVersion - The version of the Java Container to use. If specified
java_version
andjava_container
must also be specified. - java
Version String - The version of Java to use. If specified
java_container
andjava_container_version
must also be specified. Possible values are1.7
,1.8
, and11
and their specific versions - except for Java 11 (e.g.1.7.0_80
,1.8.0_181
,11
) - linux
Fx StringVersion Linux App Framework and version for the App Service Slot. Possible options are a Docker container (
DOCKER|<user/image:tag>
), a base-64 encoded Docker Compose file (COMPOSE|${filebase64("compose.yml")}
) or a base-64 encoded Kubernetes Manifest (KUBE|${filebase64("kubernetes.yml")}
).NOTE: To set this property the App Service Plan to which the App belongs must be configured with
kind = "Linux"
, andreserved = true
or the API will reject any value supplied.- local
Mysql BooleanEnabled Is "MySQL In App" Enabled? This runs a local MySQL instance with your app and shares resources from the App Service plan.
NOTE: MySQL In App is not intended for production environments and will not scale beyond a single instance. Instead you may wish to use Azure Database for MySQL.
- managed
Pipeline StringMode - The Managed Pipeline Mode. Possible values are
Integrated
andClassic
. Defaults toIntegrated
. - min
Tls StringVersion - The minimum supported TLS version for the app service. Possible values are
1.0
,1.1
, and1.2
. Defaults to1.2
for new app services. - number
Of NumberWorkers - The scaled number of workers (for per site scaling) of this App Service Slot. Requires that
per_site_scaling
is enabled on theazure.appservice.Plan
. For more information - please see Microsoft documentation on high-density hosting. - php
Version String - The version of PHP to use in this App Service Slot. Possible values are
5.5
,5.6
,7.0
,7.1
,7.2
,7.3
, and7.4
. - python
Version String - The version of Python to use in this App Service Slot. Possible values are
2.7
and3.4
. - remote
Debugging BooleanEnabled - Is Remote Debugging Enabled? Defaults to
false
. - remote
Debugging StringVersion - Which version of Visual Studio should the Remote Debugger be compatible with? Possible values are
VS2017
,VS2019
, andVS2022
. - scm
Ip List<Property Map>Restrictions A list of
scm_ip_restriction
objects representing IP restrictions as defined below.NOTE User has to explicitly set
scm_ip_restriction
to empty slice ([]
) to remove it.- scm
Type String - The type of Source Control enabled for this App Service Slot. Defaults to
None
. Possible values are:BitbucketGit
,BitbucketHg
,CodePlexGit
,CodePlexHg
,Dropbox
,ExternalGit
,ExternalHg
,GitHub
,LocalGit
,None
,OneDrive
,Tfs
,VSO
, andVSTSRM
- scm
Use BooleanMain Ip Restriction IP security restrictions for scm to use main. Defaults to
false
.NOTE Any
scm_ip_restriction
blocks configured are ignored by the service whenscm_use_main_ip_restriction
is set totrue
. Any scm restrictions will become active if this is subsequently set tofalse
or removed.- use32Bit
Worker BooleanProcess Should the App Service Slot run in 32 bit mode, rather than 64 bit mode?
NOTE: when using an App Service Plan in the
Free
orShared
Tiersuse_32_bit_worker_process
must be set totrue
.- vnet
Route BooleanAll Enabled - websockets
Enabled Boolean - Should WebSockets be enabled?
- windows
Fx StringVersion The Windows Docker container image (
DOCKER|<user/image:tag>
)Additional examples of how to run Containers via the
azure.appservice.Slot
resource can be found in the./examples/app-service
directory within the GitHub Repository.
SlotSiteConfigCors, SlotSiteConfigCorsArgs
- Allowed
Origins List<string> - A list of origins which should be able to make cross-origin calls.
*
can be used to allow all calls. - Support
Credentials bool - Are credentials supported?
- Allowed
Origins []string - A list of origins which should be able to make cross-origin calls.
*
can be used to allow all calls. - Support
Credentials bool - Are credentials supported?
- allowed
Origins List<String> - A list of origins which should be able to make cross-origin calls.
*
can be used to allow all calls. - support
Credentials Boolean - Are credentials supported?
- allowed
Origins string[] - A list of origins which should be able to make cross-origin calls.
*
can be used to allow all calls. - support
Credentials boolean - Are credentials supported?
- allowed_
origins Sequence[str] - A list of origins which should be able to make cross-origin calls.
*
can be used to allow all calls. - support_
credentials bool - Are credentials supported?
- allowed
Origins List<String> - A list of origins which should be able to make cross-origin calls.
*
can be used to allow all calls. - support
Credentials Boolean - Are credentials supported?
SlotSiteConfigIpRestriction, SlotSiteConfigIpRestrictionArgs
- Action string
- Does this restriction
Allow
orDeny
access for this IP range. Defaults toAllow
. - Headers
Slot
Site Config Ip Restriction Headers - The
headers
block for this specificip_restriction
as defined below. The HTTP header filters are evaluated after the rule itself and both conditions must be true for the rule to apply. - Ip
Address string - The IP Address used for this IP Restriction in CIDR notation.
- Name string
- The name for this IP Restriction.
- Priority int
- The priority for this IP Restriction. Restrictions are enforced in priority order. By default, priority is set to 65000 if not specified.
- Service
Tag string - The Service Tag used for this IP Restriction.
- Virtual
Network stringSubnet Id The Virtual Network Subnet ID used for this IP Restriction.
NOTE: One of either
ip_address
,service_tag
orvirtual_network_subnet_id
must be specified
- Action string
- Does this restriction
Allow
orDeny
access for this IP range. Defaults toAllow
. - Headers
Slot
Site Config Ip Restriction Headers - The
headers
block for this specificip_restriction
as defined below. The HTTP header filters are evaluated after the rule itself and both conditions must be true for the rule to apply. - Ip
Address string - The IP Address used for this IP Restriction in CIDR notation.
- Name string
- The name for this IP Restriction.
- Priority int
- The priority for this IP Restriction. Restrictions are enforced in priority order. By default, priority is set to 65000 if not specified.
- Service
Tag string - The Service Tag used for this IP Restriction.
- Virtual
Network stringSubnet Id The Virtual Network Subnet ID used for this IP Restriction.
NOTE: One of either
ip_address
,service_tag
orvirtual_network_subnet_id
must be specified
- action String
- Does this restriction
Allow
orDeny
access for this IP range. Defaults toAllow
. - headers
Slot
Site Config Ip Restriction Headers - The
headers
block for this specificip_restriction
as defined below. The HTTP header filters are evaluated after the rule itself and both conditions must be true for the rule to apply. - ip
Address String - The IP Address used for this IP Restriction in CIDR notation.
- name String
- The name for this IP Restriction.
- priority Integer
- The priority for this IP Restriction. Restrictions are enforced in priority order. By default, priority is set to 65000 if not specified.
- service
Tag String - The Service Tag used for this IP Restriction.
- virtual
Network StringSubnet Id The Virtual Network Subnet ID used for this IP Restriction.
NOTE: One of either
ip_address
,service_tag
orvirtual_network_subnet_id
must be specified
- action string
- Does this restriction
Allow
orDeny
access for this IP range. Defaults toAllow
. - headers
Slot
Site Config Ip Restriction Headers - The
headers
block for this specificip_restriction
as defined below. The HTTP header filters are evaluated after the rule itself and both conditions must be true for the rule to apply. - ip
Address string - The IP Address used for this IP Restriction in CIDR notation.
- name string
- The name for this IP Restriction.
- priority number
- The priority for this IP Restriction. Restrictions are enforced in priority order. By default, priority is set to 65000 if not specified.
- service
Tag string - The Service Tag used for this IP Restriction.
- virtual
Network stringSubnet Id The Virtual Network Subnet ID used for this IP Restriction.
NOTE: One of either
ip_address
,service_tag
orvirtual_network_subnet_id
must be specified
- action str
- Does this restriction
Allow
orDeny
access for this IP range. Defaults toAllow
. - headers
Slot
Site Config Ip Restriction Headers - The
headers
block for this specificip_restriction
as defined below. The HTTP header filters are evaluated after the rule itself and both conditions must be true for the rule to apply. - ip_
address str - The IP Address used for this IP Restriction in CIDR notation.
- name str
- The name for this IP Restriction.
- priority int
- The priority for this IP Restriction. Restrictions are enforced in priority order. By default, priority is set to 65000 if not specified.
- service_
tag str - The Service Tag used for this IP Restriction.
- virtual_
network_ strsubnet_ id The Virtual Network Subnet ID used for this IP Restriction.
NOTE: One of either
ip_address
,service_tag
orvirtual_network_subnet_id
must be specified
- action String
- Does this restriction
Allow
orDeny
access for this IP range. Defaults toAllow
. - headers Property Map
- The
headers
block for this specificip_restriction
as defined below. The HTTP header filters are evaluated after the rule itself and both conditions must be true for the rule to apply. - ip
Address String - The IP Address used for this IP Restriction in CIDR notation.
- name String
- The name for this IP Restriction.
- priority Number
- The priority for this IP Restriction. Restrictions are enforced in priority order. By default, priority is set to 65000 if not specified.
- service
Tag String - The Service Tag used for this IP Restriction.
- virtual
Network StringSubnet Id The Virtual Network Subnet ID used for this IP Restriction.
NOTE: One of either
ip_address
,service_tag
orvirtual_network_subnet_id
must be specified
SlotSiteConfigIpRestrictionHeaders, SlotSiteConfigIpRestrictionHeadersArgs
- XAzure
Fdids List<string> - A list of allowed Azure FrontDoor IDs in UUID notation with a maximum of 8.
- XFd
Health stringProbe - A list to allow the Azure FrontDoor health probe header. Only allowed value is "1".
- XForwarded
Fors List<string> - A list of allowed 'X-Forwarded-For' IPs in CIDR notation with a maximum of 8
- XForwarded
Hosts List<string> - A list of allowed 'X-Forwarded-Host' domains with a maximum of 8.
- XAzure
Fdids []string - A list of allowed Azure FrontDoor IDs in UUID notation with a maximum of 8.
- XFd
Health stringProbe - A list to allow the Azure FrontDoor health probe header. Only allowed value is "1".
- XForwarded
Fors []string - A list of allowed 'X-Forwarded-For' IPs in CIDR notation with a maximum of 8
- XForwarded
Hosts []string - A list of allowed 'X-Forwarded-Host' domains with a maximum of 8.
- x
Azure List<String>Fdids - A list of allowed Azure FrontDoor IDs in UUID notation with a maximum of 8.
- x
Fd StringHealth Probe - A list to allow the Azure FrontDoor health probe header. Only allowed value is "1".
- x
Forwarded List<String>Fors - A list of allowed 'X-Forwarded-For' IPs in CIDR notation with a maximum of 8
- x
Forwarded List<String>Hosts - A list of allowed 'X-Forwarded-Host' domains with a maximum of 8.
- x
Azure string[]Fdids - A list of allowed Azure FrontDoor IDs in UUID notation with a maximum of 8.
- x
Fd stringHealth Probe - A list to allow the Azure FrontDoor health probe header. Only allowed value is "1".
- x
Forwarded string[]Fors - A list of allowed 'X-Forwarded-For' IPs in CIDR notation with a maximum of 8
- x
Forwarded string[]Hosts - A list of allowed 'X-Forwarded-Host' domains with a maximum of 8.
- x_
azure_ Sequence[str]fdids - A list of allowed Azure FrontDoor IDs in UUID notation with a maximum of 8.
- x_
fd_ strhealth_ probe - A list to allow the Azure FrontDoor health probe header. Only allowed value is "1".
- x_
forwarded_ Sequence[str]fors - A list of allowed 'X-Forwarded-For' IPs in CIDR notation with a maximum of 8
- x_
forwarded_ Sequence[str]hosts - A list of allowed 'X-Forwarded-Host' domains with a maximum of 8.
- x
Azure List<String>Fdids - A list of allowed Azure FrontDoor IDs in UUID notation with a maximum of 8.
- x
Fd StringHealth Probe - A list to allow the Azure FrontDoor health probe header. Only allowed value is "1".
- x
Forwarded List<String>Fors - A list of allowed 'X-Forwarded-For' IPs in CIDR notation with a maximum of 8
- x
Forwarded List<String>Hosts - A list of allowed 'X-Forwarded-Host' domains with a maximum of 8.
SlotSiteConfigScmIpRestriction, SlotSiteConfigScmIpRestrictionArgs
- Action string
- Allow or Deny access for this IP range. Defaults to
Allow
. - Headers
Slot
Site Config Scm Ip Restriction Headers - The
headers
block for this specificscm_ip_restriction
as defined below. - Ip
Address string - The IP Address used for this IP Restriction in CIDR notation.
- Name string
- The name for this IP Restriction.
- Priority int
- The priority for this IP Restriction. Restrictions are enforced in priority order. By default, priority is set to 65000 if not specified.
- Service
Tag string - The Service Tag used for this IP Restriction.
- Virtual
Network stringSubnet Id The Virtual Network Subnet ID used for this IP Restriction.
NOTE: One of either
ip_address
,service_tag
orvirtual_network_subnet_id
must be specified
- Action string
- Allow or Deny access for this IP range. Defaults to
Allow
. - Headers
Slot
Site Config Scm Ip Restriction Headers - The
headers
block for this specificscm_ip_restriction
as defined below. - Ip
Address string - The IP Address used for this IP Restriction in CIDR notation.
- Name string
- The name for this IP Restriction.
- Priority int
- The priority for this IP Restriction. Restrictions are enforced in priority order. By default, priority is set to 65000 if not specified.
- Service
Tag string - The Service Tag used for this IP Restriction.
- Virtual
Network stringSubnet Id The Virtual Network Subnet ID used for this IP Restriction.
NOTE: One of either
ip_address
,service_tag
orvirtual_network_subnet_id
must be specified
- action String
- Allow or Deny access for this IP range. Defaults to
Allow
. - headers
Slot
Site Config Scm Ip Restriction Headers - The
headers
block for this specificscm_ip_restriction
as defined below. - ip
Address String - The IP Address used for this IP Restriction in CIDR notation.
- name String
- The name for this IP Restriction.
- priority Integer
- The priority for this IP Restriction. Restrictions are enforced in priority order. By default, priority is set to 65000 if not specified.
- service
Tag String - The Service Tag used for this IP Restriction.
- virtual
Network StringSubnet Id The Virtual Network Subnet ID used for this IP Restriction.
NOTE: One of either
ip_address
,service_tag
orvirtual_network_subnet_id
must be specified
- action string
- Allow or Deny access for this IP range. Defaults to
Allow
. - headers
Slot
Site Config Scm Ip Restriction Headers - The
headers
block for this specificscm_ip_restriction
as defined below. - ip
Address string - The IP Address used for this IP Restriction in CIDR notation.
- name string
- The name for this IP Restriction.
- priority number
- The priority for this IP Restriction. Restrictions are enforced in priority order. By default, priority is set to 65000 if not specified.
- service
Tag string - The Service Tag used for this IP Restriction.
- virtual
Network stringSubnet Id The Virtual Network Subnet ID used for this IP Restriction.
NOTE: One of either
ip_address
,service_tag
orvirtual_network_subnet_id
must be specified
- action str
- Allow or Deny access for this IP range. Defaults to
Allow
. - headers
Slot
Site Config Scm Ip Restriction Headers - The
headers
block for this specificscm_ip_restriction
as defined below. - ip_
address str - The IP Address used for this IP Restriction in CIDR notation.
- name str
- The name for this IP Restriction.
- priority int
- The priority for this IP Restriction. Restrictions are enforced in priority order. By default, priority is set to 65000 if not specified.
- service_
tag str - The Service Tag used for this IP Restriction.
- virtual_
network_ strsubnet_ id The Virtual Network Subnet ID used for this IP Restriction.
NOTE: One of either
ip_address
,service_tag
orvirtual_network_subnet_id
must be specified
- action String
- Allow or Deny access for this IP range. Defaults to
Allow
. - headers Property Map
- The
headers
block for this specificscm_ip_restriction
as defined below. - ip
Address String - The IP Address used for this IP Restriction in CIDR notation.
- name String
- The name for this IP Restriction.
- priority Number
- The priority for this IP Restriction. Restrictions are enforced in priority order. By default, priority is set to 65000 if not specified.
- service
Tag String - The Service Tag used for this IP Restriction.
- virtual
Network StringSubnet Id The Virtual Network Subnet ID used for this IP Restriction.
NOTE: One of either
ip_address
,service_tag
orvirtual_network_subnet_id
must be specified
SlotSiteConfigScmIpRestrictionHeaders, SlotSiteConfigScmIpRestrictionHeadersArgs
- XAzure
Fdids List<string> - A list of allowed Azure FrontDoor IDs in UUID notation with a maximum of 8.
- XFd
Health stringProbe - A list to allow the Azure FrontDoor health probe header. Only allowed value is "1".
- XForwarded
Fors List<string> - A list of allowed 'X-Forwarded-For' IPs in CIDR notation with a maximum of 8
- XForwarded
Hosts List<string> - A list of allowed 'X-Forwarded-Host' domains with a maximum of 8.
- XAzure
Fdids []string - A list of allowed Azure FrontDoor IDs in UUID notation with a maximum of 8.
- XFd
Health stringProbe - A list to allow the Azure FrontDoor health probe header. Only allowed value is "1".
- XForwarded
Fors []string - A list of allowed 'X-Forwarded-For' IPs in CIDR notation with a maximum of 8
- XForwarded
Hosts []string - A list of allowed 'X-Forwarded-Host' domains with a maximum of 8.
- x
Azure List<String>Fdids - A list of allowed Azure FrontDoor IDs in UUID notation with a maximum of 8.
- x
Fd StringHealth Probe - A list to allow the Azure FrontDoor health probe header. Only allowed value is "1".
- x
Forwarded List<String>Fors - A list of allowed 'X-Forwarded-For' IPs in CIDR notation with a maximum of 8
- x
Forwarded List<String>Hosts - A list of allowed 'X-Forwarded-Host' domains with a maximum of 8.
- x
Azure string[]Fdids - A list of allowed Azure FrontDoor IDs in UUID notation with a maximum of 8.
- x
Fd stringHealth Probe - A list to allow the Azure FrontDoor health probe header. Only allowed value is "1".
- x
Forwarded string[]Fors - A list of allowed 'X-Forwarded-For' IPs in CIDR notation with a maximum of 8
- x
Forwarded string[]Hosts - A list of allowed 'X-Forwarded-Host' domains with a maximum of 8.
- x_
azure_ Sequence[str]fdids - A list of allowed Azure FrontDoor IDs in UUID notation with a maximum of 8.
- x_
fd_ strhealth_ probe - A list to allow the Azure FrontDoor health probe header. Only allowed value is "1".
- x_
forwarded_ Sequence[str]fors - A list of allowed 'X-Forwarded-For' IPs in CIDR notation with a maximum of 8
- x_
forwarded_ Sequence[str]hosts - A list of allowed 'X-Forwarded-Host' domains with a maximum of 8.
- x
Azure List<String>Fdids - A list of allowed Azure FrontDoor IDs in UUID notation with a maximum of 8.
- x
Fd StringHealth Probe - A list to allow the Azure FrontDoor health probe header. Only allowed value is "1".
- x
Forwarded List<String>Fors - A list of allowed 'X-Forwarded-For' IPs in CIDR notation with a maximum of 8
- x
Forwarded List<String>Hosts - A list of allowed 'X-Forwarded-Host' domains with a maximum of 8.
SlotSiteCredential, SlotSiteCredentialArgs
SlotStorageAccount, SlotStorageAccountArgs
- Access
Key string - The access key for the storage account.
- Account
Name string - The name of the storage account.
- Name string
- The name of the storage account identifier.
- string
- The name of the file share (container name, for Blob storage).
- Type string
- The type of storage. Possible values are
AzureBlob
andAzureFiles
. - Mount
Path string - The path to mount the storage within the site's runtime environment.
- Access
Key string - The access key for the storage account.
- Account
Name string - The name of the storage account.
- Name string
- The name of the storage account identifier.
- string
- The name of the file share (container name, for Blob storage).
- Type string
- The type of storage. Possible values are
AzureBlob
andAzureFiles
. - Mount
Path string - The path to mount the storage within the site's runtime environment.
- access
Key String - The access key for the storage account.
- account
Name String - The name of the storage account.
- name String
- The name of the storage account identifier.
- String
- The name of the file share (container name, for Blob storage).
- type String
- The type of storage. Possible values are
AzureBlob
andAzureFiles
. - mount
Path String - The path to mount the storage within the site's runtime environment.
- access
Key string - The access key for the storage account.
- account
Name string - The name of the storage account.
- name string
- The name of the storage account identifier.
- string
- The name of the file share (container name, for Blob storage).
- type string
- The type of storage. Possible values are
AzureBlob
andAzureFiles
. - mount
Path string - The path to mount the storage within the site's runtime environment.
- access_
key str - The access key for the storage account.
- account_
name str - The name of the storage account.
- name str
- The name of the storage account identifier.
- str
- The name of the file share (container name, for Blob storage).
- type str
- The type of storage. Possible values are
AzureBlob
andAzureFiles
. - mount_
path str - The path to mount the storage within the site's runtime environment.
- access
Key String - The access key for the storage account.
- account
Name String - The name of the storage account.
- name String
- The name of the storage account identifier.
- String
- The name of the file share (container name, for Blob storage).
- type String
- The type of storage. Possible values are
AzureBlob
andAzureFiles
. - mount
Path String - The path to mount the storage within the site's runtime environment.
Import
App Service Slots can be imported using the resource id
, e.g.
$ pulumi import azure:appservice/slot:Slot instance1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Web/sites/website1/slots/instance1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.