Skip to content

Commit

Permalink
Update azure_rm_cdnprofile to include the Standard and Premium Frontd…
Browse files Browse the repository at this point in the history
…oor options (ansible-collections#1588)

* Update cdnprofile to include the Standard and Premium Frontdoor options

* Updated per Fred's request to split lengthy line of code.

* Update plugins/modules/azure_rm_cdnprofile.py

Co-authored-by: Fred-sun <37327967+Fred-sun@users.noreply.github.com>

* Update plugins/modules/azure_rm_cdnprofile.py

Co-authored-by: Fred-sun <37327967+Fred-sun@users.noreply.github.com>

* Must use azure.mgmt.cdn==13.1.1 to resolve cache_configuration set to NULL issue

---------

Co-authored-by: Fred-sun <37327967+Fred-sun@users.noreply.github.com>
  • Loading branch information
2 people authored and Justwmz committed Nov 4, 2024
1 parent e47667a commit 271507f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion plugins/modules/azure_rm_cdnprofile.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
- standard_akamai
- standard_chinacdn
- standard_microsoft
- standard_azurefrontdoor
- premium_azurefrontdoor
state:
description:
- Assert the state of the CDN profile. Use C(present) to create or update a CDN profile and C(absent) to delete it.
Expand Down Expand Up @@ -129,7 +131,11 @@ def __init__(self):
),
sku=dict(
type='str',
choices=['standard_verizon', 'premium_verizon', 'custom_verizon', 'standard_akamai', 'standard_chinacdn', 'standard_microsoft']
choices=[
'standard_verizon', 'premium_verizon', 'custom_verizon', 'standard_akamai',
'standard_chinacdn', 'standard_microsoft',
'standard_azurefrontdoor', 'premium_azurefrontdoor'
]
)
)

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ azure-identity==1.16.1
azure-mgmt-authorization==2.0.0
azure-mgmt-apimanagement==3.0.0
azure-mgmt-batch==16.2.0
azure-mgmt-cdn==11.0.0
azure-mgmt-cdn==13.1.1
azure-mgmt-compute==30.6.0
azure-mgmt-containerinstance==9.0.0
azure-mgmt-core==1.4.0
Expand Down

0 comments on commit 271507f

Please sign in to comment.