Open epopisces opened 8 months ago
If this template is only intended to support Linux, the deprecation path is even simpler: simply update azurerm_app_service
to azurerm_linux_web_app
and change the app_service_plan_id
argument to service_plan_id
, the other arguments should be fine.
azurerm_app_service
is deprecated in version 3.x of the azurerm provider. The recommended guidance is to use the newazurerm_linux_web_app
&azurerm_windows_web_app
resources. These can be implemented via parallel resources (one for linux, one for windows) enabled/disabled via count with a conditional based on the parent app service resource's type, like so:Note this does (unfortunately) require all dependent resources to include the same conditional and also use a index, like so: