» azurerm_app_service_active_slot

Promotes an App Service Slot to Production within an App Service.

» Example Usage

resource "random_id" "server" {
  # ...
}

resource "azurerm_resource_group" "example" {
  # ...
}

resource "azurerm_app_service_plan" "example" {
  # ...
}

resource "azurerm_app_service" "example" {
  # ...
}

resource "azurerm_app_service_slot" "example" {
  # ...
}

resource "azurerm_app_service_active_slot" "example" {
  resource_group_name   = "${azurerm_resource_group.example.name}"
  app_service_name      = "${azurerm_app_service.example.name}"
  app_service_slot_name = "${azurerm_app_service_slot.example.name}"
}

» Argument Reference

The following arguments are supported:

  • resource_group_name - (Required) The name of the resource group in which the App Service exists. Changing this forces a new resource to be created.

  • app_service_name - (Required) The name of the App Service within which the Slot exists. Changing this forces a new resource to be created.

  • app_service_slot_name - (Required) The name of the App Service Slot which should be promoted to the Production Slot within the App Service.