Skip to content

Commit

Permalink
azure_rm_appgateway.py: Support Version 2 SKUs (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
craigforr authored Aug 5, 2020
1 parent 2056ade commit d3fbf7e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions plugins/modules/azure_rm_appgateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,18 @@
- 'standard_small'
- 'standard_medium'
- 'standard_large'
- 'standard_v2'
- 'waf_medium'
- 'waf_large'
- 'waf_v2'
tier:
description:
- Tier of an application gateway.
choices:
- 'standard'
- 'standard_v2'
- 'waf'
- 'waf_v2'
capacity:
description:
- Capacity (instance count) of an application gateway.
Expand Down Expand Up @@ -587,15 +591,23 @@ def exec_module(self, **kwargs):
ev['name'] = 'Standard_Medium'
elif ev['name'] == 'standard_large':
ev['name'] = 'Standard_Large'
elif ev['name'] == 'standard_v2':
ev['name'] = 'Standard_v2'
elif ev['name'] == 'waf_medium':
ev['name'] = 'WAF_Medium'
elif ev['name'] == 'waf_large':
ev['name'] = 'WAF_Large'
elif ev['name'] == 'waf_v2':
ev['name'] = 'WAF_v2'
if 'tier' in ev:
if ev['tier'] == 'standard':
ev['tier'] = 'Standard'
if ev['tier'] == 'standard_v2':
ev['tier'] = 'Standard_v2'
elif ev['tier'] == 'waf':
ev['tier'] = 'WAF'
elif ev['tier'] == 'waf_v2':
ev['tier'] = 'WAF_v2'
self.parameters["sku"] = ev
elif key == "ssl_policy":
ev = kwargs[key]
Expand Down

0 comments on commit d3fbf7e

Please sign in to comment.