diff --git a/changelogs/fragments/55693-fixing-final-function-app-properties.yml b/changelogs/fragments/55693-fixing-final-function-app-properties.yml new file mode 100644 index 00000000000..c2c08a89380 --- /dev/null +++ b/changelogs/fragments/55693-fixing-final-function-app-properties.yml @@ -0,0 +1,2 @@ +bugfixes: + - azure_rm_functionapp - adding two properties which need to be set by default, otherwise function app won't behave correctly in Azure Portal. diff --git a/lib/ansible/modules/cloud/azure/azure_rm_functionapp.py b/lib/ansible/modules/cloud/azure/azure_rm_functionapp.py index 2a936260edd..3e0f39bc15a 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_functionapp.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_functionapp.py @@ -365,6 +365,8 @@ class AzureRMFunctionApp(AzureRMModuleBase): function_app_settings.append(NameValuePair(name='WEBSITE_CONTENTSHARE', value=self.name)) else: function_app_settings.append(NameValuePair(name='FUNCTIONS_EXTENSION_VERSION', value='~2')) + function_app_settings.append(NameValuePair(name='WEBSITES_ENABLE_APP_SERVICE_STORAGE', value=False)) + function_app_settings.append(NameValuePair(name='AzureWebJobsStorage', value=self.storage_connection_string)) return function_app_settings