Fix the security rules name duplication of azure_rm_common. (#16897)

pull/16955/head
Hidetoshi Hirokawa 8 years ago committed by Matt Davis
parent 14901b65d9
commit 595946b80e

@ -532,12 +532,12 @@ class AzureRMModuleBase(object):
] ]
parameters.location = location parameters.location = location
else: else:
# for windows add inbound RDP rules # for windows add inbound RDP and WinRM rules
parameters.security_rules = [ parameters.security_rules = [
SecurityRule('Tcp', '*', '*', 'Allow', 'Inbound', description='Allow RDP port 3389', SecurityRule('Tcp', '*', '*', 'Allow', 'Inbound', description='Allow RDP port 3389',
source_port_range='*', destination_port_range='3389', priority=100, name='RDP01'), source_port_range='*', destination_port_range='3389', priority=100, name='RDP01'),
SecurityRule('Tcp', '*', '*', 'Allow', 'Inbound', description='Allow RDP port 5986', SecurityRule('Tcp', '*', '*', 'Allow', 'Inbound', description='Allow WinRM HTTPS port 5986',
source_port_range='*', destination_port_range='5986', priority=101, name='RDP01'), source_port_range='*', destination_port_range='5986', priority=101, name='WinRM01'),
] ]
else: else:
# Open custom ports # Open custom ports

Loading…
Cancel
Save