additional fixes to function app test
This commit is contained in:
parent
66b389a00d
commit
2ad7d79985
1 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
- name: Fix resource prefix
|
- name: Fix resource prefix
|
||||||
set_fact:
|
set_fact:
|
||||||
fixed_resource_prefix: "{{ resource_prefix | replace('-','x') }}"
|
fixed_resource_prefix: "{{ (resource_prefix | replace('-','x'))[-22:] }}"
|
||||||
|
|
||||||
- name: create storage account for function apps
|
- name: create storage account for function apps
|
||||||
azure_rm_storageaccount:
|
azure_rm_storageaccount:
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
- name: create a function with app settings
|
- name: create a function with app settings
|
||||||
azure_rm_functionapp:
|
azure_rm_functionapp:
|
||||||
resource_group: '{{ resource_group }}'
|
resource_group: '{{ resource_group }}'
|
||||||
name: af{{ fixed_resource_prefix }}
|
name: af{{ fixed_resource_prefix }}x
|
||||||
storage_account: sa{{ fixed_resource_prefix }}
|
storage_account: sa{{ fixed_resource_prefix }}
|
||||||
app_settings:
|
app_settings:
|
||||||
hello: world
|
hello: world
|
||||||
|
@ -59,7 +59,7 @@
|
||||||
- name: change app settings
|
- name: change app settings
|
||||||
azure_rm_functionapp:
|
azure_rm_functionapp:
|
||||||
resource_group: '{{ resource_group }}'
|
resource_group: '{{ resource_group }}'
|
||||||
name: af{{ fixed_resource_prefix }}
|
name: af{{ fixed_resource_prefix }}x
|
||||||
storage_account: sa{{ fixed_resource_prefix }}
|
storage_account: sa{{ fixed_resource_prefix }}
|
||||||
app_settings:
|
app_settings:
|
||||||
hello: world
|
hello: world
|
||||||
|
@ -74,7 +74,7 @@
|
||||||
- name: delete the function app
|
- name: delete the function app
|
||||||
azure_rm_functionapp:
|
azure_rm_functionapp:
|
||||||
resource_group: '{{ resource_group }}'
|
resource_group: '{{ resource_group }}'
|
||||||
name: af{{ fixed_resource_prefix }}
|
name: af{{ fixed_resource_prefix }}x
|
||||||
state: absent
|
state: absent
|
||||||
register: output
|
register: output
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue