-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
azure_rm_virtualmachine: add option to choose whether or not to create a network security group #1056
Conversation
if self.created_nsg: | ||
self.results['actions'].append('Created default security group {0}'.format(self.name + '01')) | ||
group = self.create_default_securitygroup(self.resource_group, self.location, self.name + '01', self.os_type, | ||
self.open_ports) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
continuation line under-indented for visual indent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Fred-sun thank you for review. I fixed it.
group = self.create_default_securitygroup(self.resource_group, self.location, self.name + '01', self.os_type, | ||
self.open_ports) | ||
parameters.network_security_group = self.network_models.NetworkSecurityGroup(id=group.id, | ||
location=group.location, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2392 and 2393 line continuation line under-indented for visual indent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Fred-sun I fixed it, too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
greate
Is there anything I should do to merge? |
@akira6592 We have recently considered a new release and will consider incorporating this change! Thanks! |
SUMMARY
Currently, if
network_interface_names
is not specified, a network security group is created and attached to a default network interface .This PR will add option that allow you to choose whether or not to create a network security group. The default value is
True
, so the network security group is created as before. IfFalse
is specified, the network security group will not be created.This is intended for use cases where network security groups are connected to subnets.
ISSUE TYPE
COMPONENT NAME
azure_rm_virtualmachine
ADDITIONAL INFORMATION