Azure Classic

v5.25.0 published on Thursday, Nov 24, 2022 by Pulumi

FunctionAppActiveSlot

Manages a Function App Active Slot.

Example Usage

Windows Function App

using System.Collections.Generic;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
    {
        Location = "West Europe",
    });

    var exampleAccount = new Azure.Storage.Account("exampleAccount", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        AccountTier = "Standard",
        AccountReplicationType = "LRS",
    });

    var exampleServicePlan = new Azure.AppService.ServicePlan("exampleServicePlan", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        OsType = "Windows",
        SkuName = "Y1",
    });

    var exampleWindowsFunctionApp = new Azure.AppService.WindowsFunctionApp("exampleWindowsFunctionApp", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        StorageAccountName = exampleAccount.Name,
        ServicePlanId = exampleServicePlan.Id,
        SiteConfig = ,
    });

    var exampleWindowsFunctionAppSlot = new Azure.AppService.WindowsFunctionAppSlot("exampleWindowsFunctionAppSlot", new()
    {
        FunctionAppId = exampleWindowsFunctionApp.Id,
        StorageAccountName = exampleAccount.Name,
        SiteConfig = ,
    });

    var exampleFunctionAppActiveSlot = new Azure.AppService.FunctionAppActiveSlot("exampleFunctionAppActiveSlot", new()
    {
        SlotId = exampleWindowsFunctionAppSlot.Id,
    });

});
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appservice"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleAccount, err := storage.NewAccount(ctx, "exampleAccount", &storage.AccountArgs{
			ResourceGroupName:      exampleResourceGroup.Name,
			Location:               exampleResourceGroup.Location,
			AccountTier:            pulumi.String("Standard"),
			AccountReplicationType: pulumi.String("LRS"),
		})
		if err != nil {
			return err
		}
		exampleServicePlan, err := appservice.NewServicePlan(ctx, "exampleServicePlan", &appservice.ServicePlanArgs{
			ResourceGroupName: exampleResourceGroup.Name,
			Location:          exampleResourceGroup.Location,
			OsType:            pulumi.String("Windows"),
			SkuName:           pulumi.String("Y1"),
		})
		if err != nil {
			return err
		}
		exampleWindowsFunctionApp, err := appservice.NewWindowsFunctionApp(ctx, "exampleWindowsFunctionApp", &appservice.WindowsFunctionAppArgs{
			ResourceGroupName:  exampleResourceGroup.Name,
			Location:           exampleResourceGroup.Location,
			StorageAccountName: exampleAccount.Name,
			ServicePlanId:      exampleServicePlan.ID(),
			SiteConfig:         nil,
		})
		if err != nil {
			return err
		}
		exampleWindowsFunctionAppSlot, err := appservice.NewWindowsFunctionAppSlot(ctx, "exampleWindowsFunctionAppSlot", &appservice.WindowsFunctionAppSlotArgs{
			FunctionAppId:      exampleWindowsFunctionApp.ID(),
			StorageAccountName: exampleAccount.Name,
			SiteConfig:         nil,
		})
		if err != nil {
			return err
		}
		_, err = appservice.NewFunctionAppActiveSlot(ctx, "exampleFunctionAppActiveSlot", &appservice.FunctionAppActiveSlotArgs{
			SlotId: exampleWindowsFunctionAppSlot.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
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.ServicePlan;
import com.pulumi.azure.appservice.ServicePlanArgs;
import com.pulumi.azure.appservice.WindowsFunctionApp;
import com.pulumi.azure.appservice.WindowsFunctionAppArgs;
import com.pulumi.azure.appservice.inputs.WindowsFunctionAppSiteConfigArgs;
import com.pulumi.azure.appservice.WindowsFunctionAppSlot;
import com.pulumi.azure.appservice.WindowsFunctionAppSlotArgs;
import com.pulumi.azure.appservice.inputs.WindowsFunctionAppSlotSiteConfigArgs;
import com.pulumi.azure.appservice.FunctionAppActiveSlot;
import com.pulumi.azure.appservice.FunctionAppActiveSlotArgs;
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 exampleServicePlan = new ServicePlan("exampleServicePlan", ServicePlanArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.location())
            .osType("Windows")
            .skuName("Y1")
            .build());

        var exampleWindowsFunctionApp = new WindowsFunctionApp("exampleWindowsFunctionApp", WindowsFunctionAppArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.location())
            .storageAccountName(exampleAccount.name())
            .servicePlanId(exampleServicePlan.id())
            .siteConfig()
            .build());

        var exampleWindowsFunctionAppSlot = new WindowsFunctionAppSlot("exampleWindowsFunctionAppSlot", WindowsFunctionAppSlotArgs.builder()        
            .functionAppId(exampleWindowsFunctionApp.id())
            .storageAccountName(exampleAccount.name())
            .siteConfig()
            .build());

        var exampleFunctionAppActiveSlot = new FunctionAppActiveSlot("exampleFunctionAppActiveSlot", FunctionAppActiveSlotArgs.builder()        
            .slotId(exampleWindowsFunctionAppSlot.id())
            .build());

    }
}
import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_account = azure.storage.Account("exampleAccount",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    account_tier="Standard",
    account_replication_type="LRS")
example_service_plan = azure.appservice.ServicePlan("exampleServicePlan",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    os_type="Windows",
    sku_name="Y1")
example_windows_function_app = azure.appservice.WindowsFunctionApp("exampleWindowsFunctionApp",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    storage_account_name=example_account.name,
    service_plan_id=example_service_plan.id,
    site_config=azure.appservice.WindowsFunctionAppSiteConfigArgs())
example_windows_function_app_slot = azure.appservice.WindowsFunctionAppSlot("exampleWindowsFunctionAppSlot",
    function_app_id=example_windows_function_app.id,
    storage_account_name=example_account.name,
    site_config=azure.appservice.WindowsFunctionAppSlotSiteConfigArgs())
example_function_app_active_slot = azure.appservice.FunctionAppActiveSlot("exampleFunctionAppActiveSlot", slot_id=example_windows_function_app_slot.id)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleAccount = new azure.storage.Account("exampleAccount", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    accountTier: "Standard",
    accountReplicationType: "LRS",
});
const exampleServicePlan = new azure.appservice.ServicePlan("exampleServicePlan", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    osType: "Windows",
    skuName: "Y1",
});
const exampleWindowsFunctionApp = new azure.appservice.WindowsFunctionApp("exampleWindowsFunctionApp", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    storageAccountName: exampleAccount.name,
    servicePlanId: exampleServicePlan.id,
    siteConfig: {},
});
const exampleWindowsFunctionAppSlot = new azure.appservice.WindowsFunctionAppSlot("exampleWindowsFunctionAppSlot", {
    functionAppId: exampleWindowsFunctionApp.id,
    storageAccountName: exampleAccount.name,
    siteConfig: {},
});
const exampleFunctionAppActiveSlot = new azure.appservice.FunctionAppActiveSlot("exampleFunctionAppActiveSlot", {slotId: exampleWindowsFunctionAppSlot.id});
resources:
  exampleResourceGroup:
    type: azure:core:ResourceGroup
    properties:
      location: West Europe
  exampleAccount:
    type: azure:storage:Account
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.location}
      accountTier: Standard
      accountReplicationType: LRS
  exampleServicePlan:
    type: azure:appservice:ServicePlan
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.location}
      osType: Windows
      skuName: Y1
  exampleWindowsFunctionApp:
    type: azure:appservice:WindowsFunctionApp
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.location}
      storageAccountName: ${exampleAccount.name}
      servicePlanId: ${exampleServicePlan.id}
      siteConfig: {}
  exampleWindowsFunctionAppSlot:
    type: azure:appservice:WindowsFunctionAppSlot
    properties:
      functionAppId: ${exampleWindowsFunctionApp.id}
      storageAccountName: ${exampleAccount.name}
      siteConfig: {}
  exampleFunctionAppActiveSlot:
    type: azure:appservice:FunctionAppActiveSlot
    properties:
      slotId: ${exampleWindowsFunctionAppSlot.id}

Linux Function App

using System.Collections.Generic;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
    {
        Location = "West Europe",
    });

    var exampleAccount = new Azure.Storage.Account("exampleAccount", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        AccountTier = "Standard",
        AccountReplicationType = "LRS",
    });

    var exampleServicePlan = new Azure.AppService.ServicePlan("exampleServicePlan", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        OsType = "Linux",
        SkuName = "Y1",
    });

    var exampleLinuxFunctionApp = new Azure.AppService.LinuxFunctionApp("exampleLinuxFunctionApp", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        ServicePlanId = exampleServicePlan.Id,
        StorageAccountName = exampleAccount.Name,
        SiteConfig = ,
    });

    var exampleLinuxFunctionAppSlot = new Azure.AppService.LinuxFunctionAppSlot("exampleLinuxFunctionAppSlot", new()
    {
        FunctionAppId = exampleLinuxFunctionApp.Name,
        StorageAccountName = exampleAccount.Name,
        SiteConfig = ,
    });

    var exampleFunctionAppActiveSlot = new Azure.AppService.FunctionAppActiveSlot("exampleFunctionAppActiveSlot", new()
    {
        SlotId = exampleLinuxFunctionAppSlot.Id,
    });

});
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appservice"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleAccount, err := storage.NewAccount(ctx, "exampleAccount", &storage.AccountArgs{
			ResourceGroupName:      exampleResourceGroup.Name,
			Location:               exampleResourceGroup.Location,
			AccountTier:            pulumi.String("Standard"),
			AccountReplicationType: pulumi.String("LRS"),
		})
		if err != nil {
			return err
		}
		exampleServicePlan, err := appservice.NewServicePlan(ctx, "exampleServicePlan", &appservice.ServicePlanArgs{
			ResourceGroupName: exampleResourceGroup.Name,
			Location:          exampleResourceGroup.Location,
			OsType:            pulumi.String("Linux"),
			SkuName:           pulumi.String("Y1"),
		})
		if err != nil {
			return err
		}
		exampleLinuxFunctionApp, err := appservice.NewLinuxFunctionApp(ctx, "exampleLinuxFunctionApp", &appservice.LinuxFunctionAppArgs{
			ResourceGroupName:  exampleResourceGroup.Name,
			Location:           exampleResourceGroup.Location,
			ServicePlanId:      exampleServicePlan.ID(),
			StorageAccountName: exampleAccount.Name,
			SiteConfig:         nil,
		})
		if err != nil {
			return err
		}
		exampleLinuxFunctionAppSlot, err := appservice.NewLinuxFunctionAppSlot(ctx, "exampleLinuxFunctionAppSlot", &appservice.LinuxFunctionAppSlotArgs{
			FunctionAppId:      exampleLinuxFunctionApp.Name,
			StorageAccountName: exampleAccount.Name,
			SiteConfig:         nil,
		})
		if err != nil {
			return err
		}
		_, err = appservice.NewFunctionAppActiveSlot(ctx, "exampleFunctionAppActiveSlot", &appservice.FunctionAppActiveSlotArgs{
			SlotId: exampleLinuxFunctionAppSlot.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
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.ServicePlan;
import com.pulumi.azure.appservice.ServicePlanArgs;
import com.pulumi.azure.appservice.LinuxFunctionApp;
import com.pulumi.azure.appservice.LinuxFunctionAppArgs;
import com.pulumi.azure.appservice.inputs.LinuxFunctionAppSiteConfigArgs;
import com.pulumi.azure.appservice.LinuxFunctionAppSlot;
import com.pulumi.azure.appservice.LinuxFunctionAppSlotArgs;
import com.pulumi.azure.appservice.inputs.LinuxFunctionAppSlotSiteConfigArgs;
import com.pulumi.azure.appservice.FunctionAppActiveSlot;
import com.pulumi.azure.appservice.FunctionAppActiveSlotArgs;
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 exampleServicePlan = new ServicePlan("exampleServicePlan", ServicePlanArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.location())
            .osType("Linux")
            .skuName("Y1")
            .build());

        var exampleLinuxFunctionApp = new LinuxFunctionApp("exampleLinuxFunctionApp", LinuxFunctionAppArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.location())
            .servicePlanId(exampleServicePlan.id())
            .storageAccountName(exampleAccount.name())
            .siteConfig()
            .build());

        var exampleLinuxFunctionAppSlot = new LinuxFunctionAppSlot("exampleLinuxFunctionAppSlot", LinuxFunctionAppSlotArgs.builder()        
            .functionAppId(exampleLinuxFunctionApp.name())
            .storageAccountName(exampleAccount.name())
            .siteConfig()
            .build());

        var exampleFunctionAppActiveSlot = new FunctionAppActiveSlot("exampleFunctionAppActiveSlot", FunctionAppActiveSlotArgs.builder()        
            .slotId(exampleLinuxFunctionAppSlot.id())
            .build());

    }
}
import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_account = azure.storage.Account("exampleAccount",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    account_tier="Standard",
    account_replication_type="LRS")
example_service_plan = azure.appservice.ServicePlan("exampleServicePlan",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    os_type="Linux",
    sku_name="Y1")
example_linux_function_app = azure.appservice.LinuxFunctionApp("exampleLinuxFunctionApp",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    service_plan_id=example_service_plan.id,
    storage_account_name=example_account.name,
    site_config=azure.appservice.LinuxFunctionAppSiteConfigArgs())
example_linux_function_app_slot = azure.appservice.LinuxFunctionAppSlot("exampleLinuxFunctionAppSlot",
    function_app_id=example_linux_function_app.name,
    storage_account_name=example_account.name,
    site_config=azure.appservice.LinuxFunctionAppSlotSiteConfigArgs())
example_function_app_active_slot = azure.appservice.FunctionAppActiveSlot("exampleFunctionAppActiveSlot", slot_id=example_linux_function_app_slot.id)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleAccount = new azure.storage.Account("exampleAccount", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    accountTier: "Standard",
    accountReplicationType: "LRS",
});
const exampleServicePlan = new azure.appservice.ServicePlan("exampleServicePlan", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    osType: "Linux",
    skuName: "Y1",
});
const exampleLinuxFunctionApp = new azure.appservice.LinuxFunctionApp("exampleLinuxFunctionApp", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    servicePlanId: exampleServicePlan.id,
    storageAccountName: exampleAccount.name,
    siteConfig: {},
});
const exampleLinuxFunctionAppSlot = new azure.appservice.LinuxFunctionAppSlot("exampleLinuxFunctionAppSlot", {
    functionAppId: exampleLinuxFunctionApp.name,
    storageAccountName: exampleAccount.name,
    siteConfig: {},
});
const exampleFunctionAppActiveSlot = new azure.appservice.FunctionAppActiveSlot("exampleFunctionAppActiveSlot", {slotId: exampleLinuxFunctionAppSlot.id});
resources:
  exampleResourceGroup:
    type: azure:core:ResourceGroup
    properties:
      location: West Europe
  exampleAccount:
    type: azure:storage:Account
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.location}
      accountTier: Standard
      accountReplicationType: LRS
  exampleServicePlan:
    type: azure:appservice:ServicePlan
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.location}
      osType: Linux
      skuName: Y1
  exampleLinuxFunctionApp:
    type: azure:appservice:LinuxFunctionApp
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.location}
      servicePlanId: ${exampleServicePlan.id}
      storageAccountName: ${exampleAccount.name}
      siteConfig: {}
  exampleLinuxFunctionAppSlot:
    type: azure:appservice:LinuxFunctionAppSlot
    properties:
      functionAppId: ${exampleLinuxFunctionApp.name}
      storageAccountName: ${exampleAccount.name}
      siteConfig: {}
  exampleFunctionAppActiveSlot:
    type: azure:appservice:FunctionAppActiveSlot
    properties:
      slotId: ${exampleLinuxFunctionAppSlot.id}

Create FunctionAppActiveSlot Resource

new FunctionAppActiveSlot(name: string, args: FunctionAppActiveSlotArgs, opts?: CustomResourceOptions);
@overload
def FunctionAppActiveSlot(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          overwrite_network_config: Optional[bool] = None,
                          slot_id: Optional[str] = None)
@overload
def FunctionAppActiveSlot(resource_name: str,
                          args: FunctionAppActiveSlotArgs,
                          opts: Optional[ResourceOptions] = None)
func NewFunctionAppActiveSlot(ctx *Context, name string, args FunctionAppActiveSlotArgs, opts ...ResourceOption) (*FunctionAppActiveSlot, error)
public FunctionAppActiveSlot(string name, FunctionAppActiveSlotArgs args, CustomResourceOptions? opts = null)
public FunctionAppActiveSlot(String name, FunctionAppActiveSlotArgs args)
public FunctionAppActiveSlot(String name, FunctionAppActiveSlotArgs args, CustomResourceOptions options)
type: azure:appservice:FunctionAppActiveSlot
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args FunctionAppActiveSlotArgs
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 FunctionAppActiveSlotArgs
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 FunctionAppActiveSlotArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args FunctionAppActiveSlotArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args FunctionAppActiveSlotArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

FunctionAppActiveSlot 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 FunctionAppActiveSlot resource accepts the following input properties:

SlotId string

The ID of the Slot to swap with Production.

OverwriteNetworkConfig bool

The swap action should overwrite the Production slot's network configuration with the configuration from this slot. Defaults to true. Changing this forces a new resource to be created.

SlotId string

The ID of the Slot to swap with Production.

OverwriteNetworkConfig bool

The swap action should overwrite the Production slot's network configuration with the configuration from this slot. Defaults to true. Changing this forces a new resource to be created.

slotId String

The ID of the Slot to swap with Production.

overwriteNetworkConfig Boolean

The swap action should overwrite the Production slot's network configuration with the configuration from this slot. Defaults to true. Changing this forces a new resource to be created.

slotId string

The ID of the Slot to swap with Production.

overwriteNetworkConfig boolean

The swap action should overwrite the Production slot's network configuration with the configuration from this slot. Defaults to true. Changing this forces a new resource to be created.

slot_id str

The ID of the Slot to swap with Production.

overwrite_network_config bool

The swap action should overwrite the Production slot's network configuration with the configuration from this slot. Defaults to true. Changing this forces a new resource to be created.

slotId String

The ID of the Slot to swap with Production.

overwriteNetworkConfig Boolean

The swap action should overwrite the Production slot's network configuration with the configuration from this slot. Defaults to true. Changing this forces a new resource to be created.

Outputs

All input properties are implicitly available as output properties. Additionally, the FunctionAppActiveSlot resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

LastSuccessfulSwap string

The timestamp of the last successful swap with Production

Id string

The provider-assigned unique ID for this managed resource.

LastSuccessfulSwap string

The timestamp of the last successful swap with Production

id String

The provider-assigned unique ID for this managed resource.

lastSuccessfulSwap String

The timestamp of the last successful swap with Production

id string

The provider-assigned unique ID for this managed resource.

lastSuccessfulSwap string

The timestamp of the last successful swap with Production

id str

The provider-assigned unique ID for this managed resource.

last_successful_swap str

The timestamp of the last successful swap with Production

id String

The provider-assigned unique ID for this managed resource.

lastSuccessfulSwap String

The timestamp of the last successful swap with Production

Look up Existing FunctionAppActiveSlot Resource

Get an existing FunctionAppActiveSlot 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?: FunctionAppActiveSlotState, opts?: CustomResourceOptions): FunctionAppActiveSlot
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        last_successful_swap: Optional[str] = None,
        overwrite_network_config: Optional[bool] = None,
        slot_id: Optional[str] = None) -> FunctionAppActiveSlot
func GetFunctionAppActiveSlot(ctx *Context, name string, id IDInput, state *FunctionAppActiveSlotState, opts ...ResourceOption) (*FunctionAppActiveSlot, error)
public static FunctionAppActiveSlot Get(string name, Input<string> id, FunctionAppActiveSlotState? state, CustomResourceOptions? opts = null)
public static FunctionAppActiveSlot get(String name, Output<String> id, FunctionAppActiveSlotState 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.
The following state arguments are supported:
LastSuccessfulSwap string

The timestamp of the last successful swap with Production

OverwriteNetworkConfig bool

The swap action should overwrite the Production slot's network configuration with the configuration from this slot. Defaults to true. Changing this forces a new resource to be created.

SlotId string

The ID of the Slot to swap with Production.

LastSuccessfulSwap string

The timestamp of the last successful swap with Production

OverwriteNetworkConfig bool

The swap action should overwrite the Production slot's network configuration with the configuration from this slot. Defaults to true. Changing this forces a new resource to be created.

SlotId string

The ID of the Slot to swap with Production.

lastSuccessfulSwap String

The timestamp of the last successful swap with Production

overwriteNetworkConfig Boolean

The swap action should overwrite the Production slot's network configuration with the configuration from this slot. Defaults to true. Changing this forces a new resource to be created.

slotId String

The ID of the Slot to swap with Production.

lastSuccessfulSwap string

The timestamp of the last successful swap with Production

overwriteNetworkConfig boolean

The swap action should overwrite the Production slot's network configuration with the configuration from this slot. Defaults to true. Changing this forces a new resource to be created.

slotId string

The ID of the Slot to swap with Production.

last_successful_swap str

The timestamp of the last successful swap with Production

overwrite_network_config bool

The swap action should overwrite the Production slot's network configuration with the configuration from this slot. Defaults to true. Changing this forces a new resource to be created.

slot_id str

The ID of the Slot to swap with Production.

lastSuccessfulSwap String

The timestamp of the last successful swap with Production

overwriteNetworkConfig Boolean

The swap action should overwrite the Production slot's network configuration with the configuration from this slot. Defaults to true. Changing this forces a new resource to be created.

slotId String

The ID of the Slot to swap with Production.

Import

a Function App Active Slot can be imported using the resource id, e.g.

 $ pulumi import azure:appservice/functionAppActiveSlot:FunctionAppActiveSlot example "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/sites/site1"

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.