diff --git a/lib/ansible/modules/cloud/azure/azure_rm_securitygroup.py b/lib/ansible/modules/cloud/azure/azure_rm_securitygroup.py index 8560902921..e28afa6b70 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_securitygroup.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_securitygroup.py @@ -141,13 +141,13 @@ EXAMPLES = ''' purge_rules: yes rules: - name: DenySSH - protocol: TCP + protocol: Tcp destination_port_range: 22 access: Deny priority: 100 direction: Inbound - name: 'AllowSSH' - protocol: TCP + protocol: Tcp source_address_prefix: - '174.109.158.0/24' - '174.109.159.0/24' @@ -155,6 +155,16 @@ EXAMPLES = ''' access: Allow priority: 101 direction: Inbound + - name: 'AllowMultiplePorts' + protocol: Tcp + source_address_prefix: + - '174.109.158.0/24' + - '174.109.159.0/24' + destination_port_range: + - 80 + - 443 + access: Allow + priority: 102 # Update rules on existing security group - azure_rm_securitygroup: @@ -162,13 +172,13 @@ EXAMPLES = ''' name: mysecgroup rules: - name: DenySSH - protocol: TCP + protocol: Tcp destination_port_range: 22-23 access: Deny priority: 100 direction: Inbound - name: AllowSSHFromHome - protocol: TCP + protocol: Tcp source_address_prefix: '174.109.158.0/24' destination_port_range: 22-23 access: Allow