def METHOD_NAME(lbs, cmd, resource_group_name):
    from msrestazure.tools import resource_id, is_valid_resource_id
    from azure.cli.core.commands.client_factory import get_subscription_id
    if not lbs:
        return None
    lbs_json = []
    for lb in lbs:
        terms = lb.split(':')
        ip = terms[2]
        subnet = terms[3]
        private_ip = terms[4]
        if ip and not is_valid_resource_id(ip):
            ip = resource_id(
                subscription=get_subscription_id(cmd.cli_ctx), resource_group=resource_group_name,
                namespace='Microsoft.Network', type='publicIPAddresses', name=ip)
        lbs_json.append({
            'properties': {
                'frontendIPConfigurations': [
                    {
                        'properties': {
                            'publicIPAddress': {'id': ip} if ip else None,
                            'subnet': {'id': subnet} if subnet else None,
                            'privateIPAddress': private_ip if private_ip else None
                        },
                        'name': terms[1]
                    }
                ]
            },
            'name': terms[0]
        })
    return lbs_json