ActiveSlot

class ActiveSlot : KotlinCustomResource

Promotes an App Service Slot to Production within an App Service. !>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.WebAppActiveSlot resource instead.

Note: When using Slots - the app_settings, connection_string and site_config blocks on the azure.appservice.AppService resource will be overwritten when promoting a Slot using the azure.appservice.ActiveSlot resource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.random.RandomId;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.appservice.Plan;
import com.pulumi.azure.appservice.AppService;
import com.pulumi.azure.appservice.Slot;
import com.pulumi.azure.appservice.ActiveSlot;
import com.pulumi.azure.appservice.ActiveSlotArgs;
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");
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup");
var examplePlan = new Plan("examplePlan");
var exampleAppService = new AppService("exampleAppService");
var exampleSlot = new Slot("exampleSlot");
var exampleActiveSlot = new ActiveSlot("exampleActiveSlot", ActiveSlotArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.appServiceName(exampleAppService.name())
.appServiceSlotName(exampleSlot.name())
.build());
}
}

Properties

Link copied to clipboard
val appServiceName: Output<String>

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

Link copied to clipboard

The name of the App Service Slot which should be promoted to the Production Slot within the App Service.

Link copied to clipboard
val id: Output<String>
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 the App Service exists. Changing this forces a new resource to be created.

Link copied to clipboard
val urn: Output<String>