def show_security_group(call=None, kwargs=None):
 global netconn
 if (not netconn):
  netconn = get_conn(NetworkManagementClient)
 if (kwargs is None):
  kwargs = {}
 if (kwargs.get('resource_group') is None):
  kwargs['resource_group'] = config.get_cloud_config_value('resource_group', {}, __opts__, search_global=True)
 group = netconn.network_security_groups.get(resource_group_name=kwargs['resource_group'], network_security_group_name=kwargs['security_group'])
 group_dict = make_safe(group)
 def_rules = {}
 for rule in group.default_security_rules:
  def_rules[rule.name] = make_safe(rule)
 group_dict['default_security_rules'] = def_rules
 sec_rules = {}
 for rule in group.security_rules:
  sec_rules[rule.name] = make_safe(rule)
 group_dict['security_rules'] = sec_rules
 return group_dict

def show_security_group ( call = None , kwargs = None ) : global netconn if ( not netconn ) : netconn = get_conn ( NetworkManagementClient ) if ( kwargs is None ) : kwargs = { } if ( kwargs . get ( 'resource_group' ) is None ) : kwargs [ 'resource_group' ] = config . get_cloud_config_value ( 'resource_group' , { } , __opts__ , search_global = True ) group = netconn . network_security_groups . get ( resource_group_name = kwargs [ 'resource_group' ] , network_security_group_name = kwargs [ 'security_group' ] ) group_dict = make_safe ( group ) def_rules = { } for rule in group . default_security_rules : def_rules [ rule . name ] = make_safe ( rule ) group_dict [ 'default_security_rules' ] = def_rules sec_rules = { } for rule in group . security_rules : sec_rules [ rule . name ] = make_safe ( rule ) group_dict [ 'security_rules' ] = sec_rules return group_dict
create a network security_group .