azurerm_app_service has been deprecated and was removed in version 4 of the Azure provider. The recommended replacements are azurerm_linux_web_app and azurerm_windows_web_app, along with their corresponding deployment slot resources: azurerm_linux_web_app_slot and azurerm_windows_web_app_slot.
Plan of action
-
Add parsing functions for the new Web App resources, similar to the existing implementation for azurerm_app_service.
We should review the new block and attribute versions supported by these resources and add the corresponding fields to the model.
For example, we currently parse the auth_settings block, but the new Web App resources include both this block and its updated version, auth_settings_v2.
Slot support (*_web_app_slot) may be added in a follow-up PR, and it may be worth creating a separate task for this. When implemented, the adapter should locate the associated parent Web App and use its configuration as a fallback for any settings the slot does not define.
The adapter should transform the resource data into the container model following the conventions used by other Terraform adapters in the iac/adapters/arm
package.
-
Write unit tests in adapt_test.go using a table-driven approach.
Include:
- an empty configuration case;
- a full configuration case.
azurerm_app_service has been deprecated and was removed in version 4 of the Azure provider. The recommended replacements are azurerm_linux_web_app and azurerm_windows_web_app, along with their corresponding deployment slot resources: azurerm_linux_web_app_slot and azurerm_windows_web_app_slot.
Plan of action
Add parsing functions for the new Web App resources, similar to the existing implementation for azurerm_app_service.
We should review the new block and attribute versions supported by these resources and add the corresponding fields to the model.
For example, we currently parse the
auth_settingsblock, but the new Web App resources include both this block and its updated version,auth_settings_v2.Slot support (
*_web_app_slot) may be added in a follow-up PR, and it may be worth creating a separate task for this. When implemented, the adapter should locate the associated parent Web App and use its configuration as a fallback for any settings the slot does not define.The adapter should transform the resource data into the container model following the conventions used by other Terraform adapters in the iac/adapters/arm
package.
Write unit tests in
adapt_test.gousing a table-driven approach.Include: