You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create AKS cluster with network_profile.load_balancer_sku = standard
install ingress nginx via helm on that AKS to automatically provision a load balancer
set back the domain_name for the IP address just generated.
It seems to me that the sku parameter as declared here is not actually propagated to the Azure api
- name: Update the public ip's dns nameazure_rm_publicipaddress:
resource_group: "<REDACTED>"name: "<REDACTED>"domain_name: "<REDACTED>"subscription_id: "<REDACTED>"allocation_method: staticsku: standard
EXPECTED RESULTS
IP address domain is correctly set to the value
ACTUAL RESULTS
The full traceback is:
File "/var/folders/zj/kygpf26n11l_vx3g3h6pztpc0000gn/T/ansible_azure_rm_publicipaddress_payload_79gzid3t/ansible_azure_rm_publicipaddress_payload.zip/ansible_collections/azure/azcollection/plugins/modules/azure_rm_publicipaddress.py", line 397, in create_or_update_pip
File "/Users/veronica/.local/share/virtualenvs/ansible-infrastructure-NHxU_Lfa/lib/python3.9/site-packages/azure/mgmt/network/v2020_06_01/operations/_public_ip_addresses_operations.py", line 269, in create_or_update
raw_result = self._create_or_update_initial(
File "/Users/veronica/.local/share/virtualenvs/ansible-infrastructure-NHxU_Lfa/lib/python3.9/site-packages/azure/mgmt/network/v2020_06_01/operations/_public_ip_addresses_operations.py", line 229, in _create_or_update_initial
raise exp
fatal: [localhost]: FAILED! => changed=false
invocation:
module_args:
ad_user: null
adfs_authority_url: null
allocation_method: static
api_profile: latest
append_tags: true
auth_source: auto
cert_validation_mode: null
client_id: null
cloud_environment: AzureCloud
domain_name: <REDACTED>
idle_timeout: null
ip_tags: null
location: null
log_mode: null
log_path: null
name: <REDACTED>
password: null
profile: null
resource_group: <REDACTED>
secret: null
sku: standard
state: present
subscription_id: <REDACTED>
tags: null
tenant: null
version: ipv4
msg: |-
Error creating or updating <REDACTED> - Azure Error: PublicIPSKUDowngradeFeatureNotEnabled
Message: PublicIP /subscriptions/<REDACTED>/resourceGroups/<REDACTED>/providers/Microsoft.Network/publicIPAddresses/<REDACTED> SKU downgrade feature flag Microsoft.Network/AllowPublicIPSkuDowngrade is not enabled for this subscription /subscriptions/<REDACTED>/resourceGroups//providers/Microsoft.Network/subscriptions/.
The text was updated successfully, but these errors were encountered:
pip = self.network_models.PublicIPAddress(
location=results['location'],
public_ip_allocation_method=results['public_ip_allocation_method'],
# Added this line line
sku=self.network_models.PublicIPAddressSku(name=self.sku) if self.sku else None,
tags=results['tags']
)
SUMMARY
What I'm trying to do:
network_profile.load_balancer_sku = standard
domain_name
for the IP address just generated.It seems to me that the
sku
parameter as declared here is not actually propagated to the Azure apiISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
macOS Monterey
Ubuntu 20.04
STEPS TO REPRODUCE
EXPECTED RESULTS
IP address domain is correctly set to the value
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: