You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
azurerm_app_service is deprecated in version 3.x of the azurerm provider. The recommended guidance is to use the new azurerm_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:
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.
epopisces
changed the title
Remove deprecated azurerm_app_service resource from terraform deployment in favor of azurerm_linux_web_app & azurerm_windows_web_app
Terraform: Remove deprecated azurerm_app_service resource in favor of azurerm_linux_web_app & azurerm_windows_web_app
Nov 20, 2023
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:
The text was updated successfully, but these errors were encountered: