def list_ip_configurations(call=None, kwargs=None):
 global netconn
 if (not netconn):
  netconn = get_conn(NetworkManagementClient)
 if (kwargs is None):
  kwargs = {}
 if ('group' not in kwargs):
  if ('resource_group' in kwargs):
   kwargs['group'] = kwargs['resource_group']
  else:
   raise SaltCloudSystemExit('A resource_group must be specified as "group" or "resource_group"')
 ip_conf = {}
 for ip_ in kwargs.get('ip_configurations', []):
  ip_data = object_to_dict(ip_)
  ip_conf[ip_data['name']] = ip_data
  try:
   pub_ip = netconn.public_ip_addresses.get(kwargs['resource_group'], ip_data['name']).ip_address
   ip_conf[ip_data['name']]['public_ip_address'] = pub_ip
  except CloudError:
   pass
 return ip_conf

def list_ip_configurations ( call = None , kwargs = None ) : global netconn if ( not netconn ) : netconn = get_conn ( NetworkManagementClient ) if ( kwargs is None ) : kwargs = { } if ( 'group' not in kwargs ) : if ( 'resource_group' in kwargs ) : kwargs [ 'group' ] = kwargs [ 'resource_group' ] else : raise SaltCloudSystemExit ( 'A resource_group must be specified as "group" or "resource_group"' ) ip_conf = { } for ip_ in kwargs . get ( 'ip_configurations' , [ ] ) : ip_data = object_to_dict ( ip_ ) ip_conf [ ip_data [ 'name' ] ] = ip_data try : pub_ip = netconn . public_ip_addresses . get ( kwargs [ 'resource_group' ] , ip_data [ 'name' ] ) . ip_address ip_conf [ ip_data [ 'name' ] ] [ 'public_ip_address' ] = pub_ip except CloudError : pass return ip_conf
list ip configurations .