FunctionAppSlot

class FunctionAppSlot : KotlinCustomResource

Manages a Function App deployment Slot. !>NOTE: This resource has been deprecated in version 3.0 of the AzureRM provider and will be removed in version 4.0. Please use azure.appservice.LinuxFunctionAppSlot resources instead.

Example Usage

With App Service Plan)

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.appservice.Plan;
import com.pulumi.azure.appservice.PlanArgs;
import com.pulumi.azure.appservice.inputs.PlanSkuArgs;
import com.pulumi.azure.appservice.FunctionApp;
import com.pulumi.azure.appservice.FunctionAppArgs;
import com.pulumi.azure.appservice.FunctionAppSlot;
import com.pulumi.azure.appservice.FunctionAppSlotArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.accountTier("Standard")
.accountReplicationType("LRS")
.build());
var examplePlan = new Plan("examplePlan", PlanArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.sku(PlanSkuArgs.builder()
.tier("Standard")
.size("S1")
.build())
.build());
var exampleFunctionApp = new FunctionApp("exampleFunctionApp", FunctionAppArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.appServicePlanId(examplePlan.id())
.storageAccountName(exampleAccount.name())
.storageAccountAccessKey(exampleAccount.primaryAccessKey())
.build());
var exampleFunctionAppSlot = new FunctionAppSlot("exampleFunctionAppSlot", FunctionAppSlotArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.appServicePlanId(examplePlan.id())
.functionAppName(exampleFunctionApp.name())
.storageAccountName(exampleAccount.name())
.storageAccountAccessKey(exampleAccount.primaryAccessKey())
.build());
}
}

Import

Function Apps Deployment Slots can be imported using the resource id, e.g.

$ pulumi import azure:appservice/functionAppSlot:FunctionAppSlot functionapp1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Web/sites/functionapp1/slots/staging

Properties

Link copied to clipboard

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

Link copied to clipboard
val appSettings: Output<Map<String, String>>

A key-value pair of App Settings.

Link copied to clipboard

An auth_settings block as defined below.

Link copied to clipboard

A connection_string block as defined below.

Link copied to clipboard

The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan.

Link copied to clipboard
val defaultHostname: Output<String>

The default hostname associated with the Function App - such as mysite.azurewebsites.net

Link copied to clipboard

Should the built-in logging of the Function App be enabled? Defaults to true.

Link copied to clipboard
val enabled: Output<Boolean>?

Is the Function App enabled? Defaults to true.

Link copied to clipboard
val functionAppName: Output<String>

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

Link copied to clipboard
val httpsOnly: Output<Boolean>?

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

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

An identity block as defined below.

Link copied to clipboard
val kind: Output<String>

The Function App kind - such as functionapp,linux,container

Link copied to clipboard
val location: Output<String>

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

Link copied to clipboard
val name: Output<String>

Specifies the name of the Function App. Changing this forces a new resource to be created.

Link copied to clipboard
val osType: Output<String>?

A string indicating the Operating System type for this function app. The only possible value is linux. Changing this forces a new resource to be created.

Link copied to clipboard

A comma separated list of outbound IP addresses - such as 52.23.25.3,52.143.43.12

Link copied to clipboard

A comma separated list of outbound IP addresses - such as 52.23.25.3,52.143.43.12,52.143.43.17 - not all of which are necessarily in use. Superset of outbound_ip_addresses.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The name of the resource group in which to create the Function App Slot. Changing this forces a new resource to be created.

Link copied to clipboard

A site_config object as defined below.

Link copied to clipboard

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

Link copied to clipboard

The access key which will be used to access the backend storage account for the Function App.

Link copied to clipboard

The backend storage account name which will be used by the Function App (such as the dashboard, logs). Changing this forces a new resource to be created.

Link copied to clipboard
val tags: Output<Map<String, String>>?

A mapping of tags to assign to the resource.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val version: Output<String>?

The runtime version associated with the Function App. Defaults to ~1.