def METHOD_NAME(resource_group_name: Optional[str] = None,
                                 virtual_networks_name: Optional[str] = None,
                                 opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetVirtualNetworkRetrieveResult:
    """
    Gets the Hybrid AKS virtual network
    Azure REST API version: 2022-09-01-preview.
    :param str resource_group_name: The name of the resource group. The name is case insensitive.
    :param str virtual_networks_name: Parameter for the name of the virtual network
    """
    __args__ = dict()
    __args__['resourceGroupName'] = resource_group_name
    __args__['virtualNetworksName'] = virtual_networks_name
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('azure-native:hybridcontainerservice:getVirtualNetworkRetrieve', __args__, opts=opts, typ=GetVirtualNetworkRetrieveResult).value
    return AwaitableGetVirtualNetworkRetrieveResult(
        extended_location=pulumi.get(__ret__, 'extended_location'),
        id=pulumi.get(__ret__, 'id'),
        location=pulumi.get(__ret__, 'location'),
        name=pulumi.get(__ret__, 'name'),
        properties=pulumi.get(__ret__, 'properties'),
        system_data=pulumi.get(__ret__, 'system_data'),
        tags=pulumi.get(__ret__, 'tags'),
        type=pulumi.get(__ret__, 'type'))