From 14531144cfeacedb387e6cbc8aec7ff4a2171fd5 Mon Sep 17 00:00:00 2001 From: Zim Kalinowski Date: Thu, 25 Apr 2019 04:41:41 +0800 Subject: [PATCH] Backport/2.8/55693 (#55698) * adding final functionapp settings (#55693) (cherry picked from commit 8de2acb81979cf09f661a74e1bc25bf4a3f453da) * +changelog --- .../fragments/55693-fixing-final-function-app-properties.yml | 2 ++ lib/ansible/modules/cloud/azure/azure_rm_functionapp.py | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 changelogs/fragments/55693-fixing-final-function-app-properties.yml 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