From 21ec3b294f94f7fdfdacaca60a04145feed3ee3f Mon Sep 17 00:00:00 2001 From: Zim Kalinowski Date: Thu, 11 Apr 2019 17:57:41 +0800 Subject: [PATCH] additional sample for function app (#55136) * additional sample for function app * format --- .../cloud/azure/azure_rm_functionapp.py | 34 +++++++++++++------ 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/lib/ansible/modules/cloud/azure/azure_rm_functionapp.py b/lib/ansible/modules/cloud/azure/azure_rm_functionapp.py index f8974a1ddc..2a936260ed 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_functionapp.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_functionapp.py @@ -87,24 +87,36 @@ author: EXAMPLES = ''' - name: Create a function app azure_rm_functionapp: - resource_group: myResourceGroup - name: myFunctionApp - storage_account: myStorageAccount + resource_group: myResourceGroup + name: myFunctionApp + storage_account: myStorageAccount - name: Create a function app with app settings azure_rm_functionapp: + resource_group: myResourceGroup + name: myFunctionApp + storage_account: myStorageAccount + app_settings: + setting1: value1 + setting2: value2 + +- name: Create container based function app + azure_rm_functionapp: + resource_group: myResourceGroup + name: myFunctionApp + storage_account: myStorageAccount + plan: resource_group: myResourceGroup - name: myFunctionApp - storage_account: myStorageAccount - app_settings: - setting1: value1 - setting2: value2 + name: myAppPlan + container_settings: + name: httpd + registry_server_url: index.docker.io - name: Delete a function app azure_rm_functionapp: - resource_group: myResourceGroup - name: myFunctionApp - state: absent + resource_group: myResourceGroup + name: myFunctionApp + state: absent ''' RETURN = '''