» 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" "test" {
  # ...
}

resource "azurerm_app_service_plan" "test" {
  # ...
}

resource "azurerm_app_service" "test" {
  # ...
}

resource "azurerm_app_service_slot" "test" {
  # ...
}

resource "azurerm_app_service_active_slot" "test" {
  resource_group_name   = "${azurerm_resource_group.test.name}"
  app_service_name      = "${azurerm_app_service.test.name}"
  app_service_slot_name = "${azurerm_app_service_slot.test.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.