summaryrefslogtreecommitdiff
path: root/lib/ansible
diff options
context:
space:
mode:
authorTravis Estep <testep02@gmail.com>2019-01-23 09:32:02 -0500
committeransibot <ansibot@users.noreply.github.com>2019-04-05 14:15:20 -0400
commit5154f248c0d2eef49c47e313b1c4adc690b2ae23 (patch)
tree5fa36903c58ec10cfa81e2836e8e0ed5c8b30a03 /lib/ansible
parent78fe931327c1c25e8278013a34175b5710e28dda (diff)
downloadansible-5154f248c0d2eef49c47e313b1c4adc690b2ae23.tar.gz
Add deployment slot example
The existing documentation does not include an example that shows how to create a deployment slot for a web app. After much frustration, I finally had to break out fiddler and look at the actual request that was being made in order to figure out how to create one. Hopefully the addition of this example will help someone like me who is struggling to easily solve this problem. +label: docsite_pr
Diffstat (limited to 'lib/ansible')
-rw-r--r--lib/ansible/modules/cloud/azure/azure_rm_webapp.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/ansible/modules/cloud/azure/azure_rm_webapp.py b/lib/ansible/modules/cloud/azure/azure_rm_webapp.py
index 2b4d710618..c9f6161630 100644
--- a/lib/ansible/modules/cloud/azure/azure_rm_webapp.py
+++ b/lib/ansible/modules/cloud/azure/azure_rm_webapp.py
@@ -253,6 +253,16 @@ EXAMPLES = '''
version: 6.6
- name: "php"
version: "7.0"
+
+ - name: Create a stage deployment slot for an existing web app
+ azure_rm_webapp:
+ resource_group: myresourcegroup
+ name: mywebapp/slots/stage
+ plan:
+ resource_group: myresourcegroup
+ name: myappplan
+ app_settings:
+ testkey:testvalue
- name: Create a linux web app with java framework
azure_rm_webapp: