diff --git a/lib/ansible/modules/cloud/azure/azure_rm_securitygroup.py b/lib/ansible/modules/cloud/azure/azure_rm_securitygroup.py index 1e01db6a2c..bdbf1620a4 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_securitygroup.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_securitygroup.py @@ -400,7 +400,7 @@ def compare_rules(r, rule): matched = True if rule.get('description', None) != r['description']: changed = True - r['description'] = rule['description'] + r['description'] = rule.get('description', None) if rule['protocol'] != r['protocol']: changed = True r['protocol'] = rule['protocol']