Function App Slot Args
data class FunctionAppSlotArgs(val appServicePlanId: Output<String>? = null, val appSettings: Output<Map<String, String>>? = null, val authSettings: Output<FunctionAppSlotAuthSettingsArgs>? = null, val connectionStrings: Output<List<FunctionAppSlotConnectionStringArgs>>? = null, val dailyMemoryTimeQuota: Output<Int>? = null, val enableBuiltinLogging: Output<Boolean>? = null, val enabled: Output<Boolean>? = null, val functionAppName: Output<String>? = null, val httpsOnly: Output<Boolean>? = null, val identity: Output<FunctionAppSlotIdentityArgs>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val osType: Output<String>? = null, val resourceGroupName: Output<String>? = null, val siteConfig: Output<FunctionAppSlotSiteConfigArgs>? = null, val storageAccountAccessKey: Output<String>? = null, val storageAccountName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val version: Output<String>? = null) : ConvertibleToJava<FunctionAppSlotArgs>
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
Constructors
Link copied to clipboard
fun FunctionAppSlotArgs(appServicePlanId: Output<String>? = null, appSettings: Output<Map<String, String>>? = null, authSettings: Output<FunctionAppSlotAuthSettingsArgs>? = null, connectionStrings: Output<List<FunctionAppSlotConnectionStringArgs>>? = null, dailyMemoryTimeQuota: Output<Int>? = null, enableBuiltinLogging: Output<Boolean>? = null, enabled: Output<Boolean>? = null, functionAppName: Output<String>? = null, httpsOnly: Output<Boolean>? = null, identity: Output<FunctionAppSlotIdentityArgs>? = null, location: Output<String>? = null, name: Output<String>? = null, osType: Output<String>? = null, resourceGroupName: Output<String>? = null, siteConfig: Output<FunctionAppSlotSiteConfigArgs>? = null, storageAccountAccessKey: Output<String>? = null, storageAccountName: Output<String>? = null, tags: Output<Map<String, String>>? = null, version: Output<String>? = null)