def create_nic_parameters(args, subscription_id):
    """
    Construct the NIC object

    Use the actual parameters passed to the 'azure-vm-create-nic' command
    to build a nic object that will be sent in the body of the command's associated
    API call.

    parameter: (dict) args
        Dictionary that contains the actual parameters that were passed to the
        'azure-vm-create-nic' command

    returns:
        NIC Object
    """
    # Retrieve relevant command arguments
    resource_group = args.get('resource_group')
    location = args.get('nic_location')
    address_assignment_method = args.get('address_assignment_method')
    private_ip_address = args.get('private_ip_address')
    network_security_group = args.get('network_security_group')
    vnet_name = args.get('vnet_name')
    subnet_name = args.get('subnet_name')
    ip_config_name = args.get('ip_config_name')
    subnet_id = (f"/subscriptions/{subscription_id}/resourceGroups/{resource_group}/providers/Microsoft.Network/"
                 f"virtualNetworks/{vnet_name}/subnets/{subnet_name}")

    # Construct NIC object
    nic = {
        'location': location,
        'properties': {
            'ipConfigurations': [
                {
                    'name': ip_config_name,
                    'properties': {
                        'privateIPAllocationMethod': address_assignment_method,
                        'subnet': {
                            'id': subnet_id
                        }
                    }
                }
            ]
        }
    }

    if address_assignment_method == "Static":
        if not private_ip_address:
            err_msg = 'You have chosen to assign a "Static" IP address value to the interface, ' \
                      'so you must enter a value for the "private_ip_address" argument.'
            raise Exception(err_msg)
        nic['properties']['ipConfigurations'][0]['properties']['privateIPAddress'] = private_ip_address

    if network_security_group:
        network_security_group_id = (f"/subscriptions/{subscription_id}/resourceGroups/{resource_group}/providers"
                                     f"/Microsoft.Network/networkSecurityGroups/{network_security_group}")
        nic['properties']['networkSecurityGroup']['id'] = network_security_group_id

    return nic